Skip to content

Commit 51743e6

Browse files
committed
qa/suite/nvmeof/thrash: increase number of thrashing
- Run fio for 15 mins (instead of 10min). - nvmeof.py: change daemon_max_thrash_times default from 3 to 5 - nvmeof.py: run nvme list in do_checks() Signed-off-by: Vallari Agrawal <[email protected]>
1 parent 9393509 commit 51743e6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

qa/suites/nvmeof/thrash/workloads/fio.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ tasks:
88
env:
99
RBD_POOL: mypool
1010
IOSTAT_INTERVAL: '10'
11-
RUNTIME: '600'
11+
RUNTIME: '900'

qa/tasks/nvmeof.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ class NvmeofThrasher(Thrasher, Greenlet):
251251
252252
daemon_max_thrash_times:
253253
For now, NVMeoF daemons have limitation that each daemon can
254-
be thrashed only 3 times in span of 30 mins. This option
254+
be thrashed only 5 times in span of 30 mins. This option
255255
allows to set the amount of times it could be thrashed in a period
256-
of time. (default: 3)
256+
of time. (default: 5)
257257
daemon_max_thrash_period:
258258
This option goes with the above option. It sets the period of time
259259
over which each daemons can be thrashed for daemon_max_thrash_times
@@ -306,7 +306,7 @@ def __init__(self, ctx, config, daemons) -> None:
306306
self.max_thrash_daemons = int(self.config.get('max_thrash', len(self.daemons) - 1))
307307

308308
# Limits on thrashing each daemon
309-
self.daemon_max_thrash_times = int(self.config.get('daemon_max_thrash_times', 3))
309+
self.daemon_max_thrash_times = int(self.config.get('daemon_max_thrash_times', 5))
310310
self.daemon_max_thrash_period = int(self.config.get('daemon_max_thrash_period', 30 * 60)) # seconds
311311

312312
self.min_thrash_delay = int(self.config.get('min_thrash_delay', 60))
@@ -347,6 +347,7 @@ def do_checks(self):
347347
run.Raw('&&'), 'ceph', 'orch', 'ps', '--daemon-type', 'nvmeof',
348348
run.Raw('&&'), 'ceph', 'health', 'detail',
349349
run.Raw('&&'), 'ceph', '-s',
350+
run.Raw('&&'), 'sudo', 'nvme', 'list',
350351
]
351352
for dev in self.devices:
352353
check_cmd += [

0 commit comments

Comments
 (0)