VMware

Best Practice Redis on VMware

Hi there

So I do not know anything about Redis. One of our apps is having a Redis component and it is performing poorly.
Having a look at its configuration I see one PVSCSI controller and one disk. Now I am aware of how to deploy an optimized SQL VM but what is best practice for Redis. Can anyone tell me or point me to a best practice guide?



View Reddit by defrynView Source

 

To see the full content, share this page by clicking one of the buttons below

Related Articles

4 Comments

  1. Redis is really simple compared to an RDBMS and the documentation is pretty good.

    [https://redis.io/topics/admin](https://redis.io/topics/admin)

    I’ve never found disk performance to be an issue with our setup. I think it mostly does log style writes for persistent storage, assuming you have that setup. So the IO is usually pretty low.

    Redis is an in memory database, so you do need to make sure it has enough RAM available for your configuration. You definitely do not want it to touch swap.

  2. Are you significantly overcommitting ram? If you are set a memory reservation for the redis vms ram. As mentioned it is an in memory caching tier. If it doesn’t have the ram and contention or swap is occuring at the host you will see shitty performance.

  3. Be careful with the write to disk option, if you exercise it. Creates so much churn. I had to turn it off, because the reads and writes were orders of magnitude higher than other intensive workloads.

    Given how large you state your Redis setup is, it could be choking on vMotion if it has to move a lot. If it’s a high churn instance, probably having a hard time dealing with a stun. Or, at least the Redis clients are having a hard time dealing with the stun.

  4. No hosts are not overcommitted at all when it comes to RAM. Current setup is a single PVSCSI with a 8 GB disk, 8 vcpu, 24 GB of RAM.

    I noticed high latencies on the one disk so I would have thought that you would separate logs and other related files.

    The underlying infrastructure is fine. It is all SSD

Leave a Reply