XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: EAP_EWP 5.3.0.ER1
    • Component/s: None
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Release Notes Text:
      Hide
      Possible release notes content:
      This feature adds two new election policies. Said policies are:
      org.jboss.ha.singleton.HASingletonElectionPolicySimpleQuorum
      org.jboss.ha.singleton.HASingletonElectionPolicyQuorum
      'Quorum' implies that election of master node does not happen unless there is minimum number of nodes met ( in cluster ). This applies to both, new nodes joining and nodes falling out of cluster - either due to network split or nodes just being shut down.
      'Quorum' is configurable parameter in both policies( setQuorum ). The HASingletonElectionPolicyQuorum has only quorum configurable. The HASingletonElectionPolicySimpleQuorum has an offset, just like org.jboss.ha.singleton.HASingletonElectionPolicySimple .


      Example setup:

      <bean class="org.jboss.ha.singleton.HASingletonElectionPolicyQuorum" name="ExampleHASingletonElectionPolicy">
      <property name="quorum">2</property>
      </bean>
      <bean class="org.jboss.ha.singleton.HASingletonController" name="ExampleHASingletonController">
      <annotation>
      @org.jboss.aop.microcontainer.aspects.jmx.JMX(name="atest:service=ExampleHASingletonController", exposedInterface=org.jboss.ha.singleton.HASingletonControllerMBean.class, registerDirectly=true)
      </annotation>
      <property name="clusterPartition">
      <inject bean="ExampleHAPartition"/>
      </property>
      <property name="electionPolicy">
      <inject bean="ExampleHASingletonElectionPolicy"/>
      </property>
      <property name="target">
      <inject bean="ExampleHASingletonMBean"/>
      </property>
      <property name="targetStartMethod">startSingleton</property>
      <property name="targetStopMethod">stopSingleton</property>
      <property name="targetStopMethodArgument">true</property>
      </bean>
      Show
      Possible release notes content: This feature adds two new election policies. Said policies are: org.jboss.ha.singleton.HASingletonElectionPolicySimpleQuorum org.jboss.ha.singleton.HASingletonElectionPolicyQuorum 'Quorum' implies that election of master node does not happen unless there is minimum number of nodes met ( in cluster ). This applies to both, new nodes joining and nodes falling out of cluster - either due to network split or nodes just being shut down. 'Quorum' is configurable parameter in both policies( setQuorum ). The HASingletonElectionPolicyQuorum has only quorum configurable. The HASingletonElectionPolicySimpleQuorum has an offset, just like org.jboss.ha.singleton.HASingletonElectionPolicySimple . Example setup: <bean class="org.jboss.ha.singleton.HASingletonElectionPolicyQuorum" name="ExampleHASingletonElectionPolicy"> <property name="quorum">2</property> </bean> <bean class="org.jboss.ha.singleton.HASingletonController" name="ExampleHASingletonController"> <annotation> @org.jboss.aop.microcontainer.aspects.jmx.JMX(name="atest:service=ExampleHASingletonController", exposedInterface=org.jboss.ha.singleton.HASingletonControllerMBean.class, registerDirectly=true) </annotation> <property name="clusterPartition"> <inject bean="ExampleHAPartition"/> </property> <property name="electionPolicy"> <inject bean="ExampleHASingletonElectionPolicy"/> </property> <property name="target"> <inject bean="ExampleHASingletonMBean"/> </property> <property name="targetStartMethod">startSingleton</property> <property name="targetStopMethod">stopSingleton</property> <property name="targetStopMethodArgument">true</property> </bean>
    • Release Notes Docs Status:
      Not Yet Documented
    • Docs QE Status:
      NEW
    • Target Release:

      Description

      Add ability to have a quorum before singletons are spawned.

        Attachments

          Activity

            People

            Assignee:
            baranowb Bartosz Baranowski
            Reporter:
            baranowb Bartosz Baranowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: