Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any examples of this working in a k8s environment? #93

Open
eliasdarruda opened this issue May 22, 2023 · 5 comments
Open

Any examples of this working in a k8s environment? #93

eliasdarruda opened this issue May 22, 2023 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@eliasdarruda
Copy link

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?

@beardedeagle
Copy link
Owner

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 beardedeagle added the help wanted Extra attention is needed label May 23, 2023
@eliasdarruda
Copy link
Author

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

@acrolink
Copy link

acrolink commented Feb 2, 2024

Any news on this? Working examples?

@eliasdarruda
Copy link
Author

eliasdarruda commented Feb 4, 2024

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

@acrolink
Copy link

acrolink commented Feb 4, 2024

@eliasdarruda Thank you very much for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants