]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: warn cluster when optimal deployment is not used 57593/head
authorMatan Breizman <mbreizma@redhat.com>
Thu, 30 May 2024 09:12:33 +0000 (09:12 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 2 Jun 2024 10:20:59 +0000 (10:20 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/osd.cc

index 6b43abca51268aa854dc2ff77aefc3ed53b89476..ed0563d08a241eb30f86e861b5dcb02c2742dc28 100644 (file)
@@ -361,7 +361,12 @@ seastar::future<> OSD::start()
 {
   LOG_PREFIX(OSD::start);
   INFO("seastar::smp::count {}", seastar::smp::count);
-
+  if (auto cpu_cores =
+        local_conf().get_val<std::string>("crimson_seastar_cpu_cores");
+      cpu_cores.empty()) {
+    clog->warn() << "for optimal performance please set "
+                    "crimson_seastar_cpu_cores";
+  }
   startup_time = ceph::mono_clock::now();
   ceph_assert(seastar::this_shard_id() == PRIMARY_CORE);
   return store.start().then([this] {