A
A
almazist2015-07-24 21:01:45
Server equipment
almazist, 2015-07-24 21:01:45

How to send a message about the unavailability of the server from a distributed network?

There are several distributed servers that communicate with each other. One of the servers went down. How to decide which of the remaining servers to send a message to the client about the unavailability of the downed server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Walt Disney, 2015-07-25
@ruFelix

It depends on how the server crashes and how it crashes alone, in a bunch, or all of them, well, and on how you understand that the server has crashed.
For a task in a vacuum (the one in the question), you can make a script that, at startup, will send to the rest of the servers, something like: "Which of us sends messages, if none, it will be me" and drive it around the crown at the desired interval. Thus, by default, the server on which the script was first launched will be sent, and if it falls, then the first of those who noticed it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question