autodesk-cloud / ochopod

Your friendly orchestration overlay over Mesos, K8S and more !
http://autodesk-cloud.github.io/ochopod/
Apache License 2.0
122 stars 20 forks source link

Support for master/slave pod cluster #1

Closed stphung closed 9 years ago

stphung commented 9 years ago

It looks like it is possible to know whether a pod is a follower or a leader once it is running. Is it possible to know this information inside of the configure method in pod.py?

I was thinking of a general use case where you could run a pod cluster with one pod acting as the master and the others acting as the slaves but that would require knowing this before starting the application.

opaugam commented 9 years ago

Good question. The follower/leader mechanism is strictly related to how ochopod manages its clustering and has no real meaning for what you run underneath, unless I guess you wish to use that mechanism somehow to implement a (coarse) leader election for free.

I can add it this week if you need it.