1) Redis sentinel support is *NOT* easy
2) There is no need in supporting of Redis sentinel and other similar
systems:
Rspamd has 2 types of Redis data:
1) Dynamic stuff, such as limits, reputation, greylisting, replies etc
2) More valuable stuff, such as statistics tokens or fuzzy hashes
For (1), you have almost same amount of read and write requests,
however, Rspamd can perform sharding of all requests using consistent
hashing and can send read and write requests to different servers.
Hence, to scale this part, you can simply add new M-S pair to the
existing cluster. Moreover, you can loose this data without any
significant influence on spam scanning process.
For (2), you have almost all request being read-only requests. Hence, to
scale this data, you can just add more slaves to the existing
configuration. Master fail won't affect anything: you just stop learning
until master is restored or switched, but there is still no influence on
scanning process.
Therefore, there are no plans to support Redis sentinel.
On 02/01/2017 16:13,
petr.s...@economia.cz wrote:
> Hello I totaly agree with Artyom.
> Redis sentinel is great way ho to handle master failover and it is
> almost necessary to have it implemented in HA environment.
>
> The configuration would need the list of sentinels and the name of redis
> group. From sentinel instance (sentinels can be balanced) you can get
> info on master and all slaves and in case of failure, the new master is
> elected and the list of slaves updated.
>
> The implementation should not be that difficult so I wonder why the post
> was idle for half year already.
>
> Dne čtvrtek 4. srpna 2016 12:04:24 UTC+2 Artyom Aleksandrov napsal(a):
>
> Hello,
>
> Since Rspamd has redis support and greylist module I decided to
> migrate from SA and greylistd.
> Thanks very much for all who do it possible!
>
> My idea is to install rspamd on each incoming MTA and use Redis
> cluster as distributed storage.
>
> I just want to ask if Rspamd support Redis Sentinel
>
http://redis.io/topics/sentinel <
http://redis.io/topics/sentinel> ?
> It will be really cool from HA side.
>
> Moreover as I understand correctly it can help with redis
> configuration because clients with sentinel support can detect which
> server is master and which is a slave.
> So it's not required to specify read/write servers separately.
>
> What do you think about it?
>
> Best regards, Artyom
>
> --
> You received this message because you are subscribed to the Google
> Groups "rspamd" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
rspamd+un...@googlegroups.com
> <mailto:
rspamd+un...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/rspamd.
--
Vsevolod Stakhov