{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/1254","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/1254/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/1254/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/1254/events","html_url":"https://github.com/hashicorp/consul/issues/1254","id":107791607,"number":1254,"title":"Importance of persisting data on -data-dir","user":{"login":"cleung2010","id":1883212,"avatar_url":"https://avatars.githubusercontent.com/u/1883212?v=3","gravatar_id":"","url":"https://api.github.com/users/cleung2010","html_url":"https://github.com/cleung2010","followers_url":"https://api.github.com/users/cleung2010/followers","following_url":"https://api.github.com/users/cleung2010/following{/other_user}","gists_url":"https://api.github.com/users/cleung2010/gists{/gist_id}","starred_url":"https://api.github.com/users/cleung2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleung2010/subscriptions","organizations_url":"https://api.github.com/users/cleung2010/orgs","repos_url":"https://api.github.com/users/cleung2010/repos","events_url":"https://api.github.com/users/cleung2010/events{/privacy}","received_events_url":"https://api.github.com/users/cleung2010/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-22T20:09:01Z","updated_at":"2015-09-22T20:09:01Z","closed_at":null,"body":"Ideally data on `-data-dir` is not all that important on a multi-tenant datacenter since nodes will automatically sync when they come back up, but I would assume that data would be unrecoverable if all node on the datacenter were gone at once (for example, someone accidentally terminates all server instances). \r\n\r\nSo my question is, would persisting data in `-data-dir` buy us anything? If so, is there any reason why `/tmp/consul` was chosen as `-data-dir` on the docs (https://www.consul.io/intro/getting-started/agent.html)?\r\n\r\nIn the case of running consul on docker, for example, would it be recommended to mount `-data-dir` and/or `-config-dir`?"}}