@@ -92,12 +92,12 @@ Default config:
9292
9393``` toml
9494[clickhouse ]
95- optimize-interval = 259200
95+ optimize-interval = " 72h0m0s "
9696 server-dsn = " tcp://localhost:9000?&optimize_throw_if_noop=1&read_timeout=3600&debug=true"
9797
9898[daemon ]
9999 dry-run = false
100- loop-interval = 3600
100+ loop-interval = " 1h0m0s "
101101 one-shot = false
102102
103103[logging ]
@@ -109,13 +109,13 @@ Possible command line arguments:
109109
110110```
111111Usage of graphite-ch-optimizer:
112- -c, --config string Filename of the custom config. CLI arguments override it
113- --print-defaults Print default config values and exit
114- --optimize-interval uint The active partitions won't be optimized more than once per this interval, seconds (default 259200 )
115- -s, --server-dsn string DSN to connect to ClickHouse server (default "tcp://localhost:9000?&optimize_throw_if_noop=1&read_timeout=3600&debug=true")
116- -n, --dry-run Will print how many partitions would be merged without actions
117- --loop-interval uint Daemon will check if there partitions to merge once per this interval, seconds (default 3600 )
118- --one-shot Program will make only one optimization instead of working in the loop (true if dry-run)
119- --log-level string Valid options are: panic, fatal, error, warn, warning, info, debug, trace
120- --output string The logs file. '-' is accepted as STDOUT (default "-")
112+ -c, --config string Filename of the custom config. CLI arguments override it
113+ --print-defaults Print default config values and exit
114+ --optimize-interval duration The active partitions won't be optimized more than once per this interval, seconds (default 72h0m0s )
115+ -s, --server-dsn string DSN to connect to ClickHouse server (default "tcp://localhost:9000?&optimize_throw_if_noop=1&read_timeout=3600&debug=true")
116+ -n, --dry-run Will print how many partitions would be merged without actions
117+ --loop-interval duration Daemon will check if there partitions to merge once per this interval, seconds (default 1h0m0s )
118+ --one-shot Program will make only one optimization instead of working in the loop (true if dry-run)
119+ --log-level string Valid options are: panic, fatal, error, warn, warning, info, debug, trace
120+ --output string The logs file. '-' is accepted as STDOUT (default "-")
121121```
0 commit comments