Skip to content

Commit b076ef9

Browse files
committed
Merge branch 'w/9.0/improvement/CLDSRV-829-flaky-kms-load-repartition' into tmp/octopus/w/9.1/improvement/CLDSRV-829-flaky-kms-load-repartition
2 parents ea3f38a + ff0a495 commit b076ef9

File tree

1 file changed

+4
-3
lines changed
  • tests/functional/sse-kms-migration

1 file changed

+4
-3
lines changed

tests/functional/sse-kms-migration/load.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ const KMS_NODES = helpers.config.kmip.transport.length;
1616
const TOTAL_OBJECTS_PER_NODE = Math.floor(TOTAL_OBJECTS / KMS_NODES);
1717

1818
/**
19-
* 10% approximation for the number of packets per IP
19+
* 20% approximation for the number of packets per IP
2020
* As we might not have an exact match of packets and the
2121
* round robin is confined to each nodejs cluster processes
2222
*/
23-
const APPROX = Math.floor(0.1 * TOTAL_OBJECTS_PER_NODE);
23+
const APPROX = Math.floor(0.2 * TOTAL_OBJECTS_PER_NODE);
2424
const EXPECTED_MIN = TOTAL_OBJECTS_PER_NODE - APPROX;
2525
const EXPECTED_MAX = TOTAL_OBJECTS_PER_NODE + APPROX;
2626

@@ -177,7 +177,8 @@ describe(`KMS load (kmip cluster ${KMS_NODES} nodes): ${OBJECT_NUMBER
177177
assert(repartition.length === KMS_NODES, `Expected ${KMS_NODES} IPs but got ${repartition.length}`);
178178
assert(repartitionCount.every(count =>
179179
count >= EXPECTED_MIN && count <= EXPECTED_MAX),
180-
`Repartition counts should be around ${TOTAL_OBJECTS_PER_NODE} but got ${repartitionCount}`);
180+
`Repartition counts should be around ${TOTAL_OBJECTS_PER_NODE} ` +
181+
`(±${APPROX}, min: ${EXPECTED_MIN}, max: ${EXPECTED_MAX}) but got ${repartitionCount}`);
181182
}
182183

183184
it(`should encrypt ${TOTAL_OBJECTS} times in parallel, ~${TOTAL_OBJECTS_PER_NODE} per node`, async () => {

0 commit comments

Comments
 (0)