Skip to content

Commit f90fc37

Browse files
committed
minor update
1 parent b2e7187 commit f90fc37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ota_proxy/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class Config:
4646
METRICS_UPDATE_INTERVAL = 5 # in seconds
4747

4848
# ------ cache index config ------ #
49-
MAX_INDEX_ENTRIES = 600_000 # upper bound on in-memory index size
49+
# upper bound on in-memory index size, will take around ~120MB memory at max
50+
MAX_INDEX_ENTRIES = 600_000
5051
DB_FLUSH_BATCH_SIZE = 128 # flush when batch reaches this many entries
51-
DB_FLUSH_MAX_LOOPS = 5 # flush after this many 1s loops (with pending entries)
5252
DB_WRITER_LOOP_INTERVAL = 1 # seconds to sleep per writer loop iteration
5353

5454
# ------ LRU size bucket (backward compatibility) ------ #

0 commit comments

Comments
 (0)