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

Question: ACID compliance? #19

Closed
ghost opened this issue Apr 28, 2015 · 2 comments
Closed

Question: ACID compliance? #19

ghost opened this issue Apr 28, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2015

I read the documentation but did not find if during the loading of the KV store from the git repo, it was possible for the KV store to be in an incorrect state vis-a-vis the state of the git repo.

The reason I ask is I'm considering using Consul Template, and wondering if it might be triggered multiple times during the update, if we update several keys.

@ryanbreen
Copy link
Collaborator

Consul Template would absolutely be triggered multiple times. I don't think there's any way for me to solve this on the git2consul side: Consul has no atomic bulk update, so whatever updates I make will violate ACID. I believe Consul Template supports a quiescence model, though, where you only render a template after N seconds of no updates. That would likely be the guidance if you want to use Consul Template.

We use http://github.com/Cimpress-MCP/fsconsul instead, where each K/V represents a single file. We'll never have a configuration file in an interim state since updates to single K/Vs are atomic.

@ryanbreen
Copy link
Collaborator

I'm going to close this since atomicity is not possible without Consul support.

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

1 participant