Skip to content

Commit 1448a9b

Browse files
ritalrwclaude
andcommitted
hostedOPD: support configurable numVBuckets for Capella bucket creation
Add numVBuckets to the bucket spec and the Capella create_bucket payload in hostedOPD.create_buckets, controlled by the 'numVBuckets' test param (default 128). This lets aGoodDoctor volume tests create Capella buckets with a specific vBucket count instead of relying on the server-side default. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Change-Id: Ie9a0f3d8628bb8092637e596ad6acb51bd8f362c Reviewed-on: https://review.couchbase.org/c/TAF/+/246616 Reviewed-by: Thuan Nguyen <soccon@gmail.com> Tested-by: Ritesh Agarwal <ritesh.agarwal@couchbase.com>
1 parent 5316d72 commit 1448a9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pytests/aGoodDoctor/hostedOPD.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def create_buckets(self, pod, tenant, cluster, sdk_init=True):
6969
Bucket.bucketType: bucket_type[i],
7070
Bucket.durabilityMinLevel: self.bucket_durability_level,
7171
Bucket.flushEnabled: True,
72+
Bucket.numVBuckets: self.input.param("numVBuckets", 128),
7273
Bucket.fragmentationPercentage: self.fragmentation})
7374
self.bucket_params = {
7475
"name": bucket.name,
@@ -78,6 +79,7 @@ def create_buckets(self, pod, tenant, cluster, sdk_init=True):
7879
"replicas": bucket.replicaNumber,
7980
"storageBackend": bucket.storageBackend,
8081
"durabilityLevel": bucket.durabilityMinLevel,
82+
"numVBuckets": bucket.numVBuckets,
8183
"timeToLive": {"unit": "seconds", "value": bucket.maxTTL}
8284
}
8385
CapellaUtils.create_bucket(pod, tenant, cluster, self.bucket_params)

0 commit comments

Comments
 (0)