writing elected service leader to etcd