Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4129

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.27.1
    • 2.28.0
    • Broker
    • None

    Description

      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>

       

      Attachments

        1. image-2023-01-14-22-40-52-484.png
          4 kB
          Mikhail Lukyanov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lukymiv Mikhail Lukyanov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m