Rspamd / Redis - reducing the size of the database

Discussion in 'ISPConfig 3 Priority Support' started by drak, Jun 16, 2021.

  1. drak

    drak New Member

    I use ISPConfig, thank you for a great app!

    On my current mailserver, the Redis database has grown to almost 5GB in half a year.
    I found a useful tip: rspamd: second redis instance for bayes how to prevent the database from getting bigger in the future.
    For now, I need to delete unimportant data and reduce its memory requirements.
    I don't have experience with Redis DB, can you please advise how to safely delete bayes data (or others that take up a lot of space) in the current production database?

    My current Redis DB has a 36M keys:
    # redis-cli --stat
    keys mem clients blocked requests connections
    36202030 4.47G 1 0 2651279538 (+0) 1312388


    Thanks and have a nice day.
     
    Last edited: Jun 16, 2021
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    The post you linked to has the exact commands to do this.

    For non-bayes keys you would have to identify what it is you want deleted and use similar commands (the convention is to use a prefix in the key name for different proposes).
     
  3. drak

    drak New Member

    Ooops, my bad, thank you!
    I didn't read it until the end.
     

Share This Page