]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/optinos: extract crimson options out
authorKefu Chai <kchai@redhat.com>
Wed, 21 Apr 2021 04:46:22 +0000 (12:46 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 21 Apr 2021 05:17:17 +0000 (13:17 +0800)
prepare for the change to split the options by services

in future, osd will have its own osd.yaml.in, while crimson will consume
both osd.yaml.in and crimson.yaml.in.

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/conf.py
src/common/options/CMakeLists.txt
src/common/options/build_options.cc
src/common/options/crimson.yaml.in [new file with mode: 0644]
src/common/options/global.yaml.in

index 09a0b077ada1a1bb78fe6f572d870cb8b4f7e9c5..9b4da176c08ca4a921a65ee388807b67979bb787 100644 (file)
@@ -231,6 +231,7 @@ ceph_confval_imports = [os.path.join(top_level,
                                      'src/common/options',
                                      yaml + '.yaml.in')
                         for yaml in ['global',
+                                     'crimson',
                                      'immutable-object-cache',
                                      'mds',
                                      'mds-client',
index 8e3cecacd97813dd93fc4c8140e5fd5ad86304eb..6424271e381217385718d3e4b3ce93dd98a0988f 100644 (file)
@@ -81,6 +81,7 @@ endif()
 
 add_options(global)
 add_options(cephfs-mirror)
+add_options(crimson)
 add_options(mds)
 add_options(mds-client)
 add_options(rbd)
index 8e92a164f126c639c734f4082f0d34a6e19cd485..cf3f5ef6c92de58234fd4a1c84f5d93c93583ff6 100644 (file)
@@ -4,6 +4,7 @@
 #include "build_options.h"
 
 std::vector<Option> get_global_options();
+std::vector<Option> get_crimson_options();
 std::vector<Option> get_rgw_options();
 std::vector<Option> get_rbd_options();
 std::vector<Option> get_rbd_mirror_options();
@@ -23,6 +24,7 @@ std::vector<Option> build_options()
     }
   };
 
+  ingest(get_crimson_options(), "osd");
   ingest(get_rgw_options(), "rgw");
   ingest(get_rbd_options(), "rbd");
   ingest(get_rbd_mirror_options(), "rbd-mirror");
diff --git a/src/common/options/crimson.yaml.in b/src/common/options/crimson.yaml.in
new file mode 100644 (file)
index 0000000..eb4c9d7
--- /dev/null
@@ -0,0 +1,25 @@
+# -*- mode: YAML -*-
+---
+
+options:
+- name: crimson_osd_obc_lru_size
+  type: uint
+  level: advanced
+  desc: Number of obcs to cache
+  default: 10
+- name: crimson_osd_scheduler_concurrency
+  type: uint
+  level: advanced
+  desc: The maximum number concurrent IO operations, 0 for unlimited
+  default: 0
+- name: crimson_alien_op_num_threads
+  type: uint
+  level: advanced
+  desc: The number of threads for serving alienized ObjectStore
+  default: 6
+  flags:
+  - startup
+- name: crimson_alien_thread_cpu_cores
+  type: str
+  level: advanced
+  desc: CPU cores on which alienstore threads will run
index 53c54b0970f4e4b0ed0d157b7b566dddfd26a325..e0836379ac00f4f614c2049844027355bc241604 100644 (file)
@@ -8681,27 +8681,6 @@ options:
   default: true
   tags:
   - client
-- name: crimson_osd_obc_lru_size
-  type: uint
-  level: advanced
-  desc: Number of obcs to cache
-  default: 10
-- name: crimson_osd_scheduler_concurrency
-  type: uint
-  level: advanced
-  desc: The maximum number concurrent IO operations, 0 for unlimited
-  default: 0
-- name: crimson_alien_op_num_threads
-  type: uint
-  level: advanced
-  desc: The number of threads for serving alienized ObjectStore
-  default: 6
-  flags:
-  - startup
-- name: crimson_alien_thread_cpu_cores
-  type: str
-  level: advanced
-  desc: Cpu cores on which alienstore threads will run
 - name: bdev_type
   type: str
   level: advanced