[Question] Linux setting when persistence disabled

49 views
Skip to first unread message

荒巻拓哉(Takuya Aramaki)

unread,
Dec 13, 2022, 7:52:56 AM12/13/22
to Redis DB
Hello,

I am going to use Redis on Linux.
Since I want to use it just as a cache, I disable persistence with below setting.

```
save ""
appendonly no
```

https://redis.io/docs/management/admin/ says that we must set vm.overcommit_memory = 1 and disable THP.
My understanding is that those settings are needed in order to avoid problems on persistence.
If that is true, the settings seem not necessary when persistence is disabled.

Do I understand correctly?

Thanks

David Maier (Redis)

unread,
Dec 13, 2022, 8:24:49 AM12/13/22
to redi...@googlegroups.com
Hi Takuya,

I would follow the memory management config in the documentation regardless if persistence is enabled or not. Here is an example: Even if persistence is disabled, a full sync of a replica also relies on taking a snapshot of the data in memory. Configuring it from the beginning by following the best practices might also give you more flexibility in the future to leverage specific features.

BTW: You might think that a cache doesn't need any kind of persistence or replication, but mission-critical applications need to operate on a cache which is already warmed-up. Such a warm up (from a cold cache) can take a while and for this period of time your service can be negatively impacted. So, dependent on the turnover rate of your cache, it might actually make a lot of sense to use replication or persistence.

Regards,
David

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/d1b605ef-ec4d-4bf3-b759-b0bc2408948dn%40googlegroups.com.


Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

Owoyemi Ayo

unread,
Dec 13, 2022, 2:59:24 PM12/13/22
to redi...@googlegroups.com
Pls I don't understand and let it be English

荒巻拓哉(Takuya Aramaki)

unread,
Dec 14, 2022, 2:28:06 AM12/14/22
to Redis DB
Hi David,

I appreciate your kind advise! It is so helpful.
Thank you so much.

Regards

2022年12月13日火曜日 22:24:49 UTC+9 David Maier:
Reply all
Reply to author
Forward
0 new messages