cancel
Showing results for 
Search instead for 
Did you mean: 

How to change membership coordinator to other host EFM

Level 3 Adventurer

How to change membership coordinator to other host EFM

Hi,

 

Can anyone tell me how to change membership coordinator host to other host in Enterprisedb Failover Manager(EFM), I want it to always pointing to mater host but its changing.

Tags (1)
5 REPLIES 5
Highlighted
EDB Team Member

Re: How to change membership coordinator to other host EFM

It's generally whichever agent you started first. I can't think of any way to change that besides shutting down other agents. Why do you want to change this? The only time you have to care about it is as a convenience to adding new nodes -- they only have to have 1 address in their cluster.nodes file.

 

If you have X nodes and put the address:post info for all X into every node's cluster.nodes file, it doesn't matter what order you start them or which one is the coordinator.

 

Thanks,

Bobby

 

Level 3 Adventurer

Re: How to change membership coordinator to other host EFM

Thank you for your reply.

As you said coordinator node will be that node whichever has been started first, but in my case without restarting any node coordinator node is switched to othere node. And I can notice the below error in my efm.log 

 

2019-08-12 09:03:53 org.jgroups.protocols.TCP warn WARN: JGRP000006: failed accepting connection from peer
java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:197)
at org.jgroups.blocks.cs.TcpConnection.readPeerAddress(TcpConnection.java:240)
at org.jgroups.blocks.cs.TcpConnection.<init>(TcpConnection.java:53)
at org.jgroups.blocks.cs.TcpServer$Acceptor.handleAccept(TcpServer.java:126)
at org.jgroups.blocks.cs.TcpServer$Acceptor.run(TcpServer.java:111)
at java.lang.Thread.run(Thread.java:748)
2019-08-12 09:08:17 org.jgroups.protocols.TCP warn WARN: JGRP000006: failed accepting connection from peer
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.DataInputStream.readFully(DataInputStream.java:195)
at org.jgroups.blocks.cs.TcpConnection.readPeerAddress(TcpConnection.java:240)
at org.jgroups.blocks.cs.TcpConnection.<init>(TcpConnection.java:53)
at org.jgroups.blocks.cs.TcpServer$Acceptor.handleAccept(TcpServer.java:126)
at org.jgroups.blocks.cs.TcpServer$Acceptor.run(TcpServer.java:111)
at java.lang.Thread.run(Thread.java:748)

 

Can you please help me to get some hint on this?....

 

Thanks,

Vijay 

Level 3 Adventurer

Re: How to change membership coordinator to other host EFM

Master error:

 

2019-08-12 09:03:53 org.jgroups.protocols.TCP warn WARN: JGRP000006: failed accepting connection from peer
java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:197)
at org.jgroups.blocks.cs.TcpConnection.readPeerAddress(TcpConnection.java:240)
at org.jgroups.blocks.cs.TcpConnection.<init>(TcpConnection.java:53)
at org.jgroups.blocks.cs.TcpServer$Acceptor.handleAccept(TcpServer.java:126)
at org.jgroups.blocks.cs.TcpServer$Acceptor.run(TcpServer.java:111)
at java.lang.Thread.run(Thread.java:748)
2019-08-12 09:08:17 org.jgroups.protocols.TCP warn WARN: JGRP000006: failed accepting connection from peer
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.DataInputStream.readFully(DataInputStream.java:195)
at org.jgroups.blocks.cs.TcpConnection.readPeerAddress(TcpConnection.java:240)
at org.jgroups.blocks.cs.TcpConnection.<init>(TcpConnection.java:53)
at org.jgroups.blocks.cs.TcpServer$Acceptor.handleAccept(TcpServer.java:126)
at org.jgroups.blocks.cs.TcpServer$Acceptor.run(TcpServer.java:111)
at java.lang.Thread.run(Thread.java:748)

 

Witness error:

2019-08-12 08:52:51 org.jgroups.protocols.TCP warn WARN: JGRP000006: failed accepting connection from peer
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.DataInputStream.readFully(DataInputStream.java:195)
at org.jgroups.blocks.cs.TcpConnection.readPeerAddress(TcpConnection.java:240)
at org.jgroups.blocks.cs.TcpConnection.<init>(TcpConnection.java:53)
at org.jgroups.blocks.cs.TcpServer$Acceptor.handleAccept(TcpServer.java:126)
at org.jgroups.blocks.cs.TcpServer$Acceptor.run(TcpServer.java:111)
at java.lang.Thread.run(Thread.java:748)
2019-08-12 09:08:39 com.enterprisedb.efm.exec.LoggerStream out WARN: Exception in thread "AdminServerThread"
2019-08-12 09:08:39 com.enterprisedb.efm.exec.LoggerStream out WARN: java.lang.IllegalArgumentException: No enum constant com.enterprisedb.efm.admin.AdminServer.AdminCommand.����^F
2019-08-12 09:08:39 com.enterprisedb.efm.exec.LoggerStream out WARN: at java.lang.Enum.valueOf(Enum.java:238)
2019-08-12 09:08:39 com.enterprisedb.efm.exec.LoggerStream out WARN: at com.enterprisedb.efm.admin.AdminServer$AdminCommand.valueOf(AdminServer.java:24)
2019-08-12 09:08:39 com.enterprisedb.efm.exec.LoggerStream out WARN: at com.enterprisedb.efm.admin.AdminServerThread.processRequest(AdminServerThread.java:244)
2019-08-12 09:08:39 com.enterprisedb.efm.exec.LoggerStream out WARN: at com.enterprisedb.efm.admin.AdminServerThread.run(AdminServerThread.java:75)

 

 

EDB Team Member

Re: How to change membership coordinator to other host EFM

I've never seen the coordinator switch randomly from one node to another.

 

As to your errors, is there any chance you're running different versions of EFM on different nodes?

 

I think to help any more you'd need to send logs, steps to reproduce, etc, to your support contact.

 

Thanks,

Bobby

 

Level 3 Adventurer

Re: How to change membership coordinator to other host EFM

Thank you for your reply,

 

I am running efm-3.4 in all the nodes, Tried telnetting to bind port from all the nodes, it's working. Currently not getting what is the issue.