Only trigger pool updates on primary
This commit is contained in:
parent
612f5ab52c
commit
2bbbda3da5
|
@ -913,11 +913,11 @@ def update_zookeeper():
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
# Trigger updates for each pool on this node
|
# Trigger updates for each pool on this node
|
||||||
for pool in pool_list:
|
for pool in pool_list:
|
||||||
zkhandler.writedata(zk_conn, {
|
zkhandler.writedata(zk_conn, {
|
||||||
'/ceph/pools/{}/stats'.format(pool): str(json.dumps(pool_df[pool]))
|
'/ceph/pools/{}/stats'.format(pool): str(json.dumps(pool_df[pool]))
|
||||||
})
|
})
|
||||||
|
|
||||||
# Only grab OSD stats if there are OSDs to grab (otherwise `ceph osd df` hangs)
|
# Only grab OSD stats if there are OSDs to grab (otherwise `ceph osd df` hangs)
|
||||||
osds_this_node = 0
|
osds_this_node = 0
|
||||||
|
|
Loading…
Reference in New Issue