Due to business requirements, two sets of environments are required: formal environment and gray environment. Now I simulate to determine the usage environment by monitoring the node changes of zookeeper. However, when switching, I find that the switch can only be done once. When the second switchback occurs, the service is still in the original environment. Please help me with this. Thank you