Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to point an ambari-agent to 2 ambari-servers?

avatar

Hello,

I'm trying to ensure ambari-server failover. After research on this topic, i found these steps which are implemented by some users to fix this issue as described here:
1) Deploy 2 ambari-server with it database in 2 machine, say primary and backup;
2) Sync data from primary database to backup database(using postgresql streaming sync) when have data updated.
3) Use heartbeat between the 2 ambari-server to discover server_lost event, and make backup server to be primary; and the new backup server stop communicate with ambari-agent
4) Each agent have 2 ambari-server’s address configurations(or negotiate from zookeeper?), once primary server changed, agent should register to new one.
5) Backup web UI can redirect page to primary one. GET method REST API can access both ambari-server.

My questions are:

1- How to point an ambari-agent to 2 ambari-servers? Is it possible to mention multiple hostnames in /etc/ambari-agent/conf/ambari-agent.ini? How can i use Zookeeper to negotiate this?

2- What is the solution to use heartbeat between the 2 ambari-servers? Any suggestion?

Finally, my purpose is to ensure ambari-server failover.So, i's open to any different method that can be useful to reach my goal.

1 ACCEPTED SOLUTION

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
1 REPLY 1

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login