{"action":"created","issue":{"url":"https://api.github.com/repos/zalando/patroni/issues/48","labels_url":"https://api.github.com/repos/zalando/patroni/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/zalando/patroni/issues/48/comments","events_url":"https://api.github.com/repos/zalando/patroni/issues/48/events","html_url":"https://github.com/zalando/patroni/issues/48","id":107759230,"number":48,"title":"Add tags to replicas to support many replicas","user":{"login":"jberkus","id":115146,"avatar_url":"https://avatars.githubusercontent.com/u/115146?v=3","gravatar_id":"","url":"https://api.github.com/users/jberkus","html_url":"https://github.com/jberkus","followers_url":"https://api.github.com/users/jberkus/followers","following_url":"https://api.github.com/users/jberkus/following{/other_user}","gists_url":"https://api.github.com/users/jberkus/gists{/gist_id}","starred_url":"https://api.github.com/users/jberkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jberkus/subscriptions","organizations_url":"https://api.github.com/users/jberkus/orgs","repos_url":"https://api.github.com/users/jberkus/repos","events_url":"https://api.github.com/users/jberkus/events{/privacy}","received_events_url":"https://api.github.com/users/jberkus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-22T17:14:04Z","updated_at":"2015-10-08T16:05:28Z","closed_at":null,"body":"Replicas should have the following attributes available.  This would be added as tags within the replica description, both in the API and in the SIS.  If the tags are absent, default behavior remains the same; in the config, the tags below are set to True or False:\r\n\r\n**nofailover**: this replica should not be a candidate for automatic failover.  Used for ephemeral replicas, and multi-replica setups where there are a few designated failover targets.   If the tag is missing, the replica is assumed to be a failover target.\r\n\r\n**noloadbalance**: this replica should not be part of any load-balancing, if HAProxy autoconfig is being used.  \r\n\r\n**clonefrom**:  take basebackups from this replica *instead of* from the master.  If multiple CloneFrom replicals are available, one is randomly chosen for new basebackups.  If cloning using WALE or other archival backup, this tag is ignored.\r\n\r\n**replicatefrom**: not true or false, but the IP address/hostname of another replica.  Used to support cascading replication."},"comment":{"url":"https://api.github.com/repos/zalando/patroni/issues/comments/146593864","html_url":"https://github.com/zalando/patroni/issues/48#issuecomment-146593864","issue_url":"https://api.github.com/repos/zalando/patroni/issues/48","id":146593864,"user":{"login":"jberkus","id":115146,"avatar_url":"https://avatars.githubusercontent.com/u/115146?v=3","gravatar_id":"","url":"https://api.github.com/users/jberkus","html_url":"https://github.com/jberkus","followers_url":"https://api.github.com/users/jberkus/followers","following_url":"https://api.github.com/users/jberkus/following{/other_user}","gists_url":"https://api.github.com/users/jberkus/gists{/gist_id}","starred_url":"https://api.github.com/users/jberkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jberkus/subscriptions","organizations_url":"https://api.github.com/users/jberkus/orgs","repos_url":"https://api.github.com/users/jberkus/repos","events_url":"https://api.github.com/users/jberkus/events{/privacy}","received_events_url":"https://api.github.com/users/jberkus/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T16:05:28Z","updated_at":"2015-10-08T16:05:28Z","body":"@kmoppel Certianly you could easily add a self.custom_tags dictionary to __init__.py, and then an optional config setting called \"custom_tags\" which takes a list to the patroni config file.   However, what good would this do you?  Pretty much the only thing you could do with the custom tags is pass them along to create_replica scripts; there's no place else in patroni we would read them.    So what's the point?\r\n\r\nIf you want custom tags *just* for the CLI, that's really a completely different feature."}}