Hey,
It's only guaranteed to work in a ram disk. It will "work" on anything
else, but you'll lose deterministic performance. Worst case it'll burn out
whatever device is underlying because it's not optimized for anything but
RAM.
So, two options for this situation:
1) I'd hope there's some way to bind mount an underlying tmpfs. With
almost all container systems there's some method of exposing an underlying
path, though I have a low opinion of Kube so manybe not.
2) It does just create two normal files: the path you give it + .meta file
that appears during graceful shutdown. After shutdown you can copy these
(perhaps with pigz or something) to a filesystem then restore to in-pod
tmpfs before starting up again. It'll increase the downtime but it'll
work.
I guess.. 3) For completeness it also works on a DCPMM dax mount, which
survive reboots and act as "filesystems". You'd need to have the right
system and memory and etc.
-Dormando
On Sat, 30 Nov 2019, David Karlsen wrote:
> Reading
https://github.com/memcached/memcached/wiki/WarmRestart it is a bit unclear to me if the mount *has* to be tmpfs backed, or it can be a normal fileystem like xfs.
> We are looking into running memcached through Kubernetes/containers - and as a tmpfs volume would be wiped on pod-recreation
>