Skip to content

Commit 35bc451

Browse files
committed
Updated README.md
1 parent d5d7214 commit 35bc451

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,11 @@ tables: '*'
140140
exclude_databases: ['database_10', 'database_*_42'] # optional
141141
exclude_tables: ['meta_table_*'] # optional
142142

143-
log_level: 'info' # optional
144-
optimize_interval: 86400 # optional
143+
log_level: 'info' # optional
144+
optimize_interval: 86400 # optional
145+
auto_restart_interval: 3600 # optional
145146

146-
indexes: # optional
147+
indexes: # optional
147148
- databases: '*'
148149
tables: ['test_table']
149150
index: 'INDEX name_idx name TYPE ngrambf_v1(5, 65536, 4, 0) GRANULARITY 1'
@@ -163,6 +164,7 @@ indexes: # optional
163164
- `exclude_tables` - databases to __exclude__, string or list. If same table matches `tables` and `exclude_tables`, exclude has higher priority.
164165
- `log_level` - log level, default is `info`, you can set to `debug` to get maximum information (allowed values are `debug`, `info`, `warning`, `error`, `critical`)
165166
- `optimize_interval` - interval (seconds) between automatic `OPTIMIZE table FINAL` calls. Default 86400 (1 day). This is required to perform all merges guaranteed and avoid increasing of used storage and decreasing performance.
167+
- `auto_restart_interval` - interval (seconds) between automatic db_replicator restart. Default 3600 (1 hour). This is done to reduce memory usage.
166168
- `indexes` - you may want to add some indexes to accelerate performance, eg. ngram index for full-test search, etc. To apply indexes you need to start replication from scratch.
167169

168170
Few more tables / dbs examples:

0 commit comments

Comments
 (0)