Skip to content

CA-400860: make CPU and netdev RRDD plugins pick up changes in domains #6067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

last-genius
Copy link
Contributor

When these metrics were collected internally, Xenctrl was queried every 5 seconds. After being split into plugins, they started querying domains (and other information) only on startup, so couldn't pick up new VMs and report their metrics without restarting.

When these metrics were collected internally, Xenctrl was queried every 5
seconds. After being split into plugins, they started querying domains (and other
information) only on startup, so couldn't pick up new VMs and report their metrics
without restarting.

Signed-off-by: Andrii Sultanov <[email protected]>
@@ -236,8 +237,8 @@ let _ =
(* Share one page per PCPU and dom each *)
let physinfo = Xenctrl.physinfo xc in
let shared_page_count = physinfo.Xenctrl.nr_cpus + List.length domains in

(* TODO: Can run out of pages if a lot of domains are added at runtime *)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to add a static number that's correlated with the maximum supported number of VMs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but I was worried that might be a bit too much and would need more testing, this quick fix is probably not the place for it

Copy link
Member

@psafont psafont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good enough for fixing the regression

@last-genius
Copy link
Contributor Author

This fixes the regression, tested on a host with a Windows VM, both the CPU and network metrics are present without restarting toolstack.

@last-genius
Copy link
Contributor Author

Have an improvement for netdev to only query for domains when something changes by watching xenstore, but it needs further testing.

@lindig lindig added this pull request to the merge queue Oct 21, 2024
Merged via the queue into xapi-project:master with commit f1d892f Oct 21, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants