From 82c64f9908d85528b29e437c80a3310a1368a80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Thu, 3 Dec 2026 22:03:22 +0100 Subject: [PATCH] test(dev): make the million test worker count configurable WORKERS sets the copier workers (default 8). The driver no longer removes the mount field, which the configuration does not have anymore. Co-Authored-By: Claude Opus 5.5 --- dev/compose.million.yaml | 1 + dev/million.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/compose.million.yaml b/dev/compose.million.yaml index 1d06533..885ed81 100644 --- a/dev/compose.million.yaml +++ b/dev/compose.million.yaml @@ -19,6 +19,7 @@ services: environment: FILES: ${FILES:-1000000} RUN_LABEL: ${RUN_LABEL:-main} + WORKERS: ${WORKERS:-8} networks: [lab] depends_on: source: {condition: service_healthy} diff --git a/dev/million.py b/dev/million.py index 30a85ec..179cd16 100644 --- a/dev/million.py +++ b/dev/million.py @@ -190,10 +190,9 @@ def prepare(): roots = {c: volume(c, 'getpath', 'cephfs', name) for c in ('source', 'target')} state['roots'] = roots config = json.loads(Path('/lab/migration.example.json').read_text()) - config.update(backend='native', workers=8, bandwidth_kib=0) + config.update(backend='native', workers=int(os.environ.get('WORKERS', '8')), bandwidth_kib=0) for c in ('source', 'target'): config[c]['subvolume'] = name - config[c].pop('mount', None) atomic_json(WORK / 'config.json', config) with FS('source') as fs: root = roots['source']