From 384c6d1cfdb9d0c0e9d3504a5f850e28e3068f85 Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 23 May 2024 09:50:48 +0300 Subject: [PATCH] Update statistic.md --- doc/configuration/statistic.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/configuration/statistic.md b/doc/configuration/statistic.md index a9bc51471..daccafb5d 100644 --- a/doc/configuration/statistic.md +++ b/doc/configuration/statistic.md @@ -90,22 +90,22 @@ It's worth noting that Rspamd prioritizes SMTP recipients over MIME ones and giv Starting from version 3.9, per-user statistics can be sharded over different Redis servers with the utilization of the [hash algorithm]({{ site.baseurl }}/doc/configuration/upstream.html#hash-algorithm). -Example of using two stand-alone masters shards without read replicas: +Example of using two stand-alone master shards without read replicas: ~~~hcl servers = "hash:bayes-peruser-0-master,bayes-peruser-1-master"; ~~~ -Example of using a thee master-replicas shards setup: +Example of using a three master-replicas shards setup: ~~~hcl write_servers = "hash:bayes-peruser-0-master,bayes-peruser-1-master,bayes-peruser-2-master"; read_servers = "hash:bayes-peruser-0-replica,bayes-peruser-1-replica,bayes-peruser-2-replica"; ~~~ Important notes: -1. Changing shards count requires dropping all bayes statistics, so please take decisions wisely. -2. Each replica should have same position in `read_servers` as her master in `write_servers`; otherwise this will result in misaligned read-write hash slots assignment. +1. Changing shard count requires dropping all bayes statistics, so please make decisions wisely. +2. Each replica should have the same position in `read_servers` as its master in `write_servers`; otherwise, this will result in misaligned read-write hash slots assignment. 3. You can't use more than one replica per master in a sharded setup; this will result in misaligned read-write hash slots assignment. -4. You can't use Redis Sentinel for sharded setup. +4. You can't use Redis Sentinel for a sharded setup. 5. In the controller, you will see incorrect `Bayesian statistics` for the count of learns and users. ### Classifier and headers