]> git.proxmox.com Git - mirror_ovs.git/commit
raft: Report jsonrpc backlog in kilobytes.
authorIlya Maximets <i.maximets@ovn.org>
Tue, 20 Oct 2020 11:00:20 +0000 (13:00 +0200)
committerIlya Maximets <i.maximets@ovn.org>
Sun, 25 Oct 2020 22:57:57 +0000 (23:57 +0100)
commit6182c695cb9aee1e2a6e672dcf5528a3f467ca1a
tree74bf8f9d6bdd63543ad5803e42ac894a9ab984cf
parentdd8ca104acd76497f380828ca31e2bd6f49907ca
raft: Report jsonrpc backlog in kilobytes.

While sending snapshots backlog on raft connections could quickly
grow over 4GB and this will overflow raft-backlog counter.

Let's report it in kB instead. (Using kB and not KB to match with
ru_maxrss counter reported by kernel)

Fixes: 3423cd97f88f ("ovsdb: Add raft memory usage to memory report.")
Acked-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
ovsdb/raft.c