Commit 72ea3e49 authored by Andrew Thompson's avatar Andrew Thompson
Browse files

Limit the size and age of rocksdb log files

We've observed extremely large rocksdb log files (1gb+) in the field. We
don't need or want the logs that large, so impose some size and time
rotation limits.
parent 0aeca56f
Showing with 3 additions and 1 deletion
+3 -1
......@@ -88,7 +88,9 @@
{write_buffer_size, 262144}, % 256kB
{db_write_buffer_size, 8388608}, % 8MB
{max_write_buffer_number, 10},
{keep_log_file_num, 5}
{keep_log_file_num, 5},
{max_log_file_size, 1048576} %% keep log files 1mb or less
{log_file_time_to_roll, 86400} %% rotate logs once a day
]}
]},
{miner,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment