Skip to content

Commit abd34b6

Browse files
authored
Merge pull request ceph#55273 from pcuzner/add-nvmeof-to-autotune
cephadm: Add nvmeof to autotuner calculation Reviewed-by: Adam King <[email protected]>
2 parents c389f82 + 2d4bd16 commit abd34b6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/pybind/mgr/cephadm/autotune.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class MemoryAutotuner(object):
1515
'crash': 128 * 1048576,
1616
'keepalived': 128 * 1048576,
1717
'haproxy': 128 * 1048576,
18+
'nvmeof': 4096 * 1048576,
1819
}
1920
default_size = 1024 * 1048576
2021

src/pybind/mgr/cephadm/tests/test_autotune.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@
4646
],
4747
{},
4848
62 * 1024 * 1024 * 1024,
49+
),
50+
(
51+
128 * 1024 * 1024 * 1024,
52+
[
53+
DaemonDescription('mgr', 'a', 'host1'),
54+
DaemonDescription('osd', '1', 'host1'),
55+
DaemonDescription('osd', '2', 'host1'),
56+
DaemonDescription('nvmeof', 'a', 'host1'),
57+
],
58+
{},
59+
60 * 1024 * 1024 * 1024,
4960
)
5061
])
5162
def test_autotune(total, daemons, config, result):

0 commit comments

Comments
 (0)