[Rspamd-Users] Data Persistence
dunc
a.16bit.sysop at gmail.com
Sat Sep 19 19:11:39 UTC 2020
On Sat, 19 Sep 2020, 17:08 David Reagan, <me at davidreagan.net> wrote:
> Hey all,
>
> I'm a bit confused on how to make rspamd keep track of things.
>
> I've configured a single redis instance in a docker container with a
> docker volume for it's data. I followed redis' docs on how to write the
> data to disk. But it doesn't seem like the data is sticking around. I'm
> not sure if it's redis, or rspamd that I haven't configured correctly...
>
> Today, when I started testing things, rspamd's webui reported around 20
> scanned messages. Right now it's only reporting 10.
>
> I have *not* restarted redis.
>
> I *have* restarted rspamd.
>
> Shouldn't rspamd have picked up on the data still in redis?
>
> The docs say: "by default, Rspamd will use the default Redis database
> with number 0". Since I haven't said to use a different redis db, then
> I'd think it would use 0 every time.
>
> My redis instance config:
>
> ```
>
> protected-mode no
> port 6379
> loglevel notice
> save 900 1
> save 300 10
> save 60 10000
> stop-writes-on-bgsave-error yes
> rdbcompression yes
> rdbchecksum yes
> dbfilename dump.rdb
> rdb-del-sync-files no
> dir ./
> appendonly yes
> appendfsync everysec
>
> ```
>
> My etc/rspamd/local.d/redis.conf:
>
> ```
>
> write_servers = "spamfilter-db.example.org";
> read_servers = "spamfilter-db.example.org";
>
> ```
>
> What am I missing?
>
>
> Thanks!
>
>
> - David Reagan
>
>
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users
If you do a docker container logs for your redis container it might show
save events.
Or docker container exec ls -lah
To list rdb files
>
>
More information about the Users
mailing list