About Linux Cluster System Deployment

Asked 2 years ago, Updated 2 years ago, 41 views

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

2022-09-29 21:51

1 Answers

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).

  • There is only one application running between nodes, so you don't need to be aware of the master/slave.
  • Cluster software solves problems such as "split brain" that are prone to failure.
  • The DB server is a warm standby, and there is no data inconsistency between nodes.(Both ACTs are replicated, but inconsistencies may occur)


2022-09-29 21:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.