We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2e7187 commit f90fc37Copy full SHA for f90fc37
1 file changed
src/ota_proxy/config.py
@@ -46,9 +46,9 @@ class Config:
46
METRICS_UPDATE_INTERVAL = 5 # in seconds
47
48
# ------ cache index config ------ #
49
- MAX_INDEX_ENTRIES = 600_000 # upper bound on in-memory index size
+ # upper bound on in-memory index size, will take around ~120MB memory at max
50
+ MAX_INDEX_ENTRIES = 600_000
51
DB_FLUSH_BATCH_SIZE = 128 # flush when batch reaches this many entries
- DB_FLUSH_MAX_LOOPS = 5 # flush after this many 1s loops (with pending entries)
52
DB_WRITER_LOOP_INTERVAL = 1 # seconds to sleep per writer loop iteration
53
54
# ------ LRU size bucket (backward compatibility) ------ #
0 commit comments