Giter Club home page Giter Club logo

Comments (8)

navossoc avatar navossoc commented on May 25, 2024 2

@1n5aN1aC I have a cron job for that...

0 3 * * * docker exec redis redis-cli BGREWRITEAOF

from mailserver.

hardware avatar hardware commented on May 25, 2024

Since Redis 2.4 the AOF rewrite is automatically triggered by Redis, however the BGREWRITEAOF command can be used to trigger a rewrite at any time.

If you're using the AOF with Redis 2.2 you'll need to run BGREWRITEAOF from time to time. Redis 2.4 is able to trigger log rewriting automatically

The documentation says that it is not necessary because BGREWRITEAOF is triggered automatically to avoid that precisely. I missed something ?

On my personal serv, aof file is only 24MB size, and 87MB on another and bigger mail server, after 2 years.

from mailserver.

1n5aN1aC avatar 1n5aN1aC commented on May 25, 2024

My understanding from the documentation is that it is only 'called automatically' because the directives I mentioned are in the default config file. My understanding was that the default config file is not being used. (as no config file is being used)

That being said, it's possible it grew so massively from something wrong on my server years ago. Today my db is 67MB. So obviously it's not growing at any serious rate right now.

from mailserver.

SaraSmiseth avatar SaraSmiseth commented on May 25, 2024

I noticed the same. Mine was around 500MB and running redis-cli BGREWRITEAOF made it 50MB.

from mailserver.

hardware avatar hardware commented on May 25, 2024

My understanding from the documentation is that it is only 'called automatically' because the directives I mentioned are in the default config file.

That makes sense. I let you make a pull request if you want.

from mailserver.

prometheanfire avatar prometheanfire commented on May 25, 2024

Is there a reason this isn't left to the user when setting up the redis container? Maybe specifying that foo=bar should be in the redis config is enough?

from mailserver.

n33pm avatar n33pm commented on May 25, 2024

My understanding from the documentation is that it is only 'called automatically' because the directives I mentioned are in the default config file.

That makes sense. I let you make a pull request if you want.

This makes only sense, if you change the config file.
Redis without any config:

127.0.0.1:6379> CONFIG GET auto-aof-rewrite-percentage
1) "auto-aof-rewrite-percentage"
2) "100"
127.0.0.1:6379> CONFIG GET auto-aof-rewrite-min-size
1) "auto-aof-rewrite-min-size"
2) "67108864"

Tested with the docker-compose.sample.yml

from mailserver.

stale avatar stale commented on May 25, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from mailserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.