Linux (UBUNTU) is considering running a two-unit cluster (DB is Mysql).
I would like to support failover on a hot standby.
Is it possible to do the following?
1. The application wants to get whether its node is master or slave.
2. Automatic failover. (Applications want to recognize master switching.)
3. Is middleware (ClusterPro, etc.) required?
Thank you for your cooperation.
linux
For questions, consider the following:
# "Hot Standby" assumes a redundancy scheme that "handles only one application while both nodes are running."
# Assume that applications are waiting to connect in what is called a "server socket".
Also, considering what you want to achieve, I think it would be easier to deploy cluster software to make it redundant with "warm standby" (application starts on master node only and application starts on standby node in failover).
© 2024 OneMinuteCode. All rights reserved.