{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/swarm/issues/597","labels_url":"https://api.github.com/repos/docker/swarm/issues/597/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarm/issues/597/comments","events_url":"https://api.github.com/repos/docker/swarm/issues/597/events","html_url":"https://github.com/docker/swarm/issues/597","id":67227019,"number":597,"title":"Usecase for State.store in swarm","user":{"login":"smothiki","id":7416231,"avatar_url":"https://avatars.githubusercontent.com/u/7416231?v=3","gravatar_id":"","url":"https://api.github.com/users/smothiki","html_url":"https://github.com/smothiki","followers_url":"https://api.github.com/users/smothiki/followers","following_url":"https://api.github.com/users/smothiki/following{/other_user}","gists_url":"https://api.github.com/users/smothiki/gists{/gist_id}","starred_url":"https://api.github.com/users/smothiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smothiki/subscriptions","organizations_url":"https://api.github.com/users/smothiki/orgs","repos_url":"https://api.github.com/users/smothiki/repos","events_url":"https://api.github.com/users/smothiki/events{/privacy}","received_events_url":"https://api.github.com/users/smothiki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-08T21:46:30Z","updated_at":"2015-04-08T21:46:30Z","closed_at":null,"body":"I'm trying to implement handling  node fail-overs in swarm and figured out that A state of a container is stored in ```.swarm``` file as a key value pair {container : container state}. But swarm is not storing the state of a Node . it would be helpful to store a key value map of {Node : containerList} along with the {container : container state} and keep updating containerList . This helps for a faster lookup of a Node snapshot in case of a node failure and rerun the scheduling logic for the containers in the failed node.\r\n\r\nAlso any thoughts on how to extend store interface to a distributed store ? \r\n\r\n"}}