Yan,

Do you mean they both try to come up with 5701 or the second one complains the 
port is already taken?

Perhaps hazelcast tries to grab selection of ports. Maybe set one to 4701.

Ray

On Thu, 2019-07-11 at 07:26 -0700, Yan Zhou wrote:
Hello,

CAS 5.3.x, using Hazelcast for ticket registry.  Two CAS instances on the same 
server A.

I was trying to avoid port conflict in cas.properties, so,  one instances' 
cas.properties look like this
cas.ticket.registry.hazelcast.cluster.members=A
cas.ticket.registry.hazelcast.cluster.instanceName=A
cas.ticket.registry.hazelcast.cluster.port=5701

the other one look like this (note the port# difference):
cas.ticket.registry.hazelcast.cluster.members=A
cas.ticket.registry.hazelcast.cluster.instanceName=A
cas.ticket.registry.hazelcast.cluster.port=5703

Would these two hazelcast form a cluster?  My experiment says they do not, as 
shown in "Members" output seen in the log.

Obviously, both hazelcast cannot bind on port 5701 at the same time, the right 
way to specify cluster members is to use SAME port and let Hazelcast 
auto-increment feature to take place?
In other words, cas.properties on both instances should read like this:

cas.ticket.registry.hazelcast.cluster.members=A
cas.ticket.registry.hazelcast.cluster.instanceName=A
#
## or simply comment this line out
#
cas.ticket.registry.hazelcast.cluster.port=5701


Thx!
Yan


--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | r...@uvic.ca<mailto:r...@uvic.ca>

I respectfully acknowledge that my place of work is located within the 
ancestral, traditional and unceded territory of the Songhees, Esquimalt and 
WSÁNEĆ Nations.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/030476ca5cff425c4a7f4f4370e882d7c317462a.camel%40uvic.ca.

Reply via email to