libvirt/include/libvirt
Erik Skultety 93ab4da5f4 admin: Introduce virAdmServerSetThreadPoolParameters
Since threadpool increments the current number of threads according to current
load, i.e. how many jobs are waiting in the queue. The count however, is
constrained by max and min limits of workers. The logic of this new API works
like this:
    1) setting the minimum
        a) When the limit is increased, depending on the current number of
           threads, new threads are possibly spawned if the current number of
           threads is less than the new minimum limit
        b) Decreasing the minimum limit has no possible effect on the current
           number of threads
    2) setting the maximum
        a) Icreasing the maximum limit has no immediate effect on the current
           number of threads, it only allows the threadpool to spawn more
           threads when new jobs, that would otherwise end up queued, arrive.
        b) Decreasing the maximum limit may affect the current number of
           threads, if the current number of threads is less than the new
           maximum limit. Since there may be some ongoing time-consuming jobs
           that would effectively block this API from killing any threads.
           Therefore, this API is asynchronous with best-effort execution,
           i.e. the necessary number of workers will be terminated once they
           finish their previous job, unless other workers had already
           terminated, decreasing the limit to the requested value.
    3) setting priority workers
        - both increase and decrease in count of these workers have an
          immediate impact on the current number of workers, new ones will be
          spawned or some of them get terminated respectively.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
2016-04-18 17:07:46 +02:00
..
libvirt-admin.h admin: Introduce virAdmServerSetThreadPoolParameters 2016-04-18 17:07:46 +02:00
libvirt-common.h.in libvirt-host: Move virTypedParam* to libvirt-common 2016-04-18 17:05:48 +02:00
libvirt-domain-snapshot.h Move virDomainSnapshot related APIs out of libvirt.h.in 2014-10-24 17:20:20 +01:00
libvirt-domain.h lib: document fields virConnectDomainEventDiskChangeReason 2016-04-18 16:31:28 +02:00
libvirt-event.h Move virEvent related APIs out of libvirt.h.in 2014-10-24 17:23:17 +01:00
libvirt-host.h libvirt-host: Move virTypedParam* to libvirt-common 2016-04-18 17:05:48 +02:00
libvirt-interface.h Move virInterface related APIs out of libvirt.h.in 2014-10-24 17:21:15 +01:00
libvirt-lxc.h syntax-check: Only allows to include public headers in external tools 2013-04-18 11:31:19 +08:00
libvirt-network.h Move virNetwork related APIs out of libvirt.h.in 2014-10-24 17:20:52 +01:00
libvirt-nodedev.h Move virNodeDevice related APIs out of libvirt.h.in 2014-10-24 17:21:59 +01:00
libvirt-nwfilter.h Move virNWFilter related APIs out of libvirt.h.in 2014-10-24 17:21:34 +01:00
libvirt-qemu.h qemu: lifecycle: make agent-mode shutdown and reboot timeout 2015-04-02 11:08:48 +02:00
libvirt-secret.h Move virSecret related APIs out of libvirt.h.in 2014-10-24 17:22:20 +01:00
libvirt-storage.h storage: add ploop volume type 2016-04-15 17:27:32 +02:00
libvirt-stream.h Move virStream related APIs out of libvirt.h.in 2014-10-24 17:22:38 +01:00
libvirt.h libvirt: introduce libvirt/libvirt-common.h.in 2015-11-30 09:36:19 +01:00
Makefile.am makefile: Move include/Makefile.am to include/libvirt/Makefile.am 2016-04-15 09:44:04 +02:00
virterror.h perf: implement a set of util functions for perf event 2016-03-29 13:13:05 +01:00