{"action":"created","issue":{"url":"https://api.github.com/repos/tchandy/octopus/issues/290","labels_url":"https://api.github.com/repos/tchandy/octopus/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/tchandy/octopus/issues/290/comments","events_url":"https://api.github.com/repos/tchandy/octopus/issues/290/events","html_url":"https://github.com/tchandy/octopus/issues/290","id":50031718,"number":290,"title":"Replication database names","user":{"login":"dvodvo","id":716130,"avatar_url":"https://avatars.githubusercontent.com/u/716130?v=3","gravatar_id":"","url":"https://api.github.com/users/dvodvo","html_url":"https://github.com/dvodvo","followers_url":"https://api.github.com/users/dvodvo/followers","following_url":"https://api.github.com/users/dvodvo/following{/other_user}","gists_url":"https://api.github.com/users/dvodvo/gists{/gist_id}","starred_url":"https://api.github.com/users/dvodvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvodvo/subscriptions","organizations_url":"https://api.github.com/users/dvodvo/orgs","repos_url":"https://api.github.com/users/dvodvo/repos","events_url":"https://api.github.com/users/dvodvo/events{/privacy}","received_events_url":"https://api.github.com/users/dvodvo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-25T14:16:14Z","updated_at":"2015-03-12T01:36:05Z","closed_at":"2015-03-12T01:36:05Z","body":"Sorry if this seems banal, but the questions derives from a point where I fail to grasp the logic. And, all to often proper naming can mean a world of (non-)confusion.\r\n\r\nContext: replication ONLY\r\n\r\nUsing your `octopus_replication_example` you defined the master database's name `database: octopus_replication_1` in database.yml\r\nIn `shards.yml`, each instance has its own database name, i.e. `database: octopus_replication_2`. It feels unnatural that on a replication basis only, i.e. these are read-only containers, that the database have a different name than its master (a true shard would NEED to have a distinguishing name)\r\n\r\nI realise that the directive `octopus:\r\n  replicated: true`\r\ncircumvents the matter, but, would naming the shards with the same name as the master have any consequence to operations?"},"comment":{"url":"https://api.github.com/repos/tchandy/octopus/issues/comments/78408626","html_url":"https://github.com/tchandy/octopus/issues/290#issuecomment-78408626","issue_url":"https://api.github.com/repos/tchandy/octopus/issues/290","id":78408626,"user":{"login":"tchandy","id":6090,"avatar_url":"https://avatars.githubusercontent.com/u/6090?v=3","gravatar_id":"","url":"https://api.github.com/users/tchandy","html_url":"https://github.com/tchandy","followers_url":"https://api.github.com/users/tchandy/followers","following_url":"https://api.github.com/users/tchandy/following{/other_user}","gists_url":"https://api.github.com/users/tchandy/gists{/gist_id}","starred_url":"https://api.github.com/users/tchandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchandy/subscriptions","organizations_url":"https://api.github.com/users/tchandy/orgs","repos_url":"https://api.github.com/users/tchandy/repos","events_url":"https://api.github.com/users/tchandy/events{/privacy}","received_events_url":"https://api.github.com/users/tchandy/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T01:36:05Z","updated_at":"2015-03-12T01:36:05Z","body":"Hi @dvodvo ,\r\n\r\nTo be honest, I think it would generate an problem. Since Octopus uses shard names as keys, it might override a few of your shards, not sending queries to them.\r\n\r\nI'm closing this issue. If you have any additional problems, please feel free to reopen.\r\n\r\nThiago"}}