activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbert...@apache.org
Subject [2/2] activemq-artemis git commit: NO-JIRA: Sync OSGi broker config with latest changes from ARTEMIS-1628
Date Fri, 16 Feb 2018 18:59:11 GMT
NO-JIRA: Sync OSGi broker config with latest changes from ARTEMIS-1628


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/866fb861
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/866fb861
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/866fb861

Branch: refs/heads/master
Commit: 866fb861c88f8dcf7f99da6a935ee38b3716e6c4
Parents: 9f215d0
Author: Benjamin Graf <benjamin.graf@gmx.net>
Authored: Sun Feb 11 18:13:47 2018 +0100
Committer: Justin Bertram <jbertram@apache.org>
Committed: Fri Feb 16 12:57:55 2018 -0600

----------------------------------------------------------------------
 artemis-features/src/main/resources/artemis.xml | 47 +++++++++++++-------
 1 file changed, 30 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/866fb861/artemis-features/src/main/resources/artemis.xml
----------------------------------------------------------------------
diff --git a/artemis-features/src/main/resources/artemis.xml b/artemis-features/src/main/resources/artemis.xml
index fa14495..5745f6e 100644
--- a/artemis-features/src/main/resources/artemis.xml
+++ b/artemis-features/src/main/resources/artemis.xml
@@ -32,21 +32,23 @@ under the License.
            MAPPED: mmap files
            NIO: Plain Java Files
        -->
-      <journal-type>ASYNCIO</journal-type>
+      <journal-type>NIO</journal-type>
 
-      <paging-directory>./data/artemis/paging</paging-directory>
+      <paging-directory>./paging</paging-directory>
 
-      <bindings-directory>./data/artemis/bindings</bindings-directory>
+      <bindings-directory>./bindings</bindings-directory>
 
-      <journal-directory>./data/artemis/journal</journal-directory>
+      <journal-directory>./journal</journal-directory>
 
-      <large-messages-directory>./data/artemis/large-messages</large-messages-directory>
+      <large-messages-directory>./large-messages</large-messages-directory>
 
       <journal-datasync>true</journal-datasync>
 
       <journal-min-files>2</journal-min-files>
 
-      <journal-pool-files>-1</journal-pool-files>
+      <journal-pool-files>10</journal-pool-files>
+
+      <journal-file-size>10M</journal-file-size>
 
       <!--
         You can verify the network health of a particular NIC by specifying the <network-check-NIC>
element.
@@ -76,20 +78,12 @@ under the License.
 
 
 
-      <!--
-       This value was determined through a calculation.
-       Your system could perform 20.83 writes per millisecond
-       on the current journal configuration.
-       That translates as a sync write every 48000 nanoseconds
-      -->
-      <journal-buffer-timeout>48000</journal-buffer-timeout>
-
 
       <!-- how often we are looking for how many bytes are being used on the disk in ms
-->
       <disk-scan-period>5000</disk-scan-period>
 
       <!-- once the disk hits this limit the system will block, or close the connection
in certain protocols
-     that won't support flow control. -->
+           that won't support flow control. -->
       <max-disk-usage>90</max-disk-usage>
 
       <!-- should the broker detect dead locks and other issues -->
@@ -107,7 +101,7 @@ under the License.
             The system will use half of the available memory (-Xmx) by default for the global-max-size.
             You may specify a different value here if you need to customize it to your needs.
 
-      <global-max-size>100Mb</global-max-size>
+            <global-max-size>100Mb</global-max-size>
 
       -->
 
@@ -117,6 +111,10 @@ under the License.
          <!-- amqpCredits: The number of credits sent to AMQP producers -->
          <!-- amqpLowCredits: The server will send the # credits specified at amqpCredits
at this low mark -->
 
+         <!-- Note: If an acceptor needs to be compatible with HornetQ and/or Artemis
1.x clients add
+                    "anycastPrefix=jms.queue.;multicastPrefix=jms.topic." to the acceptor
url.
+                    See https://issues.apache.org/jira/browse/ARTEMIS-1644 for more information.
-->
+
          <!-- Acceptor for every supported protocol -->
          <acceptor name="artemis">tcp://0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE;useEpoll=true;amqpCredits=1000;amqpLowCredits=300</acceptor>
 
@@ -127,7 +125,7 @@ under the License.
          <acceptor name="stomp">tcp://0.0.0.0:61613?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=STOMP;useEpoll=true</acceptor>
 
          <!-- HornetQ Compatibility Acceptor.  Enables HornetQ Core and STOMP for legacy
HornetQ clients. -->
-         <acceptor name="hornetq">tcp://0.0.0.0:5445?protocols=HORNETQ,STOMP;useEpoll=true</acceptor>
+         <acceptor name="hornetq">tcp://0.0.0.0:5445?anycastPrefix=jms.queue.;multicastPrefix=jms.topic.;protocols=HORNETQ,STOMP;useEpoll=true</acceptor>
 
          <!-- MQTT Acceptor -->
          <acceptor name="mqtt">tcp://0.0.0.0:1883?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=MQTT;useEpoll=true</acceptor>
@@ -196,5 +194,20 @@ under the License.
 
       </addresses>
 
+
+      <!-- Uncomment the following if you want to use the Standard LoggingActiveMQServerPlugin
pluging to log in events
+      <broker-plugins>
+         <broker-plugin class-name="org.apache.activemq.artemis.core.server.plugin.impl.LoggingActiveMQServerPlugin">
+            <property key="LOG_ALL_EVENTS" value="true"/>
+            <property key="LOG_CONNECTION_EVENTS" value="true"/>
+            <property key="LOG_SESSION_EVENTS" value="true"/>
+            <property key="LOG_CONSUMER_EVENTS" value="true"/>
+            <property key="LOG_DELIVERING_EVENTS" value="true"/>
+            <property key="LOG_SENDING_EVENTS" value="true"/>
+            <property key="LOG_INTERNAL_EVENTS" value="true"/>
+         </broker-plugin>
+      </broker-plugins>
+      -->
+
    </core>
 </configuration>


Mime
View raw message