Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-7948

When HA does not configure the oldreplica number of directories parameter (max-saved-replicated-journals-size) for the master/primary, always the default value of 2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • False
    • None
    • False

      The parameter max-saved-replicated-journals-size (number of oldreplica directories) is configured only for the slave/backup, for the master/primary I can not do this. Always creates 2 oldreplica directories in journal and in paging dirs when restarting the broker.

      Master config 

              <connectors>
                  <connector name="local">tcp://192.168.58.6:61611</connector>
                  <connector name="toA2">tcp://192.168.58.6:61612</connector>
              </connectors>
              <acceptors>
                  <acceptor name="default-listener">tcp://0.0.0.0:61611</acceptor>
              </acceptors>
              <ha-policy>
                  <replication>
                      <master>
                          <group-name>A</group-name>
                          <cluster-name>cluster</cluster-name>
                          <check-for-live-server>true</check-for-live-server>
                          <initial-replication-sync-timeout>30000</initial-replication-sync-timeout>
                          <vote-on-replication-failure>false</vote-on-replication-failure>
                          <quorum-size>-1</quorum-size>
                          <vote-retries>12</vote-retries>
                          <vote-retry-wait>5000</vote-retry-wait>
                          <quorum-vote-wait>30</quorum-vote-wait>
                          <retry-replication-wait>2000</retry-replication-wait>
                      </master>
                  </replication>
              </ha-policy>
              <cluster-connections>
                  <cluster-connection name="cluster">
                      <connector-ref>local</connector-ref>
                      <check-period>30000</check-period>
                      <connection-ttl>60000</connection-ttl>
                      <min-large-message-size>102400</min-large-message-size>
                      <call-timeout>30000</call-timeout>
                      <retry-interval>2000</retry-interval>
                      <retry-interval-multiplier>1.0</retry-interval-multiplier>
                      <max-retry-interval>2000</max-retry-interval>
                      <initial-connect-attempts>-1</initial-connect-attempts>
                      <reconnect-attempts>-1</reconnect-attempts>
                      <use-duplicate-detection>true</use-duplicate-detection>
                      <message-load-balancing>ON_DEMAND</message-load-balancing>
                      <max-hops>1</max-hops>
                      <confirmation-window-size>10485760</confirmation-window-size>
                      <producer-window-size>-1</producer-window-size>
                      <call-failover-timeout>-1</call-failover-timeout>
                      <notification-interval>1000</notification-interval>
                      <notification-attempts>2</notification-attempts>
                      <static-connectors>
                          <connector-ref>toA2</connector-ref>
                      </static-connectors>
                  </cluster-connection>
              </cluster-connections>

       

      Slave config 

       

              <connectors>
                  <connector name="local">tcp://192.168.58.6:61612</connector>
                  <connector name="toA1">tcp://192.168.58.6:61611</connector>
              </connectors>
              <acceptors>
                  <acceptor name="default-listener">tcp://0.0.0.0:61612</acceptor>
              </acceptors>
              <ha-policy>
                  <replication>
                      <slave>
                          <group-name>A</group-name>
                          <cluster-name>cluster</cluster-name>
                          <max-saved-replicated-journals-size>0</max-saved-replicated-journals-size>
                          <restart-backup>true</restart-backup>
                          <allow-failback>true</allow-failback>
                          <initial-replication-sync-timeout>30000</initial-replication-sync-timeout>
                          <vote-on-replication-failure>false</vote-on-replication-failure>
                          <quorum-size>-1</quorum-size>
                          <vote-retries>12</vote-retries>
                          <vote-retry-wait>5000</vote-retry-wait>
                          <retry-replication-wait>2000</retry-replication-wait>
                          <quorum-vote-wait>30</quorum-vote-wait>
                      </slave>
                  </replication>
              </ha-policy>
              <cluster-connections>
                  <cluster-connection name="cluster">
                      <connector-ref>local</connector-ref>
                      <check-period>30000</check-period>
                      <connection-ttl>60000</connection-ttl>
                      <min-large-message-size>102400</min-large-message-size>
                      <call-timeout>30000</call-timeout>
                      <retry-interval>2000</retry-interval>
                      <retry-interval-multiplier>1.0</retry-interval-multiplier>
                      <max-retry-interval>2000</max-retry-interval>
                      <initial-connect-attempts>-1</initial-connect-attempts>
                      <reconnect-attempts>-1</reconnect-attempts>
                      <use-duplicate-detection>true</use-duplicate-detection>
                      <message-load-balancing>ON_DEMAND</message-load-balancing>
                      <max-hops>1</max-hops>
                      <confirmation-window-size>10485760</confirmation-window-size>
                      <producer-window-size>-1</producer-window-size>
                      <call-failover-timeout>-1</call-failover-timeout>
                      <notification-interval>1000</notification-interval>
                      <notification-attempts>2</notification-attempts>
                      <static-connectors>
                          <connector-ref>toA1</connector-ref>
                      </static-connectors>
                  </cluster-connection>
              </cluster-connections>

       

            rhn-support-jbertram Justin Bertram
            rh-messaging-ci Messaging CI
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: