diff options
author | Adityavardhan Agrawal <aa729@cornell.edu> | 2022-08-31 19:19:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-31 21:20:23 +0000 |
commit | 3a3b70ef88332a8989d4385c14131a840f82eee9 (patch) | |
tree | 5284913786143303a9c0d5ae0e8e08389b3c0aac /src/mongo/db/repl | |
parent | f3b689770ec69bd9ac089ec4b96a678bb0d565b9 (diff) | |
download | mongo-3a3b70ef88332a8989d4385c14131a840f82eee9.tar.gz |
SERVER-65337 set minThreads to 0: TenantMigrationDonorService, TenantMigrationRecipientService, ShardSplitDonorService.
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r-- | src/mongo/db/repl/repl_server_parameters.idl | 41 | ||||
-rw-r--r-- | src/mongo/db/repl/tenant_migration_donor_service.h | 1 | ||||
-rw-r--r-- | src/mongo/db/repl/tenant_migration_recipient_service.cpp | 1 |
3 files changed, 43 insertions, 0 deletions
diff --git a/src/mongo/db/repl/repl_server_parameters.idl b/src/mongo/db/repl/repl_server_parameters.idl index 54d50dd464e..00ae89e4c7b 100644 --- a/src/mongo/db/repl/repl_server_parameters.idl +++ b/src/mongo/db/repl/repl_server_parameters.idl @@ -483,6 +483,16 @@ server_parameters: validator: gte: 1 + minTenantMigrationRecipientThreadPoolSize: + description: >- + The minimum number of threads in the tenant migration recipient's thread pool. + set_at: startup + cpp_vartype: int + cpp_varname: minTenantMigrationRecipientThreadPoolSize + default: 0 + validator: + gte: 1 + maxTenantMigrationDonorServiceThreadPoolSize: description: >- The maximum number of threads in the tenant migration donor service's thread pool. @@ -492,6 +502,37 @@ server_parameters: default: 8 validator: gte: 1 + + minTenantMigrationDonorServiceThreadPoolSize: + description: >- + The minimum number of threads in the tenant migration donor service's thread pool. + set_at: startup + cpp_vartype: int + cpp_varname: minTenantMigrationDonorServiceThreadPoolSize + default: 0 + validator: + gte: 1 + + maxShardSplitDonorServiceThreadPoolSize: + description: >- + The maximum number of threads in the shard split donor service's thread pool. + set_at: startup + cpp_vartype: int + cpp_varname: maxShardSplitDonorServiceThreadPoolSize + default: 8 + validator: + gte: 1 + + minShardSplitDonorServiceThreadPoolSize: + description: >- + The minimum number of threads in the shard split donor service's thread pool. + set_at: startup + cpp_vartype: int + cpp_varname: minShardSplitDonorServiceThreadPoolSize + default: 0 + validator: + gte: 1 + shardSplitTimeoutMS: description: >- diff --git a/src/mongo/db/repl/tenant_migration_donor_service.h b/src/mongo/db/repl/tenant_migration_donor_service.h index 6eb481b45c1..c9f28ddcc07 100644 --- a/src/mongo/db/repl/tenant_migration_donor_service.h +++ b/src/mongo/db/repl/tenant_migration_donor_service.h @@ -59,6 +59,7 @@ public: ThreadPool::Limits getThreadPoolLimits() const override { ThreadPool::Limits limits; limits.maxThreads = repl::maxTenantMigrationDonorServiceThreadPoolSize; + limits.minThreads = repl::minTenantMigrationDonorServiceThreadPoolSize; return limits; } diff --git a/src/mongo/db/repl/tenant_migration_recipient_service.cpp b/src/mongo/db/repl/tenant_migration_recipient_service.cpp index 539e7c486b9..75ebc74f64c 100644 --- a/src/mongo/db/repl/tenant_migration_recipient_service.cpp +++ b/src/mongo/db/repl/tenant_migration_recipient_service.cpp @@ -281,6 +281,7 @@ NamespaceString TenantMigrationRecipientService::getStateDocumentsNS() const { ThreadPool::Limits TenantMigrationRecipientService::getThreadPoolLimits() const { ThreadPool::Limits limits; limits.maxThreads = maxTenantMigrationRecipientThreadPoolSize; + limits.minThreads = minTenantMigrationRecipientThreadPoolSize; return limits; } |