0

If there are 10 cameras recognizing number plates, and sending the data to the server with a backup server synchronized, is there a possibility to have split-brain problems when some things go wrong? Every piece of data has a timestamp, so if anything fails servers might renegotiate which data is correct, or am I wrong? I was preparing the installation when a colleague asked me about split-brain, and now I'm a little bit worried. And if it can happen, can I somehow remedy it without buying 3rd server?

Dave M
  • 4,514
  • 22
  • 31
  • 30
Lenni
  • 9
  • 1
  • You should at the very least mention which database you are using. – Massimo May 20 '21 at 10:55
  • The problem is, I don't really know. Program getting number plates is splitting servers in standby mode, the client wants to have the same equal copy on both servers, and I somehow have to manage that. Program is called "vdg" for cctv – Lenni May 20 '21 at 13:47

1 Answers1

1

Split-brain is a situation, when a replica got any changes, that are not applied in master server. Here is a good explanation.

Fencing method helps to avoid split-brain situation. Here are details about it.

If you dont want to have a deal with fencing, try to use quorum-oriented databases (etcd for example). Such applications usually use RAFT protocol for lead election, and prevent data changes if they are not in quorum majority.

Denis Romaniuk
  • 126
  • 1
  • 3