Miroslav
Miroslav

Reputation: 25

Adding custom name for hazelcast cluster members?

I'm doing hazelcast monitoring service and I need to add customer name for each cluster member to understand which module is out of cluster.

Members [2] {
Member [127.0.0.1]:5701 - 5ba8735f-af33-486c-9453-cb1d60a71f2c this
Member [127.0.0.1]:5702 - 6a0b1f7c-95b8-41a6-9ae2-10142f71a6dc

I want constant name of member instead of "5ba8735f-af33-486c-9453-cb1d60a71f2c"

Can this be done?

Upvotes: 0

Views: 972

Answers (1)

sertug
sertug

Reputation: 969

You can define member attributes to label your members, however it will not be visible in that log entry. What you can do is use a membership listener in addition to defining member attributes and log which member has left the cluster by attribute.

Upvotes: 1

Related Questions