马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册
x
Sorry I can't type in Chinese here. We can discuss in English or Chinese. It doesn't matter.
I'm working on a system design for failover servers, and I choose the standby mechanism,
which might be the most simple system for it. It means that there would be a server called
master, and another server called standby. Usually, the master server serves on a specific
port to handle all the transaction with clients. The master server is also in charge of
synchronizing configuration and data with the secondary server, which works in a standby
mode. These two servers know status of each other by sending heartbeat message back and forth
between them. When the standby server notices that the master one fails to response it,
the standby server will take the control of the communication and work temporarily as a
master server, until another master server boots up and failbacks from the secondary.
For the client side, all clients will be configured with two server's address (ip or port, etc).
They will try to communicate with the master first and then the secondary if the master fails
to response to them. If they are talking to the secondary one and the master comes back to alive,
they will receive message from the master and turn back to the master accordingly. Since all data
will be synchronized between these two server as fast as possible, and I will try to make
the transaction as short as possible, I assume everything will keep on working very well regardless
the failover and failback transfer. There would be some complicated situations, but currently I
only want to focus on the basic design.
That's all the requirement I need to meet. |