Zookeeper is a distributed, open source distributed Application Coordination Service, the role of a simple description is equivalent to an intermediary, service providers to register services to ZK, service callers directly from ZK, the role of ZK is to coordinate recently encountered the company IIS service started, and then the service in ZK successfully registered the node and provider has a node, but after more than 20 minutes without access, found that the nodes in the provider disappeared, consulted the development know, After you install the IIS service for a new server, you need to do 3 operations for the service's application pool . 1-1, requires application pool in service, select Service-Advanced Settings-Disable overlapping recycle "True"; Figure 1-2, also advanced settings, idle timeout (minutes) "0"
1-1
1-2 after setting up figure 1-1 and 1-2, also need to install application initialization, its function is simple description is when the IIS service will automatically stop, send a command to tell the service, do not stop. After the installation succeeds 2-1, launch the app, 2-2, select the service that needs to run continuously, select "Alwaysrunning", then "Apply", so that ZK on the service provider will not disappear 2-12-2
About the. NET service started registering to zookeeper, but the registration node automatically disappears for 20 minutes solution