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/

Reply via email to