Files
nova/api-ref/source
Sean Mooney 98490b673c hypervisors: Optimize uptime retrieval for better performance
The /os-hypervisors/detail API endpoint was experiencing significant
performance issues in environments with many compute nodes when using
microversion 2.88 or higher, as it made sequential RPC calls to gather
uptime information from each compute node.

This change optimizes uptime retrieval by:

* Adding uptime to periodic resource updates sent by nova-compute to the
  database, eliminating synchronous RPC calls during API requests
* Restricting RPC-based uptime retrieval to hypervisor types that support
  it (libvirt and z/VM), avoiding unnecessary calls that would always fail
* Preferring cached database uptime data over RPC calls when available

Conflicts:
    nova/api/openstack/compute/hypervisors.py
Conflicts are due to a lack of the following commit
a722640b2f

Closes-Bug: #2122036
Assisted-By: Claude <noreply@anthropic.com>
Change-Id: I5723320f578192f7e0beead7d5df5d7e47d54d2b
Co-Authored-By: Sylvain Bauza <sbauza@redhat.com>
Signed-off-by: Sean Mooney <work@seanmooney.info>
(cherry picked from commit 567dbe1867)
2025-09-10 19:25:15 +01:00
..
2023-10-02 11:11:23 +01:00
2019-07-05 13:24:18 +09:00
2022-09-17 17:40:52 +00:00
2016-11-11 14:01:51 -05:00
2017-03-31 06:19:01 +00:00
2020-09-11 14:10:32 +01:00
2019-07-22 19:17:28 +02:00
2019-11-22 16:09:36 +00:00
2017-11-28 11:07:36 +08:00
2019-07-22 19:17:28 +02:00
2019-07-22 19:17:28 +02:00
2019-07-22 19:17:28 +02:00