Node query

Hi!
I have two server and both installed elasticsearch. Here's what going on, two server act like data node. and I want to stop one server accept query when it is receiving data from the other one. How can I make this work? for example, blocking one server ip when it is receiving data?

There's no way to do that natively in ES, you'd need to build something.