{"action":"created","issue":{"url":"https://api.github.com/repos/doxout/recluster/issues/24","labels_url":"https://api.github.com/repos/doxout/recluster/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/doxout/recluster/issues/24/comments","events_url":"https://api.github.com/repos/doxout/recluster/issues/24/events","html_url":"https://github.com/doxout/recluster/issues/24","id":58172008,"number":24,"title":"Domain example","user":{"login":"thedug","id":158122,"avatar_url":"https://avatars.githubusercontent.com/u/158122?v=3","gravatar_id":"","url":"https://api.github.com/users/thedug","html_url":"https://github.com/thedug","followers_url":"https://api.github.com/users/thedug/followers","following_url":"https://api.github.com/users/thedug/following{/other_user}","gists_url":"https://api.github.com/users/thedug/gists{/gist_id}","starred_url":"https://api.github.com/users/thedug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedug/subscriptions","organizations_url":"https://api.github.com/users/thedug/orgs","repos_url":"https://api.github.com/users/thedug/repos","events_url":"https://api.github.com/users/thedug/events{/privacy}","received_events_url":"https://api.github.com/users/thedug/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-19T06:15:27Z","updated_at":"2015-02-21T03:39:55Z","closed_at":null,"body":"Is there a working example of using domains with recluster to gracefully restart on unhanded exceptions?"},"comment":{"url":"https://api.github.com/repos/doxout/recluster/issues/comments/75353835","html_url":"https://github.com/doxout/recluster/issues/24#issuecomment-75353835","issue_url":"https://api.github.com/repos/doxout/recluster/issues/24","id":75353835,"user":{"login":"thedug","id":158122,"avatar_url":"https://avatars.githubusercontent.com/u/158122?v=3","gravatar_id":"","url":"https://api.github.com/users/thedug","html_url":"https://github.com/thedug","followers_url":"https://api.github.com/users/thedug/followers","following_url":"https://api.github.com/users/thedug/following{/other_user}","gists_url":"https://api.github.com/users/thedug/gists{/gist_id}","starred_url":"https://api.github.com/users/thedug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedug/subscriptions","organizations_url":"https://api.github.com/users/thedug/orgs","repos_url":"https://api.github.com/users/thedug/repos","events_url":"https://api.github.com/users/thedug/events{/privacy}","received_events_url":"https://api.github.com/users/thedug/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T03:39:55Z","updated_at":"2015-02-21T03:39:55Z","body":"Just to make sure I've got this right, process.disconnect will disconnect the IPC channel and recluster will respawn a new one and the timeout will force kill the any processes that got a disconnect?\r\n\r\nWhy then do we need to call server.close? Doesn't that also just stop new requests?\r\n\r\nDomains do seem much more complicated than just listening to an event. Why do so many examples use domains when they aren't limiting the scope? Typically the only code that is not in the domain scope is some minute bootstrapping and the \"shutdown\" logic.\r\n\r\nWhen you say \"safe\" depends on your app. Shouldn't most things be ok as long as you shutdown after bleeding existing connections with timeout fail safe?\r\n\r\n"}}