zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rammohan ganapavarapu <rammohanga...@gmail.com>
Subject Reading snapshot
Date Wed, 22 Jan 2020 19:17:36 GMT
Hi,

What is the purpose of reading snapshot from disk while zk processes
starting up? i have a snapshot of ~2gb and it is taking time to read that
snapshot, hence  cluster recovery time. Is it to get the last zxid of that
server?


```2020-01-21 23:11:24,510 [myid:106] - INFO
 [QuorumPeer[myid=106]/0:0:0:0:0:0:0:0:2181:QuorumPeer@967] - OBSERVING
2020-01-21 23:11:24,510 [myid:106] - INFO
 [QuorumPeer[myid=106]/0:0:0:0:0:0:0:0:2181:ZooKeeperServer@174] - Created
server with tickTime 60000 minSessionTimeout 120000 maxSessionTimeout
1200000 datadir /opt/data/zookeeper/logs/version-2 snapdir
/opt/data/zookeeper/data/version-2
2020-01-21 23:11:24,510 [myid:106] - INFO
 [QuorumPeer[myid=106]/0:0:0:0:0:0:0:0:2181:ObserverZooKeeperServer@64] -
syncEnabled =true
2020-01-21 23:11:24,511 [myid:106] - INFO
 [QuorumPeer[myid=106]/0:0:0:0:0:0:0:0:2181:QuorumPeer$QuorumServer@185] -
Resolved hostname: rzk100ea to address: rzk100ea/192.168.10.78
2020-01-21 23:11:24,512 [myid:106] - INFO
 [QuorumPeer[myid=106]/0:0:0:0:0:0:0:0:2181:Observer@65] - Observing
rzk100ea/192.168.10.78:2888
2020-01-21 23:11:24,711 [myid:106] - INFO
 [QuorumPeer[myid=106]/0:0:0:0:0:0:0:0:2181:FileSnap@86] - Reading snapshot
/opt/data/zookeeper/data/version-2/snapshot.5a00000000
2020-01-21 23:12:31,954 [myid:106] - INFO
 [QuorumPeer[myid=106]/0:0:0:0:0:0:0:0:2181:Learner@336] - Getting a
snapshot from leader 0x5b00000000
2020-01-21 23:18:32,497 [myid:106] - INFO
 [QuorumPeer[myid=106]/0:0:0:0:0:0:0:0:2181:FileTxnSnapLog@301] -
Snapshotting: 0x5b00000000 to
/opt/data/zookeeper/data/version-2/snapshot.5b00000000```

Thanks,
Ram

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message