I'm using using Mesos and Marathon to manage application deployments, and have run into this bug in Marathon https://github.com/mesosphere/marathon/issues/3783 , which is to say that a leader election during a deployment scales instances down to 0. Leader elections were happening very frequently (approximately once every 30 minutes), and so I'm hitting this issue fairly often.
I know once every 30 minutes is highly irregular, because I've since upgrading to Marathon 1.3.10 and have been election-free for past 2 days, but how often is "normal"? Does leader abdication / election happen under normal conditions, or should I expect 0 elections unless there is an underlying issue? It was suggested to me by a colleague that "leader elections are normal" and that a "certain number of elections are normal and to be expected". I just don't believe that, and would like to know for sure.