AnsibleShipyard / ansible-zookeeper

Ansible playbook for ZooKeeper
MIT License
95 stars 114 forks source link

systemd - ZK starting up before the network is ready and available after a server reboot #70

Closed Darwiner closed 7 years ago

Darwiner commented 7 years ago

In ansible-zookeeper/templates/zookeeper.service.j2

It might be a good idea to change the following:

[Unit]
Description=ZooKeeper

To:

[Unit]
Description=ZooKeeper
After=network.target
Wants=network.target

Everything works fine with a server that is already up and running, but in the case of rebooting a server, ZK starts too early, before the network is even available, leading to errors about not being able to resolve other cluster member hostnames, or timing out while trying to reach them.

lhoss commented 7 years ago

@Darwiner you made a valid point, why did you close the issue (without any referenced PR) ?