https://slatedb.io logo
Hmmm... is it normal for a put() with await_durabl...
# general
t
Hmmm... is it normal for a put() with await_durable=false to take about 10 seconds?
c
The wait time is highly dependent on your flush.ms settings, your network (e.g. laptop -> VPN -> public S3) and so on
What's your configuration?
t
Default DB options except for a max_unflushed_bytes value of 128MIB, against a S3-compatible (minio) instance on localhost
c
Yea.. that seems sus... want to paste some logs?
Also, if it's a little stub app, perhaps the code too
t
log: https://0x0.st/83sa.txt code: https://0x0.st/83sB.rs (terrible code, yes, it's just me messing about with an idea)
c
👀
Is this running against main or 0.6.1?
t
slatedb = "0.6.1"
Let me try main
c
Yea, we had some weird stuff on the 0.6 release that @actual_04780 found. @David Calavera found and fixed most of it. There were some weird race conditions with the shutdown tasks and stuff.. I'm not seeing any of that in your logs, though. It's still worth checking against main, though. It'll require some slight tweaks to your setup code, sadly.
t
Still seeing it: https://0x0.st/83sY.rs https://0x0.st/83s3.txt slatedb = { git = "https://github.com/slatedb/slatedb.git", rev = "ab0aac8a3333140d7b63fb7f1c65210d7854dfd3" }
c
K
Hmmm
Mind giving me your Cargo.toml? 😅 I want to try and repro locally
I've not tried slate with Minio.. wondering if there's some library issue or issue btwn minio and conditional puts...
t
https://0x0.st/83sF.toml It's just that and the main.rs, totally vanilla cargo new project
c
thx
Yea somethin' funky I think
wonder if smol and tokio are bickering
t
Minio is just
minio server ./data
-- Version: RELEASE.2024-09-22T00-33-43Z (go1.23.8 linux/amd64)
Yeah, could be
c
Lemme try and reproduce really quickly..
If you want to experiment in the meantime, my three main thoughts are 1) smol, 2) minio, 3) removing the conditional put config to see if that speeds things up
t
3 doesn't change things, I strongly suspect it's a smol-tokio interaction at this point looks like I'll have to clean this up a bit into something more sensible, I doubt this is a slatedb issue
c
K. I just realized I need linux to replicate 😓
I don't have a box easily available, and I don't want to deal with Docker at the moment (I need lunch!)
LMK if you find smol/tokio isn't the issue.
t
yeah, fair. Thanks for your help though! The project looks fantastic
c
Thanks! It's a WIP, so PRs welcome and some bugs expected.
That said, some folks have run it through DST on antithesis and it.. works
t
@criccomini Just to let you know SlateDB is working great now I stripped out the smol/UBD code and replaced it with an NBD server.
Thanks again.
c
Awesome!
I'm glad to hear that. 🙂
Looked like you're doing some fun stuff from that code snippet you sent 🙂
t
Yeah, currently just trying to implement a replacement for s3backer and seeing if it performs any good. Literally just mapping (block number -> disk block). Ordinarily I'd assume it wouldn't work well, but s3backer exists and people have used it, so figured it's worth experimenting with.
c
LMK how it turns out!