Skip to content

CA-401650: reduce open connections between pool members and the coordinator #6110

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

edwintorok
Copy link
Contributor

The GC timers in the stunnel cache were ineffective because we hardly ever run this GC code, and also because the maximums were very large (70+).

@edwintorok edwintorok marked this pull request as draft November 8, 2024 15:56
@edwintorok edwintorok force-pushed the private/edvint/connections branch from 92f6283 to 797b48a Compare November 8, 2024 15:58
@@ -42,9 +42,9 @@ type endpoint = {host: string; port: int}
(* Need to limit the absolute number of stunnels as well as the maximum age *)
let max_stunnel = 70

let max_age = 180. *. 60. (* seconds *)
let max_age = ref (180. *. 60.) (* seconds *)
Copy link
Member

Choose a reason for hiding this comment

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

More victims for my mtime changes :)

Previously it'd only run when we added or removed entries, but on an
idle system we'd keep a large number of connections open that we don't
need, and this then exceeded the connection limits on the coordinator.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
Introduce separate coordinator_max_stunnel_cache and member_max_stunnel_cache settings,
and set these on XAPI startup based on host role.

No functional change, the defaults for both match the previous hardcoded
value (70).

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@edwintorok edwintorok force-pushed the private/edvint/connections branch from cd3ffc9 to f9a523d Compare November 21, 2024 18:32
@edwintorok edwintorok marked this pull request as ready for review November 21, 2024 18:34
@robhoes robhoes merged commit 44fb57a into xapi-project:feature/perf Dec 3, 2024
15 checks passed
edwintorok pushed a commit to edwintorok/xen-api that referenced this pull request Dec 10, 2024
…inator (xapi-project#6110)

The GC timers in the stunnel cache were ineffective because we hardly
ever run this GC code, and also because the maximums were very large
(70+).
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.

5 participants