$ ~/trinity/ns_server/scripts/rebalance_analyser.py -m master_events.log
|
jq: error (at <stdin>:1): Cannot iterate over null (null)
|
Traceback (most recent call last):
|
File "/Users/steve.watanabe/trinity/ns_server/scripts/jq/master_events/plot_bucket_rebalance.py", line 87, in <module>
|
payload = json.load(sys.stdin)
|
File "/Users/steve.watanabe/.pyenv/versions/3.10.13/lib/python3.10/json/__init__.py", line 293, in load
|
return loads(fp.read(),
|
File "/Users/steve.watanabe/.pyenv/versions/3.10.13/lib/python3.10/json/__init__.py", line 346, in loads
|
return _default_decoder.decode(s)
|
File "/Users/steve.watanabe/.pyenv/versions/3.10.13/lib/python3.10/json/decoder.py", line 337, in decode
|
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
|
File "/Users/steve.watanabe/.pyenv/versions/3.10.13/lib/python3.10/json/decoder.py", line 355, in raw_decode
|
raise JSONDecodeError("Expecting value", s, err.value) from None
|
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
|
|
$ head -10 master_events.log
|
{"type":"becameMaster","ts":1705425068.708158,"node":"ns_1@192.168.107.128","host":"192.168.107.128:11209"}
|
{"nodes":["ns_1@192.168.107.128"],"type":"setServiceMap","ts":1705425068.922553,"service":"fts"}
|
{"nodes":["ns_1@192.168.107.128"],"type":"setServiceMap","ts":1705425068.955285,"service":"fts"}
|
{"nodes":["ns_1@192.168.107.128"],"type":"setServiceMap","ts":1705425069.127708,"service":"index"}
|
{"type":"autofailoverNodeStateChange","ts":1705425069.708983,"prevState":"new","node":"ns_1@192.168.107.128","newState":"up","newCounter":0}
|
{"type":"rebalanceStart","ts":1705425074.41414,"pid":"<0.1815.0>","keepNodes":["192.168.107.128:11209","192.168.107.129:11209","192.168.107.130:11209"],"failedNodes":[],"ejectNodes":[],"deltaNodes":[]}
|
{"type":"rebalanceStageStarted","ts":1705425082.576115,"stage":["kv"],"nodes":["ns_1@192.168.107.128","ns_1@192.168.107.129","ns_1@192.168.107.130"]}
|
{"type":"rebalanceStageStarted","ts":1705425082.582148,"stage":["kv","kv_delta_recovery"],"nodes":[]}
|
{"type":"rebalanceStageCompleted","ts":1705425082.582159,"stage":["kv","kv_delta_recovery"]}
|
{"nodes":["ns_1@192.168.107.128"],"type":"setServiceMap","ts":1705425082.622178,"service":"n1ql"}
|