deis / postgres

A PostgreSQL database used by Deis Workflow.
https://deis.com
MIT License
36 stars 22 forks source link

add "master" label to pod on the fly #6

Closed technosophos closed 8 years ago

technosophos commented 8 years ago

Is it possible to add add a label like master:true to the pod spec on the fly? That would open up the opportunity to run minions as read-only slaves in the future.

/cc @atschabu

bacongobbler commented 8 years ago

Right now we don't use labels. We just boot them all and they race for a key. First one takes master. There's no way to run other instances as read-only slaves at the moment, but this is something that I would like to eventually see with some on-the-fly configuration.

I'll have to think about this in a follow-up rewrite of governor.

bacongobbler commented 8 years ago

Closing as multi-pod postgres is not something we want to target for v2. See #24.