Re: Reading snapshot

2021-03-28 Thread Zhewei Hu
Hi Ram,

I think reading the snapshot file while restarting the ZK service is for
faster recovery.

With the help of snapshots and transaction logs, the ZK server should be
able to recover to the state when the snapshot was created, then the ZK
server only needs to "replay" the transactions between the current zxid and
the latest zxid, instead of transfer all the data through the network. I
think in general, disk is still faster than network, although many factors
will affect the results:
https://serverfault.com/questions/238417/are-networks-now-faster-than-disks

HTH,
Zhewei



--
Sent from: http://zookeeper-user.578899.n2.nabble.com/


Re: Zookeeper resolving to old host IP addresses

2021-03-28 Thread Zhewei Hu
Hi Ram,

I also faced this issue before. I think JVM only resolves the DNS records
once when ZK service starts. After that, even if you update the DNS record
to a new IP address and the ZK server itself is able to resolve the new DNS
record, the JVM will not pick up the new IP address. I think the only way is
to restart the ZK service.

You could use IP addresses instead of DNS records in your ZK config. In this
way, each time you want to replace a ZK server, you could launch a new
server with the same IP address. This could fix the issue.

Btw, with the dynamic config feature introduced in ZK 3.5+, ZK should be
able to recognize the IP address of the new ZK server automatically.

HTH,
Zhewei



--
Sent from: http://zookeeper-user.578899.n2.nabble.com/


Re: [ANNOUNCE] Apache ZooKeeper 3.7.0 released

2021-03-28 Thread Szalay-Bekő Máté
Thanks for all your work Damien, and also for all the contributors and for
the whole community.
It's great to see 3.7.0 out! :)

Cheers,
Mate

On Sun, Mar 28, 2021 at 9:39 AM Damien Diederen 
wrote:

>
> The Apache ZooKeeper team is proud to announce Apache ZooKeeper version
> 3.7.0.
>
> ZooKeeper is a high-performance coordination service for distributed
> applications. It exposes common services - such as naming,
> configuration management, synchronization, and group services - in a
> simple interface so you don't have to write them from scratch. You can
> use it off-the-shelf to implement consensus, group management, leader
> election, and presence protocols. And you can build on it for your
> own, specific needs.
>
> For ZooKeeper release details and downloads, visit:
> https://zookeeper.apache.org/releases.html
>
> ZooKeeper 3.7.0 Release Notes are at:
> https://zookeeper.apache.org/doc/r3.7.0/releasenotes.html
>
> We would like to thank the contributors that made the release possible.
>
> Regards,
>
> The ZooKeeper Team
>


[ANNOUNCE] Apache ZooKeeper 3.7.0 released

2021-03-28 Thread Damien Diederen


The Apache ZooKeeper team is proud to announce Apache ZooKeeper version 3.7.0.

ZooKeeper is a high-performance coordination service for distributed
applications. It exposes common services - such as naming,
configuration management, synchronization, and group services - in a
simple interface so you don't have to write them from scratch. You can
use it off-the-shelf to implement consensus, group management, leader
election, and presence protocols. And you can build on it for your
own, specific needs.

For ZooKeeper release details and downloads, visit:
https://zookeeper.apache.org/releases.html

ZooKeeper 3.7.0 Release Notes are at:
https://zookeeper.apache.org/doc/r3.7.0/releasenotes.html

We would like to thank the contributors that made the release possible.

Regards,

The ZooKeeper Team