title: How to handle the master server going down in a master-slave log server architecture?
body: <p>I am building a Log service.</p>
  <p>I have a master and some slave servers. The slave servers directly receive logs from the client. Each interval time, slaves will push the logs to the master server to store. But the problem is when the master goes down, then after some time, it wakes up, but I have already lost the logs in the interval that the master goes down.</p>
  <p>Has anyone built a service like this? Please share your idea.</p>
  <p><a href="https://i.stack.imgur.com/v7ofa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v7ofa.png" alt="Master and slave server" /></a></p>