Improving memory fragmentation on a Redis cluster

I recently bought a managed Redis cluster on Digital Ocean, here are the specs: 1 GB RAM / 1vCPU / 10 GB Disk / Primary only.

I'm only using this cluster for a PUB-SUB system where an external application sends around 400 very small json messages to Redis and a client is listening for the messages. I thought that the load would be too much for the cluster, but instead Disk and memory usage are still fairly low.

Only thing worrying me is the fragmentation ratio, which is on average 3.8, but sometimes it spikes down to 1. Now how much should i be worried about this? I read that memory fragmentation tells how efficiently is memory allocated, so i got a little concerned about this. I'm pretty sure it depends on the loads of messages i send to Redis. Is there any way to improve this at all or can i only scale up my cluster? Any kind of advice is appreciated!


Solution 1:

No need to worry about this at all. Fragmentation is quite meaningless when no/little RAM is used by Redis, as is in the case of pure Pub/Sub.