diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-07-26 11:52:09 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-07-26 15:21:13 +0100 |
commit | ad7d5442c5aa124a4ba2cc7b4698b18faf20b60f (patch) | |
tree | 46a5288e9bbbca13ec064e4bbd14724331a3e087 /conf/modules.d | |
parent | 396ad52afb3b2c49fc98ab12240d400cbc10a390 (diff) | |
download | rspamd-ad7d5442c5aa124a4ba2cc7b4698b18faf20b60f.tar.gz rspamd-ad7d5442c5aa124a4ba2cc7b4698b18faf20b60f.zip |
Clickhouse tables retention
Diffstat (limited to 'conf/modules.d')
-rw-r--r-- | conf/modules.d/clickhouse.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/conf/modules.d/clickhouse.conf b/conf/modules.d/clickhouse.conf index 3dbc3b60c..c35352a03 100644 --- a/conf/modules.d/clickhouse.conf +++ b/conf/modules.d/clickhouse.conf @@ -51,6 +51,18 @@ clickhouse { #dmarc_allow_symbols = ["DMARC_POLICY_ALLOW"]; #dmarc_reject_symbols = ["DMARC_POLICY_REJECT", "DMARC_POLICY_QUARANTINE"]; + #retention { + # # disabled by default + # enable = true; + # # drop | detach, please refer to ClickHouse docs for details + # # http://clickhouse-docs.readthedocs.io/en/latest/query_language/queries.html#manipulations-with-partitions-and-parts + # method = "drop"; + # # how many month the data should be kept in ClickHouse + # period_months = 3; + # # how often run the cleanup process + # run_every = "7d"; + #} + .include(try=true,priority=5) "${DBDIR}/dynamic/clickhouse.conf" .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/clickhouse.conf" .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/clickhouse.conf" |