]> git.proxmox.com Git - mirror_ovs.git/commit
ovsdb: Add raft memory usage to memory report.
authorIlya Maximets <i.maximets@ovn.org>
Fri, 22 May 2020 16:31:19 +0000 (18:31 +0200)
committerIlya Maximets <i.maximets@ovn.org>
Mon, 25 May 2020 11:56:41 +0000 (13:56 +0200)
commit3423cd97f88fe6a8de8b649d79fe6ac83bce94d1
treef517017a82fb00d8ebee309565e82a40749f5fc5
parent33f9c873b19a4993183e0c29a76a114646ca2977
ovsdb: Add raft memory usage to memory report.

Memory reports could be found in logs or by calling 'memory/show'
appctl command.  For ovsdb-server it includes information about db
cells, monitor connections with their backlog size, etc.  But it
doesn't contain any information about memory consumed by raft.
Backlogs of raft connections could be insanely large because of
snapshot installation requests that simply contains the whole database.
In not that healthy clusters where one of ovsdb servers is not able to
timely handle all the incoming raft traffic, backlog on a sender's side
could cause significant memory consumption issues.

Adding new 'raft-connections' and 'raft-backlog' counters to the
memory report to better track such conditions.

Acked-by: Han Zhou <hzhou@ovn.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
ovsdb/ovsdb.c
ovsdb/raft.c
ovsdb/raft.h
ovsdb/storage.c
ovsdb/storage.h