O'Reilly logo

Instant Redis Persistence by Matt Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reducing system load from AOF rewrites (Intermediate)

There are plenty of circumstances in which you might run multiple Redis instances on a single machine. You may want to isolate different types of data from each other, or you might wish to take advantage of multiple CPUs by sharding your data across multiple instances. Because Redis is single threaded, one Redis instance will only ever use one CPU core. So by storing keys across several instances, you can use your multicore server to its full potential.

The downside of running multiple Redis instances is that if all your instances decide to rewrite their AOFs at the same time, you may find your disks overwhelmed by the need to store so much data and write it all so quickly.

In that case, you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required