-
Notifications
You must be signed in to change notification settings - Fork 910
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARTEMIS-2716 Adding single-pair atomix + zk smoke-test
- Loading branch information
Showing
14 changed files
with
1,396 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 138 additions & 0 deletions
138
tests/smoke-tests/src/main/resources/servers/atomixReplicationBackup/broker.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--><configuration xmlns="urn:activemq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:activemq /schema/artemis-server.xsd"> | ||
|
||
<core xmlns="urn:activemq:core"> | ||
|
||
<name>backup</name> | ||
|
||
<bindings-directory>./data/bindings</bindings-directory> | ||
|
||
<journal-directory>./data/journal</journal-directory> | ||
|
||
<large-messages-directory>./data/largemessages</large-messages-directory> | ||
|
||
<paging-directory>./data/paging</paging-directory> | ||
|
||
<ha-policy> | ||
<replication> | ||
<backup> | ||
<manager> | ||
<properties> | ||
<property key="id" value="backup" /> | ||
<property key="nodes" value="witness@localhost:7778,primary@localhost:7777,backup@localhost:7779" /> | ||
</properties> | ||
</manager> | ||
<allow-failback>true</allow-failback> | ||
</backup> | ||
</replication> | ||
</ha-policy> | ||
|
||
<connectors> | ||
<!-- Connector used to be announced through cluster connections and notifications --> | ||
<connector name="artemis">tcp://localhost:61916</connector> | ||
<connector name="primary">tcp://localhost:61616</connector> | ||
</connectors> | ||
|
||
|
||
<!-- Acceptors --> | ||
<acceptors> | ||
<acceptor name="artemis">tcp://localhost:61916</acceptor> | ||
</acceptors> | ||
|
||
<cluster-user>admin</cluster-user> | ||
|
||
<cluster-password>password</cluster-password> | ||
|
||
<cluster-connections> | ||
<cluster-connection name="my-cluster"> | ||
<connector-ref>artemis</connector-ref> | ||
<message-load-balancing>OFF</message-load-balancing> | ||
<max-hops>1</max-hops> | ||
<static-connectors> | ||
<connector-ref>primary</connector-ref> | ||
</static-connectors> | ||
</cluster-connection> | ||
</cluster-connections> | ||
|
||
<!-- Other config --> | ||
|
||
<security-settings> | ||
<!--security for example queue--> | ||
<security-setting match="#"> | ||
<permission type="createNonDurableQueue" roles="amq, guest"/> | ||
<permission type="deleteNonDurableQueue" roles="amq, guest"/> | ||
<permission type="createDurableQueue" roles="amq, guest"/> | ||
<permission type="deleteDurableQueue" roles="amq, guest"/> | ||
<permission type="createAddress" roles="amq, guest"/> | ||
<permission type="deleteAddress" roles="amq, guest"/> | ||
<permission type="consume" roles="amq, guest"/> | ||
<permission type="browse" roles="amq, guest"/> | ||
<permission type="send" roles="amq, guest"/> | ||
<!-- we need this otherwise ./artemis data imp wouldn't work --> | ||
<permission type="manage" roles="amq"/> | ||
</security-setting> | ||
</security-settings> | ||
|
||
<address-settings> | ||
<!-- if you define auto-create on certain queues, management has to be auto-create --> | ||
<address-setting match="activemq.management#"> | ||
<dead-letter-address>DLQ</dead-letter-address> | ||
<expiry-address>ExpiryQueue</expiry-address> | ||
<redelivery-delay>0</redelivery-delay> | ||
<!-- with -1 only the global-max-size is in use for limiting --> | ||
<max-size-bytes>-1</max-size-bytes> | ||
<message-counter-history-day-limit>10</message-counter-history-day-limit> | ||
<address-full-policy>PAGE</address-full-policy> | ||
<auto-create-queues>true</auto-create-queues> | ||
<auto-create-addresses>true</auto-create-addresses> | ||
<auto-create-jms-queues>true</auto-create-jms-queues> | ||
<auto-create-jms-topics>true</auto-create-jms-topics> | ||
</address-setting> | ||
<!--default for catch all--> | ||
<address-setting match="#"> | ||
<dead-letter-address>DLQ</dead-letter-address> | ||
<expiry-address>ExpiryQueue</expiry-address> | ||
<redelivery-delay>0</redelivery-delay> | ||
<!-- with -1 only the global-max-size is in use for limiting --> | ||
<max-size-bytes>10MB</max-size-bytes> | ||
<page-size-bytes>1MB</page-size-bytes> | ||
|
||
<message-counter-history-day-limit>10</message-counter-history-day-limit> | ||
<address-full-policy>PAGE</address-full-policy> | ||
<auto-create-queues>true</auto-create-queues> | ||
<auto-create-addresses>true</auto-create-addresses> | ||
<auto-create-jms-queues>true</auto-create-jms-queues> | ||
<auto-create-jms-topics>true</auto-create-jms-topics> | ||
</address-setting> | ||
</address-settings> | ||
|
||
<addresses> | ||
<address name="exampleTopic"> | ||
<multicast> | ||
</multicast> | ||
</address> | ||
<address name="exampleQueue"> | ||
<anycast> | ||
<queue name="exampleQueue"/> | ||
</anycast> | ||
</address> | ||
</addresses> | ||
</core> | ||
</configuration> |
20 changes: 20 additions & 0 deletions
20
tests/smoke-tests/src/main/resources/servers/atomixReplicationBackup/management.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
~ contributor license agreements. See the NOTICE file distributed with | ||
~ this work for additional information regarding copyright ownership. | ||
~ The ASF licenses this file to You under the Apache License, Version 2.0 | ||
~ (the "License"); you may not use this file except in compliance with | ||
~ the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<management-context xmlns="http://activemq.org/schema"> | ||
<connector connector-port="10199" connector-host="localhost"/> | ||
</management-context> |
Oops, something went wrong.