]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: warn cluster when optimal deployment is not used 58034/head
authorMatan Breizman <mbreizma@redhat.com>
Thu, 30 May 2024 09:12:33 +0000 (09:12 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 13 Jun 2024 12:44:22 +0000 (15:44 +0300)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 64a9915ecbafadc5afb16b04366a69fc4e548568)

src/crimson/osd/osd.cc

index 459943c3b607ae6520f9ac9b3c2a3236142cfbd6..1bd174bcd790be04fdaf8c41db8e7a4cea647b37 100644 (file)
@@ -363,7 +363,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] {