Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4628

[discovery] Add a JMX method to start a new voting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • Discovery Impl 1.1.0
    • Discovery Impl 1.1.2
    • Extensions
    • None

    Description

      With SLING-4516 an additional way of controlling the instance ordering in a cluster and thus who will become is leader (which is defined via alphabetical ordering of the leaderElectionId) is introduced.

      When the leaderElectionId changes, this does not automatically trigger a new vote however, since it conflicts with the discovery API which demands that the leader be stable.

      In order to still support use cases where a leader knowingly and explicitly wants to be changed (by an admin), a JMX method for starting a new voting should be introduced. This would simply cause a new ongoingVotings to be created based on the existing set of instances. It would not fiddle with the way the leader is chosen in any way. All it would do is, based on the leaderElectionIds it would elect a (potentially new) leader.

      This would support management possibilities around forcing a different or specific leader to some extend.

      Attachments

        Issue Links

          Activity

            People

              stefanegli Stefan Egli
              stefanegli Stefan Egli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: