From 9ae3fce513c684800f8719cedbe534ef01186508 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 29 Oct 2013 13:10:05 -0700 Subject: [PATCH] radosgw-agent: add metadata-only option to task config Signed-off-by: Josh Durgin --- teuthology/task/radosgw-agent.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/teuthology/task/radosgw-agent.py b/teuthology/task/radosgw-agent.py index a33fbbe547b2d..5f1bdc3be3114 100644 --- a/teuthology/task/radosgw-agent.py +++ b/teuthology/task/radosgw-agent.py @@ -88,6 +88,10 @@ def run_radosgw_agent(ctx, config): tdir=testdir, client=client), ] + + if cconf.get('metadata-only', False): + in_args.append('--metadata-only') + # the test server and full/incremental flags are mutually exclusive if sync_scope is None: in_args.append('--test-server-host') @@ -132,7 +136,11 @@ def task(ctx, config): Alternatively, a single full sync can be triggered by specifying 'sync-scope: full' or a loop of incremental syncs can be triggered by specifying 'sync-scope: incremental' (the loop will sleep - '--incremental-sync-delay' seconds between each sync, default is 20 seconds). + '--incremental-sync-delay' seconds between each sync, default is 30 seconds). + + By default, both data and metadata are synced. To only sync + metadata, for example because you want to sync between regions, + set metadata-only: true. An example:: @@ -152,6 +160,7 @@ def task(ctx, config): src: client.0 dest: client.1 sync-scope: full + metadata-only: true # port: 8000 (default) client.1: src: client.1 -- 2.39.5