mnesiac icon indicating copy to clipboard operation
mnesiac copied to clipboard

Any examples of this working in a k8s environment?

Open eliasdarruda opened this issue 1 year ago • 5 comments

Question

I'm wondering how would it work in a k8s environment with a multi node or single node volume. Does anyone have a working example already?

eliasdarruda avatar May 22 '23 17:05 eliasdarruda

Yes, mnesiac should work in kubernetes though I don't have an example readily available, apologies. Might be good to get something added to the docs about it at some point though.

beardedeagle avatar May 23 '23 16:05 beardedeagle

I've tried to use disc_only copies with multiple pods, the problem is that each pod has its own unique hostname, and it ends up creating ghost mnesia copies that ends up blocking other new pods rolling out

I'll try to use a statefulset to keep the hostname predictable across multiple pods.

I'll keep adding here what I can find for those who want to use disc only copies with k8s

eliasdarruda avatar May 24 '23 02:05 eliasdarruda

Any news on this? Working examples?

acrolink avatar Feb 02 '24 22:02 acrolink

I've managed to write an example here:

https://github.com/eliasdarruda/mnesia-with-k8s

This is a working version using Mnesiac and kubernetes with StatefulSet, this is saving and recovering the state correctly on rollouts and new setups.

@acrolink

eliasdarruda avatar Feb 04 '24 00:02 eliasdarruda

@eliasdarruda Thank you very much for sharing.

acrolink avatar Feb 04 '24 18:02 acrolink