Closed PingYufeng closed 3 years ago
You cannot use activeMQ-broker-plugin,jms-cluster-plugin at the same time. By default the Geoserver clustering in our image uses jms-clustering. If you need to use the activeMQ please read their documentation
You cannot use activeMQ-broker-plugin,jms-cluster-plugin at the same time. By default the Geoserver clustering in our image uses jms-clustering. If you need to use the activeMQ please read their documentation
Thanks your teaching, I will try to do it.
I test a lot, and found that it reports exception when I set the variable 'BROKER_URL=tcp://geoserver_master:61661' in the service geoserver_node1 because of setting 'BROKER_URL = tcp://(service name or hostname):port' can not link the service geoserver_master. However, when I set 'BROKER_URL = tcp://(container_name ):port' or 'BROKER_URL = tcp://(service's ip):port', it is ok!
I test a lot, and found that it reports exception when I set the variable 'BROKER_URL=tcp://geoserver_master:61661' in the service geoserver_node1 because of setting 'BROKER_URL = tcp://(service name or hostname):port' can not link the service geoserver_master. However, when I set 'BROKER_URL = tcp://(container_name ):port' or 'BROKER_URL = tcp://(service's ip):port', it is ok!
You need to read https://docs.geoserver.org/stable/en/user/community/jms-cluster/index.html#broker-url. This explains why some names are not valid
I try to Cluster using JMS Plugin while I use the docker-compose.yml in the directory clustering.
But it cannot create a workspase on the geoserver when I use nginx to loadbalance maste and node. This is logs.
nginx cluster setting page: while it redirect to node1, it reports 'Could not connect to broker URL: tcp://geoserver_master:61661. Reason: java.lang.IllegalArgumentException: hostname can't be null'.
master cluster setting page
node1 cluster setting page