Skip to content

Commit 64a9915

Browse files
committed
crimson/osd: warn cluster when optimal deployment is not used
Signed-off-by: Matan Breizman <[email protected]>
1 parent e0b6fff commit 64a9915

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/crimson/osd/osd.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,12 @@ seastar::future<> OSD::start()
361361
{
362362
LOG_PREFIX(OSD::start);
363363
INFO("seastar::smp::count {}", seastar::smp::count);
364-
364+
if (auto cpu_cores =
365+
local_conf().get_val<std::string>("crimson_seastar_cpu_cores");
366+
cpu_cores.empty()) {
367+
clog->warn() << "for optimal performance please set "
368+
"crimson_seastar_cpu_cores";
369+
}
365370
startup_time = ceph::mono_clock::now();
366371
ceph_assert(seastar::this_shard_id() == PRIMARY_CORE);
367372
return store.start().then([this] {

0 commit comments

Comments
 (0)