diff options
author | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-11-03 16:00:11 +0100 |
---|---|---|
committer | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-11-03 16:00:11 +0100 |
commit | f7ba1730b0579ebb0b3a41280f6d64b5e02c09e3 (patch) | |
tree | 9635a1cb3e3baf1dd8fdaf9417a1ba26d9460bbe /conf | |
parent | 87b9a614a4e35b4dea75c8ec51b071ab13dbccb0 (diff) | |
download | rspamd-f7ba1730b0579ebb0b3a41280f6d64b5e02c09e3.tar.gz rspamd-f7ba1730b0579ebb0b3a41280f6d64b5e02c09e3.zip |
* add more validation on empty strings, required to not face errors in saving logs to elastic
* remove max_size as it was looking to rows elements count, not strings size in total, such check will be too much compute intensive
* increase default errors max_fail as usually elastic not recover so quickly and needs a bit more time
Diffstat (limited to 'conf')
-rw-r--r-- | conf/modules.d/elastic.conf | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/conf/modules.d/elastic.conf b/conf/modules.d/elastic.conf index e4c70bc87..f815bc61d 100644 --- a/conf/modules.d/elastic.conf +++ b/conf/modules.d/elastic.conf @@ -25,7 +25,7 @@ elastic { use_keepalive = true; version = { autodetect_enabled = true; - autodetect_max_fail = 12; + autodetect_max_fail = 30; # override works only if autodetect is disabled override = { name = "opensearch"; @@ -35,8 +35,7 @@ elastic { limits = { max_rows = 500; # max logs in one bulk req to elastic and first reason to flush buffer to elastic max_interval = 60; # seconds, if first log in buffer older then interval - flush buffer - max_size = 5000000; # max symbols count in buffer, if reached - flush buffer, f.e: 5000000 ~= 10MB/normal-worker - max_fail = 3; + max_fail = 10; }; index_template = { managed = true; |