activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catalin Alexandru Zamfir (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-1285) Standby slave would not announce replication to master when the slave is down
Date Wed, 18 Apr 2018 07:59:00 GMT

    [ https://issues.apache.org/jira/browse/ARTEMIS-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442083#comment-16442083
] 

Catalin Alexandru Zamfir commented on ARTEMIS-1285:
---------------------------------------------------

Hello,

 [~jbertram] here's the Jgroups and discovery/broadcast groups configuration. I've modified
the "hosts" to hide our internal host names.

 
{code:java}
... this jgroups.xml is the same on all machines, master or slave ...

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:org:jgroups"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">

<!--TCP is a replacement for UDP as transport in cases where IP multicast cannot be used.-->

<TCP
bind_port="7800"
bind_addr="10.117.28.32"
recv_buf_size="${tcp.recv_buf_size:5M}"
send_buf_size="${tcp.send_buf_size:5M}"
max_bundle_size="64K"
max_bundle_timeout="30"
sock_conn_timeout="300"

timer_type="new3"
timer.min_threads="4"
timer.max_threads="10"
timer.keep_alive_time="3000"
timer.queue_max_size="500"

thread_pool.enabled="true"
thread_pool.min_threads="2"
thread_pool.max_threads="8"
thread_pool.keep_alive_time="5000"
thread_pool.queue_enabled="true"
thread_pool.queue_max_size="10000"
thread_pool.rejection_policy="discard"

oob_thread_pool.enabled="true"
oob_thread_pool.min_threads="1"
oob_thread_pool.max_threads="8"
oob_thread_pool.keep_alive_time="5000"
oob_thread_pool.queue_enabled="false"
oob_thread_pool.queue_max_size="100"
oob_thread_pool.rejection_policy="discard"
/>

<TCPPING port_range="2" return_entire_cache="true" send_cache_on_join="true"
initial_hosts="i1-shared-artemis-r1-p.d.g.org[7800],i2-shared-artemis-r1-p.d.g.org[7800],i3-shared-artemis-r1-p.d.g.org[7800],i4-shared-artemis-r1-p.d.g.org[7800],i5-shared-artemis-r1-p.d.g.org[7800],i6-shared-artemis-r1-p.d.g.org[7800]"
/>

<MERGE3 min_interval="10000" max_interval="30000" />
<FD_SOCK />
<FD timeout="3000" max_tries="3" />
<VERIFY_SUSPECT timeout="1500" />
<BARRIER />
<pbcast.NAKACK2 use_mcast_xmit="false" discard_delivered_msgs="true"/>
<UNICAST3 />
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" max_bytes="4M" />
<pbcast.GMS print_local_addr="true" join_timeout="3000" view_bundling="true" />
<MFC max_credits="2M" min_threshold="0.4" />
<FRAG2 frag_size="60K" />
<pbcast.STATE_TRANSFER />
</config>

{code}
{code:java}
<broadcast-groups>
<broadcast-group name="artemis-broadcast-jgroups-shared">
<broadcast-period>5000</broadcast-period>
<jgroups-file>jgroups.xml</jgroups-file>
<jgroups-channel>artemis-broadcast-shared</jgroups-channel>
<connector-ref>shared-artemis-netty</connector-ref>
</broadcast-group>
</broadcast-groups>

<discovery-groups>
<discovery-group name="artemis-discovery-jgroups-shared">
<jgroups-file>jgroups.xml</jgroups-file>
<jgroups-channel>artemis-broadcast-shared</jgroups-channel>
<refresh-timeout>10000</refresh-timeout>
</discovery-group>
</discovery-groups>

<cluster-connections>
<cluster-connection name="shared-artemis-cluster">
<connector-ref>shared-artemis-netty</connector-ref>
<retry-interval>500</retry-interval>
<use-duplicate-detection>true</use-duplicate-detection>
<message-load-balancing>ON_DEMAND</message-load-balancing>
<max-hops>1</max-hops>
<discovery-group-ref discovery-group-name="artemis-discovery-jgroups-shared"/>
</cluster-connection>
</cluster-connections>
{code}
 

> Standby slave would not announce replication to master when the slave is down
> -----------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1285
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1285
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.1.0
>            Reporter: yangwei
>            Priority: Major
>
> We have a cluster of 3 instances: A is master, B is slave and C is standby slave. When
slave is down, we expect C announces replication to A but A is in standalone mode all the
time. We see C waits at "nodeLocator.locateNode()" through jstack command.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message