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

Use persistent storage for services #10

Open
pierredup opened this issue Jun 19, 2015 · 1 comment
Open

Use persistent storage for services #10

pierredup opened this issue Jun 19, 2015 · 1 comment

Comments

@pierredup
Copy link
Contributor

Currently levelup is used to store service definitions. The issue is that it doesn't persist the data when the container shuts down. So when the service is re-started you suddenly don't have any service configs anymore (This happened twice to me already).

So one option is to not use levelup, but rather save the config in etcd.
Or the other option is to create a volume for the db directory that can be mounted to the host so that the config can persist between container restarts.

Throughts?

@lukebond
Copy link
Contributor

you are absolutely right about this @pierredup and i know how annoying it is when it happens to you when you're not expecting it at first.

when i've actually deployed things with Paz I've manually set up the mount and changed the unit files, which is not a viable solution considering we want this to be usable out of the box.

one change we're making atm is for the Paz Vagrant installation process to default to a single-node cluster and to do some sort of volume mounting to deal with this issue.

how that happens in production will probably be different and people will want it to be configurable. I'm open to ideas on that.

there are other options, as you say, and Etcd is a tempting one for the service directory. the scheduler kinda needs a database though as it needs to do range queries etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants