Skip to content

Commit ecebe2f

Browse files
authored
Merge pull request ceph#50616 from batrick/i59120
qa: use parallel gzip for compressing logs Reviewed-by: Venky Shankar <[email protected]> Reviewed-by: Casey Bodley <[email protected]> Reviewed-by: Ilya Dryomov <[email protected]>
2 parents 5d1764b + 6739e11 commit ecebe2f

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

qa/tasks/ceph.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def write_rotate_conf(ctx, daemons):
262262
run.wait(
263263
ctx.cluster.run(
264264
args=[
265+
'time',
265266
'sudo',
266267
'find',
267268
'/var/log/ceph',
@@ -271,10 +272,15 @@ def write_rotate_conf(ctx, daemons):
271272
run.Raw('|'),
272273
'sudo',
273274
'xargs',
275+
'--max-args=1',
276+
'--max-procs=0',
277+
'--verbose',
274278
'-0',
275279
'--no-run-if-empty',
276280
'--',
277281
'gzip',
282+
'-5',
283+
'--verbose',
278284
'--',
279285
],
280286
wait=False,

qa/tasks/ceph_deploy.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ def ceph_volume_osd_create(ctx, config):
524524
run.wait(
525525
ctx.cluster.run(
526526
args=[
527+
'time',
527528
'sudo',
528529
'find',
529530
'/var/log/ceph',
@@ -533,10 +534,15 @@ def ceph_volume_osd_create(ctx, config):
533534
run.Raw('|'),
534535
'sudo',
535536
'xargs',
537+
'--max-args=1',
538+
'--max-procs=0',
539+
'--verbose',
536540
'-0',
537541
'--no-run-if-empty',
538542
'--',
539543
'gzip',
544+
'-5',
545+
'--verbose',
540546
'--',
541547
],
542548
wait=False,

qa/tasks/cephadm.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ def first_in_ceph_log(pattern, excludes):
346346
run.wait(
347347
ctx.cluster.run(
348348
args=[
349+
'time',
349350
'sudo',
350351
'find',
351352
'/var/log/ceph', # all logs, not just for the cluster
@@ -356,10 +357,15 @@ def first_in_ceph_log(pattern, excludes):
356357
run.Raw('|'),
357358
'sudo',
358359
'xargs',
360+
'--max-args=1',
361+
'--max-procs=0',
362+
'--verbose',
359363
'-0',
360364
'--no-run-if-empty',
361365
'--',
362366
'gzip',
367+
'-5',
368+
'--verbose',
363369
'--',
364370
],
365371
wait=False,

qa/tasks/rook.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ def first_in_ceph_log(pattern, excludes):
263263
run.wait(
264264
ctx.cluster.run(
265265
args=[
266+
'time',
266267
'sudo',
267268
'find',
268269
log_dir,
@@ -272,10 +273,15 @@ def first_in_ceph_log(pattern, excludes):
272273
run.Raw('|'),
273274
'sudo',
274275
'xargs',
276+
'--max-args=1',
277+
'--max-procs=0',
278+
'--verbose',
275279
'-0',
276280
'--no-run-if-empty',
277281
'--',
278282
'gzip',
283+
'-5',
284+
'--verbose',
279285
'--',
280286
],
281287
wait=False,

0 commit comments

Comments
 (0)