[
https://issues.apache.org/jira/browse/ARTEMIS-3640?focusedWorklogId=849823&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-849823
]
ASF GitHub Bot logged work on ARTEMIS-3640:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 08/Mar/23 14:05
Start Date: 08/Mar/23 14:05
Worklog Time Spent: 10m
Work Description: brusdev commented on PR #4394:
URL:
https://github.com/apache/activemq-artemis/pull/4394#issuecomment-1460206639
@gtully thanks for your feedback, after your review I only added a section
in the doc to describe how to use client connectors to fail over
Issue Time Tracking
-------------------
Worklog Id: (was: 849823)
Time Spent: 20m (was: 10m)
> external clients cannot use cluster topology for HA or load balancing
> ---------------------------------------------------------------------
>
> Key: ARTEMIS-3640
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3640
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Vilius Šumskas
> Assignee: Gary Tully
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Let's say there is a simple Artemis HA master/slave shared storage cluster
> with such configuration:
>
> {noformat}
> <connectors>
> <connector
> name="artemis-master">tcp://internal-cluster-dns-1:61616</connector>
> <connector
> name="artemis-slave">tcp://internal-cluster-dns-2:61616</connector>
> </connectors>
> {noformat}
> The cluster is using static discovery.
>
> Factory on internal clients are using:
> {noformat}
> (tcp://internal-cluster-dns-1:61616,tcp://internal-cluster-dns-2:61616)?ha=true&reconnectAttempts=30&useTopologyForLoadBalancing=false{noformat}
> Those internal clients can successfully connect to the cluster and failover
> works as expected.
>
> However if there is also external clients which use external DNS/IP address
> of the cluster the topology doesn't return correct DNS name and the failover
> fails.
> {noformat}
> (tcp://external-cluster-dns-1:61616,tcp://external-cluster-dns-2:61616)?ha=true&reconnectAttempts=30&useTopologyForLoadBalancing=false{noformat}
> {noformat}
> org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector:
> AMQ214033: Cannot resolve host java.net.UnknownHostException:
> internal-cluster-dns-1{noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)