activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@apache.org>
Subject Re: Activemq - artemis configuration issue
Date Thu, 04 Jan 2018 20:15:40 GMT
> Does i need to have any change in address settings for the messages to
have faster process of acknowledgement.

How quickly messages are acknowledged is largely dependent on the your
consumers.  There's not much which can be done on the broker to speed
acknowledgement.

> yes, i have configured with fail-back on the back up.

That configuration looks good to me.


Justin

On Thu, Jan 4, 2018 at 1:02 PM, victork <vasanthkalali@gmail.com> wrote:

> 1. I have been facing the paging issue earlier with this configuration
>       <max-size-bytes>-1</max-size-bytes>
>       <global-max-size>104857600</global-max-size>
> Most of the messages goes into paging with this configuration.
>
> 2 .I have overcome the paging issue by changing the address setting
> configuration with
>        <max-size-bytes>104857600</max-size-bytes>
>       <page-size-bytes>10485760</page-size-bytes>
>       <global-max-size>1073741824</global-max-size>
> But still i used to seem very less messages goes into to PAGE mode. Does i
> need to have any change in address settings for the messages to have faster
> process of acknowledgement.
>
> 3. Clustter connectivity.
> I have clustered connectivity configuration with HA policy and disabling
> the
> broadcast-groups and discovery-groups.As in AWS instances there is no
> broadcast address available.
>
>  **
>
> yes, i have configured with fail-back on the back up.
>
> *On master : *
> *<ha-policy>
>          <replication>
>               <master>
>                 <cluster-name>my-cluster</cluster-name>
>                  <check-for-live-server>true</check-for-live-server>
>             </master>
>          </replication>
> </ha-policy>*
>
> *on slave:*
>   *<ha-policy>
>          <replication>
>             <slave>
>                 <cluster-name>my-cluster</cluster-name>
>                 <allow-failback>true</allow-failback>
>             </slave>
>          </replication>
>       </ha-policy>*
>
> Please suggest with the better configuration .
> *Below is my broker configuration *
>
> <?xml version='1.0'?>
>
>
>  <configuration xmlns="urn:activemq"
>                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                 xsi:schemaLocation="urn:activemq
>  /schema/artemis-configuration.xsd">
>
>
>  <plugins>
>     <discardingDLQBrokerPlugin dropAll="true" dropTemporaryTopics="true"
>  dropTemporaryQueues="true"/>
>  </plugins>
>
>     <jms xmlns="urn:activemq:jms">
>        <queue name="DLQ"/>
>        <queue name="ExpiryQueue"/>
>
>     </jms>
>
>     <core xmlns="urn:activemq:core">
>
>        <name>broker1</name>
>
>        <persistence-enabled>true</persistence-enabled>
>
>
>        <journal-type>ASYNCIO</journal-type>
>
>        <paging-directory>./data/paging</paging-directory>
>
>        <bindings-directory>./data/bindings</bindings-directory>
>
>        <journal-directory>./data/journal</journal-directory>
>
>
>  <large-messages-directory>./data/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-buffer-timeout>508000</journal-buffer-timeout>
>
>
>  <thread-pool-max-size>-1</thread-pool-max-size>
>  <scheduled-thread-pool-max-size>40</scheduled-thread-pool-max-size>
>
>      <connectors>
>
>          <connector name="artemis">tcp://10.x.x.x:61616</connector>
>          <connector name="server1-connector">tcp:/
>  /10.y.y.y:61616</connector>
>      </connectors>
>
>
>
>        <disk-scan-period>5000</disk-scan-period>
>
>
>        <max-disk-usage>90</max-disk-usage>
>
>
>        <global-max-size>1073741824</global-max-size>
>
>        <acceptors>
>
>           <acceptor
>  name="artemis">tcp://10.x.x.x:61616?tcpSendBufferSize=
>  1048576;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,
>  STOMP,HORNETQ,MQTT,OPENWIRE</acceptor>
>
>
>
>           <acceptor name="amqp">tcp://10.x.x.x:
>  5672?protocols=AMQP</acceptor>
>
>
>           <acceptor
>  name="stomp">tcp://10.x.x.x:61613?protocols=STOMP</acceptor>
>
>
>           <acceptor
>  name="hornetq">tcp://10.x.x.x:5445?protocols=HORNETQ,STOMP</acceptor>
>
>
>           <acceptor name="mqtt">tcp://10.x.x.x:
>  1883?protocols=MQTT</acceptor>
>
>        </acceptors>
>
>
>        <cluster-user>amqcuser</cluster-user>
>
>        <cluster-password>amqcuser</cluster-password>
>
>
>
>        <cluster-connections>
>           <cluster-connection name="my-cluster">
>              <address>jms</address>
>              <connector-ref>artemis</connector-ref>
>              <message-load-balancing>ON_DEMAND</message-load-balancing>
>              <max-hops>0</max-hops>
>
>              <static-connectors>
>                 <connector-ref>server1-connector</connector-ref>
>              </static-connectors>
>           </cluster-connection>
>        </cluster-connections>
>
>
>        <ha-policy>
>           <replication>
>              <master>
>                  <cluster-name>my-cluster</cluster-name>
>                  <check-for-live-server>true</check-for-live-server>
>              </master>
>           </replication>
>        </ha-policy>
>
>        <security-settings>
>           <security-setting match="#">
>              <permission type="createNonDurableQueue" roles="amq"/>
>              <permission type="deleteNonDurableQueue" roles="amq"/>
>              <permission type="createDurableQueue" roles="amq"/>
>              <permission type="deleteDurableQueue" roles="amq"/>
>              <permission type="consume" roles="amq"/>
>              <permission type="browse" roles="amq"/>
>              <permission type="send" roles="amq"/>
>
>              <permission type="manage" roles="amq"/>
>           </security-setting>
>        </security-settings>
>
>        <address-settings>
>
>           <address-setting match="#">
>              <dead-letter-address>jms.queue.DLQ</dead-letter-address>
>              <expiry-address>jms.queue.ExpiryQueue</expiry-address>
>              <redelivery-delay>0</redelivery-delay>
>
>              <max-size-bytes>104857600</max-size-bytes>
>              <page-size-bytes>10485760</page-size-bytes>
>
>  <message-counter-history-day-limit>10</message-counter-history-day-limit>
>              <address-full-policy>PAGE</address-full-policy>
>           </address-setting>
>        </address-settings>
>     </core>
>  </configuration>
>
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message