You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Mikhail Lukyanov (Jira)" <ji...@apache.org> on 2023/01/14 19:45:00 UTC

[jira] [Created] (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

Mikhail Lukyanov created ARTEMIS-4129:
-----------------------------------------

             Summary: 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
                 Key: ARTEMIS-4129
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4129
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Broker
    Affects Versions: 2.27.1
            Reporter: Mikhail Lukyanov
         Attachments: image-2023-01-14-22-40-52-484.png

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.

!image-2023-01-14-22-40-52-484.png!

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>

```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)