Commit 2f7b76b
committed
Bound RocksDB info LOG size and rotation in external storage provider
The external-storage RocksDB stores (the comments store and
account_history_rocksdb, which share rocksdb_storage_provider::openDb)
were opened with RocksDB's default info-log settings: max_log_file_size=0
(never rotate), keep_log_file_num=1000, INFO level. The single LOG file
therefore grows unbounded for the whole process lifetime, logging every
per-block flush/compaction plus a stats dump every 10 minutes.
On nodes that place shared_memory.bin (and thus the store) on a small
tmpfs this can exhaust the filesystem even though chain state is small.
Set info_log_level=WARN, max_log_file_size=8MiB, keep_log_file_num=1 so
the LOG stays small and bounded. Does not affect chain state.
(cherry picked from commit c7c13f8)1 parent 10ac0ce commit 2f7b76b
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
124 | 129 | | |
125 | 130 | | |
126 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
127 | 137 | | |
128 | 138 | | |
129 | 139 | | |
| |||
0 commit comments