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

Local Gateway: Move shard state to be stored under each shard, and not globally under _state #1618

Closed
kimchy opened this issue Jan 17, 2012 · 0 comments

Comments

@kimchy
Copy link
Member

kimchy commented Jan 17, 2012

Currently, the shards state (which shards are active on a node) is stored in a global file in the (data) node. Move it to be stored on each shard location (under its own _state) so its collocated with the shard storage location, and, so we can optimize and only write shards that change their state and not everything each time.

The old shard state will automatically be upgraded to the new state location once its stated, with a backup created in case a revert to the old structure is required.

@kimchy kimchy closed this as completed in 534f487 Jan 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant