Vignesh
08/15/2024, 6:26 AMRohan
08/15/2024, 4:47 PMVignesh
08/15/2024, 4:48 PMRohan
08/15/2024, 5:27 PMcriccomini
08/15/2024, 5:28 PMcriccomini
08/15/2024, 5:29 PMcriccomini
08/15/2024, 5:29 PMmanifest_poll_intervalcriccomini
08/15/2024, 5:29 PMcriccomini
08/15/2024, 5:29 PMcriccomini
08/15/2024, 5:30 PMmanifest_poll_interval defines how frequenlty we can flush to L0 SST... probably should separate that...criccomini
08/15/2024, 5:34 PMflush_ms if we need to freeze and write L0 SSTs
- mem_table_flush.rs checks every manifest_poll_interval to see if we need to update the manifest with recently written L0'sRohan
08/15/2024, 5:46 PMRohan
08/15/2024, 5:47 PMcriccomini
08/15/2024, 5:48 PMRohan
08/15/2024, 5:48 PMcriccomini
08/15/2024, 5:48 PMcriccomini
08/15/2024, 5:49 PMcriccomini
08/15/2024, 5:49 PMflush_msVignesh
08/15/2024, 5:49 PMcriccomini
08/15/2024, 5:49 PMmanifest_poll_intervalcriccomini
08/15/2024, 5:49 PMRohan
08/15/2024, 5:50 PMRohan
08/15/2024, 5:51 PMmanifest_poll_interval just controls how often the local view of the manifest is refreshed with the one stored in the object store: https://github.com/slatedb/slatedb/blob/1d225f3c7f96416c83188e5572cd1c84d546555a/src/mem_table_flush.rs#L86criccomini
08/15/2024, 5:51 PMcriccomini
08/15/2024, 5:51 PMcriccomini
08/15/2024, 5:52 PMcriccomini
08/15/2024, 5:52 PMcriccomini
08/15/2024, 5:52 PMcriccomini
08/15/2024, 5:52 PMcriccomini
08/15/2024, 5:53 PMcriccomini
08/15/2024, 5:55 PMflush_ms is 100ms
2. Every 100ms, we check if memtable should get flushed >= l0_max_size_bytes
3. It is always >= max size, so we always flush it.
4. A flush triggers the manifest update immediately..Rohan
08/15/2024, 5:57 PMcriccomini
08/15/2024, 5:57 PMcriccomini
08/15/2024, 5:58 PMRohan
08/15/2024, 6:02 PMl0_manifest_commit_interval_ms. I do think we should bump up the l0 sst size anyway because that's good for reducing compaction overhead and read amplification. I was thinking something like 32 or 64 MB. My only concern with having a high l0 sst size is that wal ssts will build up and drive up recovery times. So we probably want some config like current_l0_max_wal_ssts that forces an l0 flush when the number of wal ssts crosses some threshold.criccomini
08/15/2024, 6:16 PMl0_manifest_commit_interval_ms is that, rather than writing L0's to manifest immediately when L0 is written to object storage, we'd write the updated manifest only after l0_manifest_commit_interval_ms have passed, right?criccomini
08/15/2024, 6:17 PMcriccomini
08/15/2024, 6:17 PMcriccomini
08/15/2024, 6:22 PMcriccomini
08/15/2024, 6:23 PMcriccomini
08/15/2024, 6:24 PMRohan
08/15/2024, 6:38 PMcriccomini
08/15/2024, 6:39 PMcriccomini
08/15/2024, 6:39 PMcriccomini
08/15/2024, 6:39 PM