]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: warn if client hits the max requests limit
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 24 Aug 2022 15:15:24 +0000 (16:15 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Oct 2022 13:47:25 +0000 (14:47 +0100)
commit031878c23640ed836bc400dd9c042d5fd85dadb2
treee45626f005a8b84425e9196aa1470976e158d73d
parent83c6d80abca73f5b7af2b7d06afc7b37568663af
src: warn if client hits the max requests limit

Since they are simply normal RPC messages, the keep alive packets are
subject to the "max_client_requests" limit just like any API calls.

Thus, if a client hits the 'max_client_requests' limit and all the
pending API calls take a long time to complete, it may result in
keep-alives firing and dropping the client connection.

This has been seen by a number of users with the default value of
max_client_requests=5, by issuing 5 concurrent live migration
operations.

By printing a warning message when this happens, admins will be alerted
to the fact that their active clients are exceeding the default client
requests limit.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/virnetserverclient.c