From d90369debdf3b28f09832fe00c7ef00488479a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Wed, 11 Oct 2023 18:29:38 +0100 Subject: [PATCH] CP-43755: Increase default max threads for PAM from 1 to 8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We have 16 vCPUs at most in Dom0 and we don't want to take them all up with authentication threads, so limit this at 8. Signed-off-by: Edwin Török --- ocaml/idl/datamodel_pool.ml | 2 +- ocaml/xapi/dbsync_master.ml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ocaml/idl/datamodel_pool.ml b/ocaml/idl/datamodel_pool.ml index d9e69ccdb3..0e4ac9b907 100644 --- a/ocaml/idl/datamodel_pool.ml +++ b/ocaml/idl/datamodel_pool.ml @@ -1431,7 +1431,7 @@ let t = "coordinator_bias" "true if bias against pool master when scheduling vms is enabled, \ false otherwise" - ; field ~qualifier:StaticRO ~ty:Int ~default_value:(Some (VInt 1L)) + ; field ~qualifier:StaticRO ~ty:Int ~default_value:(Some (VInt 8L)) ~lifecycle:[] "local_auth_max_threads" "Maximum number of threads to use for PAM authentication" ; field ~qualifier:StaticRO ~ty:Int ~default_value:(Some (VInt 1L)) diff --git a/ocaml/xapi/dbsync_master.ml b/ocaml/xapi/dbsync_master.ml index 6cbec514c3..6afe417893 100644 --- a/ocaml/xapi/dbsync_master.ml +++ b/ocaml/xapi/dbsync_master.ml @@ -52,7 +52,7 @@ let create_pool_record ~__context = ~telemetry_next_collection:Xapi_stdext_date.Date.epoch ~last_update_sync:Xapi_stdext_date.Date.epoch ~update_sync_frequency:`weekly ~update_sync_day:0L - ~update_sync_enabled:false ~local_auth_max_threads:1L + ~update_sync_enabled:false ~local_auth_max_threads:8L ~ext_auth_max_threads:1L let set_master_ip ~__context =