|
@@ -1683,35 +1683,15 @@ DatabaseService::Config DatabaseService::parseConfig(const nlohmann::json& json)
|
|
|
if (db.contains("memory")) {
|
|
if (db.contains("memory")) {
|
|
|
auto& memory = db["memory"];
|
|
auto& memory = db["memory"];
|
|
|
|
|
|
|
|
- // Deprecation log. These knobs control MemoryStore eviction, which
|
|
|
|
|
- // is still active for the MemoryStore-side mirror but does NOT bound
|
|
|
|
|
- // RSS since v2.0 (LMDB mmap is the dominant RSS contributor). The
|
|
|
|
|
- // substrate-level equivalent is the LMDB env mapsize and the OS page
|
|
|
|
|
- // cache.
|
|
|
|
|
- //
|
|
|
|
|
- // They disappear when the write-handler migration deletes MemoryStore
|
|
|
|
|
- // (docs/ROADMAP.md, "Pending"). An earlier revision of this comment
|
|
|
|
|
- // promised a v2.1 rename to `buffer_pool_size_mb` "per the Phase C
|
|
|
|
|
- // plan"; that plan was superseded by LMDB before it was written, no
|
|
|
|
|
- // such knob exists, and the rename is not planned.
|
|
|
|
|
- for (const char* deprecated : {"max_memory_mb",
|
|
|
|
|
- "eviction_threshold_percent",
|
|
|
|
|
- "eviction_target_percent",
|
|
|
|
|
- "eviction_check_interval_ms",
|
|
|
|
|
- "eviction_chunk_size",
|
|
|
|
|
- "eviction_chunk_pause_ms",
|
|
|
|
|
- "max_eviction_passes_per_trigger",
|
|
|
|
|
- "hot_write_floor_ms",
|
|
|
|
|
- "memory_priority"}) {
|
|
|
|
|
- if (memory.contains(deprecated)) {
|
|
|
|
|
- spdlog::warn("v2.0 deprecation: storage.memory.{} is deprecated "
|
|
|
|
|
- "and will be removed in v2.1. v2.0 RSS is bounded "
|
|
|
|
|
- "by the LMDB env mapsize + OS page cache, not by "
|
|
|
|
|
- "MemoryStore eviction. Setting still applied to "
|
|
|
|
|
- "the MemoryStore mirror for back-compat.",
|
|
|
|
|
- deprecated);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // No deprecation warning (removed after 2.21.2). From v2.0 these
|
|
|
|
|
+ // keys logged "deprecated and will be removed in v2.1" at every
|
|
|
|
|
+ // boot. They were never removed and no removal is planned: they set
|
|
|
|
|
+ // MemoryStore's budget, eviction and pressure levels, and emergency
|
|
|
|
|
+ // pressure refuses writes, so they are live controls (and since
|
|
|
|
|
+ // 2.21.2 the budget covers vectors too). The warning read as stale
|
|
|
|
|
+ // output from a 2.0 build and invited an operator to delete the
|
|
|
|
|
+ // budget. MemoryStore goes, and these keys with it, only when the
|
|
|
|
|
+ // write-handler migration lands (docs/ROADMAP.md, "Pending").
|
|
|
|
|
|
|
|
config.maxMemoryMb = memory.value("max_memory_mb", config.maxMemoryMb);
|
|
config.maxMemoryMb = memory.value("max_memory_mb", config.maxMemoryMb);
|
|
|
config.evictionThresholdPercent = memory.value("eviction_threshold_percent", config.evictionThresholdPercent);
|
|
config.evictionThresholdPercent = memory.value("eviction_threshold_percent", config.evictionThresholdPercent);
|