1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
6 #include "common/Formatter.h"
8 // Helpers for validators
9 #include "include/stringify.h"
10 #include <boost/algorithm/string.hpp>
11 #include <boost/lexical_cast.hpp>
12 #include <boost/regex.hpp>
14 // Definitions for enums
15 #include "common/perf_counters.h"
18 void Option::dump_value(const char *field_name
,
19 const Option::value_t
&v
, Formatter
*f
) const
21 if (boost::get
<boost::blank
>(&v
)) {
22 // This should be nil but Formatter doesn't allow it.
23 f
->dump_string(field_name
, "");
24 } else if (type
== TYPE_UINT
) {
25 f
->dump_unsigned(field_name
, boost::get
<uint64_t>(v
));
26 } else if (type
== TYPE_INT
) {
27 f
->dump_int(field_name
, boost::get
<int64_t>(v
));
28 } else if (type
== TYPE_STR
) {
29 f
->dump_string(field_name
, boost::get
<std::string
>(v
));
30 } else if (type
== TYPE_FLOAT
) {
31 f
->dump_float(field_name
, boost::get
<double>(v
));
32 } else if (type
== TYPE_BOOL
) {
33 f
->dump_bool(field_name
, boost::get
<bool>(v
));
35 f
->dump_stream(field_name
) << v
;
39 int Option::pre_validate(std::string
*new_value
, std::string
*err
) const
42 return validator(new_value
, err
);
48 int Option::validate(const Option::value_t
&new_value
, std::string
*err
) const
50 // Generic validation: min
51 if (!boost::get
<boost::blank
>(&(min
))) {
52 if (new_value
< min
) {
53 std::ostringstream oss
;
54 oss
<< "Value '" << new_value
<< "' is below minimum " << min
;
60 // Generic validation: max
61 if (!boost::get
<boost::blank
>(&(max
))) {
62 if (new_value
> max
) {
63 std::ostringstream oss
;
64 oss
<< "Value '" << new_value
<< "' exceeds maximum " << max
;
70 // Generic validation: enum
71 if (!enum_allowed
.empty() && type
== Option::TYPE_STR
) {
72 auto found
= std::find(enum_allowed
.begin(), enum_allowed
.end(),
73 boost::get
<std::string
>(new_value
));
74 if (found
== enum_allowed
.end()) {
75 std::ostringstream oss
;
76 oss
<< "'" << new_value
<< "' is not one of the permitted "
77 "values: " << joinify(enum_allowed
.begin(),
88 void Option::dump(Formatter
*f
) const
90 f
->open_object_section("option");
91 f
->dump_string("name", name
);
93 f
->dump_string("type", type_to_str(type
));
95 f
->dump_string("level", level_to_str(level
));
97 f
->dump_string("desc", desc
);
98 f
->dump_string("long_desc", long_desc
);
100 dump_value("default", value
, f
);
101 dump_value("daemon_default", daemon_value
, f
);
103 f
->open_array_section("tags");
104 for (const auto t
: tags
) {
105 f
->dump_string("tag", t
);
109 f
->open_array_section("services");
110 for (const auto s
: services
) {
111 f
->dump_string("service", s
);
115 f
->open_array_section("see_also");
116 for (const auto sa
: see_also
) {
117 f
->dump_string("see_also", sa
);
121 if (type
== TYPE_STR
) {
122 f
->open_array_section("enum_values");
123 for (const auto &ea
: enum_allowed
) {
124 f
->dump_string("enum_value", ea
);
129 dump_value("min", min
, f
);
130 dump_value("max", max
, f
);
135 constexpr unsigned long long operator"" _min (unsigned long long min
) {
138 constexpr unsigned long long operator"" _hr (unsigned long long hr
) {
141 constexpr unsigned long long operator"" _day (unsigned long long day
) {
142 return day
* 60 * 60 * 24;
144 constexpr unsigned long long operator"" _K (unsigned long long n
) {
147 constexpr unsigned long long operator"" _M (unsigned long long n
) {
150 constexpr unsigned long long operator"" _G (unsigned long long n
) {
154 std::vector
<Option
> get_global_options() {
155 return std::vector
<Option
>({
156 Option("host", Option::TYPE_STR
, Option::LEVEL_BASIC
)
157 .set_description("local hostname")
158 .set_long_description("if blank, ceph assumes the short hostname (hostname -s)")
159 .add_service("common")
162 Option("fsid", Option::TYPE_UUID
, Option::LEVEL_BASIC
)
163 .set_description("cluster fsid (uuid)")
164 .add_service("common")
167 Option("public_addr", Option::TYPE_ADDR
, Option::LEVEL_BASIC
)
168 .set_description("public-facing address to bind to")
169 .add_service({"mon", "mds", "osd", "mgr"}),
171 Option("public_bind_addr", Option::TYPE_ADDR
, Option::LEVEL_ADVANCED
)
172 .set_default(entity_addr_t())
174 .set_description(""),
176 Option("cluster_addr", Option::TYPE_ADDR
, Option::LEVEL_BASIC
)
177 .set_description("cluster-facing address to bind to")
181 Option("public_network", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
182 .add_service({"mon", "mds", "osd", "mgr"})
184 .set_description("Network(s) from which to choose a public address to bind to"),
186 Option("public_network_interface", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
187 .add_service({"mon", "mds", "osd", "mgr"})
189 .set_description("Interface name(s) from which to choose an address from a public_network to bind to; public_network must also be specified.")
190 .add_see_also("public_network"),
192 Option("cluster_network", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
195 .set_description("Network(s) from which to choose a cluster address to bind to"),
197 Option("cluster_network_interface", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
198 .add_service({"mon", "mds", "osd", "mgr"})
200 .set_description("Interface name(s) from which to choose an address from a cluster_network to bind to; cluster_network must also be specified.")
201 .add_see_also("cluster_network"),
203 Option("monmap", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
204 .set_description("path to MonMap file")
205 .set_long_description("This option is normally used during mkfs, but can also "
206 "be used to identify which monitors to connect to.")
210 Option("mon_host", Option::TYPE_STR
, Option::LEVEL_BASIC
)
211 .set_description("list of hosts or addresses to search for a monitor")
212 .set_long_description("This is a comma, whitespace, or semicolon separated "
213 "list of IP addresses or hostnames. Hostnames are "
214 "resolved via DNS and all A or AAAA records are "
215 "included in the search list.")
216 .add_service("common"),
218 Option("mon_dns_srv_name", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
219 .set_default("ceph-mon")
220 .set_description("name of DNS SRV record to check for monitor addresses")
221 .add_service("common")
223 .add_see_also("mon_host"),
226 Option("lockdep", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
227 .set_description("enable lockdep lock dependency analyzer")
228 .add_service("common"),
230 Option("lockdep_force_backtrace", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
231 .set_description("always gather current backtrace at every lock")
232 .add_service("common")
233 .add_see_also("lockdep"),
235 Option("run_dir", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
236 .set_default("/var/run/ceph")
237 .set_description("path for the 'run' directory for storing pid and socket files")
238 .add_service("common")
239 .add_see_also("admin_socket"),
241 Option("admin_socket", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
243 .set_daemon_default("$run_dir/$cluster-$name.asok")
244 .set_description("path for the runtime control socket file, used by the 'ceph daemon' command")
245 .add_service("common"),
247 Option("admin_socket_mode", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
248 .set_description("file mode to set for the admin socket file, e.g, '0755'")
249 .add_service("common")
250 .add_see_also("admin_socket"),
252 Option("crushtool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
253 .set_description("name of the 'crushtool' utility")
257 Option("daemonize", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
259 .set_daemon_default(true)
260 .set_description("whether to daemonize (background) after startup")
261 .add_service({"mon", "mgr", "osd", "mds"})
263 .add_see_also({"pid_file", "chdir"}),
265 Option("setuser", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
266 .set_description("uid or user name to switch to on startup")
267 .set_long_description("This is normally specified by the systemd unit file.")
268 .add_service({"mon", "mgr", "osd", "mds"})
270 .add_see_also("setgroup"),
272 Option("setgroup", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
273 .set_description("gid or group name to switch to on startup")
274 .set_long_description("This is normally specified by the systemd unit file.")
275 .add_service({"mon", "mgr", "osd", "mds"})
277 .add_see_also("setuser"),
279 Option("setuser_match_path", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
280 .set_description("if set, setuser/setgroup is condition on this path matching ownership")
281 .set_long_description("If setuser or setgroup are specified, and this option is non-empty, then the uid/gid of the daemon will only be changed if the file or directory specified by this option has a matching uid and/or gid. This exists primarily to allow switching to user ceph for OSDs to be conditional on whether the osd data contents have also been chowned after an upgrade. This is normally specified by the systemd unit file.")
282 .add_service({"mon", "mgr", "osd", "mds"})
284 .add_see_also({"setuser", "setgroup"}),
286 Option("pid_file", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
287 .set_description("path to write a pid file (if any)")
288 .add_service({"mon", "mgr", "osd", "mds"})
291 Option("chdir", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
292 .set_description("path to chdir(2) to after daemonizing")
293 .add_service({"mon", "mgr", "osd", "mds"})
295 .add_see_also("daemonize"),
297 Option("fatal_signal_handlers", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
299 .set_description("whether to register signal handlers for SIGABRT etc that dump a stack trace")
300 .set_long_description("This is normally true for daemons and values for libraries.")
301 .add_service({"mon", "mgr", "osd", "mds"})
305 Option("restapi_log_level", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
306 .set_description("default set by python code"),
308 Option("restapi_base_url", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
309 .set_description("default set by python code"),
311 Option("erasure_code_dir", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
312 .set_default(CEPH_PKGLIBDIR
"/erasure-code")
313 .set_description("directory where erasure-code plugins can be found")
314 .add_service({"mon", "osd"})
318 Option("log_file", Option::TYPE_STR
, Option::LEVEL_BASIC
)
320 .set_daemon_default("/var/log/ceph/$cluster-$name.log")
321 .set_description("path to log file")
322 .add_see_also({"log_to_stderr",
327 Option("log_max_new", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
329 .set_description("max unwritten log entries to allow before waiting to flush to the log")
330 .add_see_also("log_max_recent"),
332 Option("log_max_recent", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
334 .set_daemon_default(10000)
335 .set_description("recent log entries to keep in memory to dump in the event of a crash")
336 .set_long_description("The purpose of this option is to log at a higher debug level only to the in-memory buffer, and write out the detailed log messages only if there is a crash. Only log entries below the lower log level will be written unconditionally to the log. For example, debug_osd=1/5 will write everything <= 1 to the log unconditionally but keep entries at levels 2-5 in memory. If there is a seg fault or assertion failure, all entries will be dumped to the log."),
338 Option("log_to_stderr", Option::TYPE_BOOL
, Option::LEVEL_BASIC
)
340 .set_daemon_default(false)
341 .set_description("send log lines to stderr"),
343 Option("err_to_stderr", Option::TYPE_BOOL
, Option::LEVEL_BASIC
)
345 .set_daemon_default(true)
346 .set_description("send critical error log lines to stderr"),
348 Option("log_stderr_prefix", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
349 .set_description("String to prefix log messages with when sent to stderr"),
351 Option("log_to_syslog", Option::TYPE_BOOL
, Option::LEVEL_BASIC
)
353 .set_description("send log lines to syslog facility"),
355 Option("err_to_syslog", Option::TYPE_BOOL
, Option::LEVEL_BASIC
)
357 .set_description("send critical error log lines to syslog facility"),
359 Option("log_flush_on_exit", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
361 .set_description("set a process exit handler to ensure the log is flushed on exit"),
363 Option("log_stop_at_utilization", Option::TYPE_FLOAT
, Option::LEVEL_BASIC
)
365 .set_min_max(0.0, 1.0)
366 .set_description("stop writing to the log file when device utilization reaches this ratio")
367 .add_see_also("log_file"),
369 Option("log_to_graylog", Option::TYPE_BOOL
, Option::LEVEL_BASIC
)
371 .set_description("send log lines to remote graylog server")
372 .add_see_also({"err_to_graylog",
374 "log_graylog_port"}),
376 Option("err_to_graylog", Option::TYPE_BOOL
, Option::LEVEL_BASIC
)
378 .set_description("send critical error log lines to remote graylog server")
379 .add_see_also({"log_to_graylog",
381 "log_graylog_port"}),
383 Option("log_graylog_host", Option::TYPE_STR
, Option::LEVEL_BASIC
)
384 .set_default("127.0.0.1")
385 .set_description("address or hostname of graylog server to log to")
386 .add_see_also({"log_to_graylog",
388 "log_graylog_port"}),
390 Option("log_graylog_port", Option::TYPE_INT
, Option::LEVEL_BASIC
)
392 .set_description("port number for the remote graylog server")
393 .add_see_also("log_graylog_host"),
398 Option("clog_to_monitors", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
399 .set_default("default=true")
400 .set_description(""),
402 Option("clog_to_syslog", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
403 .set_default("false")
404 .set_description(""),
406 Option("clog_to_syslog_level", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
408 .set_description(""),
410 Option("clog_to_syslog_facility", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
411 .set_default("default=daemon audit=local0")
412 .set_description(""),
414 Option("clog_to_graylog", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
415 .set_default("false")
416 .set_description(""),
418 Option("clog_to_graylog_host", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
419 .set_default("127.0.0.1")
420 .set_description(""),
422 Option("clog_to_graylog_port", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
423 .set_default("12201")
424 .set_description(""),
426 Option("mon_cluster_log_to_stderr", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
428 .set_description("Send cluster log messages to stderr (prefixed by channel)"),
430 Option("mon_cluster_log_to_syslog", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
431 .set_default("default=false")
432 .set_description(""),
434 Option("mon_cluster_log_to_syslog_level", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
436 .set_description(""),
438 Option("mon_cluster_log_to_syslog_facility", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
439 .set_default("daemon")
440 .set_description(""),
442 Option("mon_cluster_log_file", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
443 .set_default("default=/var/log/ceph/$cluster.$channel.log cluster=/var/log/ceph/$cluster.log")
444 .set_description(""),
446 Option("mon_cluster_log_file_level", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
448 .set_description(""),
450 Option("mon_cluster_log_to_graylog", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
451 .set_default("false")
452 .set_description(""),
454 Option("mon_cluster_log_to_graylog_host", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
455 .set_default("127.0.0.1")
456 .set_description(""),
458 Option("mon_cluster_log_to_graylog_port", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
459 .set_default("12201")
460 .set_description(""),
462 Option("enable_experimental_unrecoverable_data_corrupting_features", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
464 .set_description(""),
466 Option("plugin_dir", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
467 .set_default(CEPH_PKGLIBDIR
)
471 Option("xio_trace_mempool", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
473 .set_description(""),
475 Option("xio_trace_msgcnt", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
477 .set_description(""),
479 Option("xio_trace_xcon", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
481 .set_description(""),
483 Option("xio_queue_depth", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
485 .set_description(""),
487 Option("xio_mp_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
489 .set_description(""),
491 Option("xio_mp_max_64", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
493 .set_description(""),
495 Option("xio_mp_max_256", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
497 .set_description(""),
499 Option("xio_mp_max_1k", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
501 .set_description(""),
503 Option("xio_mp_max_page", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
505 .set_description(""),
507 Option("xio_mp_max_hint", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
509 .set_description(""),
511 Option("xio_portal_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
513 .set_description(""),
515 Option("xio_max_conns_per_portal", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
517 .set_description(""),
519 Option("xio_transport_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
521 .set_description(""),
523 Option("xio_max_send_inline", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
525 .set_description(""),
527 Option("compressor_zlib_isal", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
529 .set_description(""),
531 Option("compressor_zlib_level", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
533 .set_description(""),
535 Option("async_compressor_enabled", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
537 .set_description(""),
539 Option("async_compressor_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
540 .set_default("snappy")
541 .set_description(""),
543 Option("async_compressor_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
545 .set_description(""),
547 Option("async_compressor_thread_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
549 .set_description(""),
551 Option("async_compressor_thread_suicide_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
553 .set_description(""),
555 Option("plugin_crypto_accelerator", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
556 .set_default("crypto_isal")
557 .set_description(""),
559 Option("mempool_debug", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
561 .set_description(""),
563 Option("key", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
565 .set_description("Authentication key")
566 .set_long_description("A CephX authentication key, base64 encoded. It normally looks something like 'AQAtut9ZdMbNJBAAHz6yBAWyJyz2yYRyeMWDag=='.")
567 .add_see_also("keyfile")
568 .add_see_also("keyring"),
570 Option("keyfile", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
572 .set_description("Path to a file containing a key")
573 .set_long_description("The file should contain a CephX authentication key and optionally a trailing newline, but nothing else.")
574 .add_see_also("key"),
576 Option("keyring", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
578 "/etc/ceph/$cluster.$name.keyring,/etc/ceph/$cluster.keyring,"
579 "/etc/ceph/keyring,/etc/ceph/keyring.bin,"
580 #if defined(__FreeBSD)
581 "/usr/local/etc/ceph/$cluster.$name.keyring,"
582 "/usr/local/etc/ceph/$cluster.keyring,"
583 "/usr/local/etc/ceph/keyring,/usr/local/etc/ceph/keyring.bin,"
586 .set_description("Path to a keyring file.")
587 .set_long_description("A keyring file is an INI-style formatted file where the section names are client or daemon names (e.g., 'osd.0') and each section contains a 'key' property with CephX authentication key as the value.")
589 .add_see_also("keyfile"),
591 Option("heartbeat_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
593 .set_description(""),
595 Option("heartbeat_file", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
597 .set_description(""),
599 Option("heartbeat_inject_failure", Option::TYPE_INT
, Option::LEVEL_DEV
)
601 .set_description(""),
603 Option("perf", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
605 .set_description(""),
607 Option("ms_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
608 .set_default("async+posix")
612 Option("ms_public_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
614 .set_description(""),
616 Option("ms_cluster_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
618 .set_description(""),
620 Option("ms_tcp_nodelay", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
622 .set_description(""),
624 Option("ms_tcp_rcvbuf", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
626 .set_description(""),
628 Option("ms_tcp_prefetch_max_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
630 .set_description(""),
632 Option("ms_initial_backoff", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
634 .set_description(""),
636 Option("ms_max_backoff", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
638 .set_description(""),
640 Option("ms_crc_data", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
642 .set_description(""),
644 Option("ms_crc_header", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
646 .set_description(""),
648 Option("ms_die_on_bad_msg", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
650 .set_description(""),
652 Option("ms_die_on_unhandled_msg", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
654 .set_description(""),
656 Option("ms_die_on_old_message", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
658 .set_description(""),
660 Option("ms_die_on_skipped_message", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
662 .set_description(""),
664 Option("ms_dispatch_throttle_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
665 .set_default(100 << 20)
666 .set_description(""),
668 Option("ms_bind_ipv6", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
670 .set_description(""),
672 Option("ms_bind_port_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
674 .set_description(""),
676 Option("ms_bind_port_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
678 .set_description(""),
680 Option("ms_bind_retry_count", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
681 #if !defined(__FreeBSD__)
684 // FreeBSD does not use SO_REAUSEADDR so allow for a bit more time per default
687 .set_description(""),
689 Option("ms_bind_retry_delay", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
690 #if !defined(__FreeBSD__)
693 // FreeBSD does not use SO_REAUSEADDR so allow for a bit more time per default
696 .set_description(""),
698 Option("ms_bind_before_connect", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
700 .set_description(""),
702 Option("ms_tcp_listen_backlog", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
704 .set_description(""),
706 Option("ms_rwthread_stack_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
708 .set_description(""),
710 Option("ms_tcp_read_timeout", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
712 .set_description(""),
714 Option("ms_pq_max_tokens_per_priority", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
715 .set_default(16777216)
716 .set_description(""),
718 Option("ms_pq_min_cost", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
720 .set_description(""),
722 Option("ms_inject_socket_failures", Option::TYPE_UINT
, Option::LEVEL_DEV
)
724 .set_description(""),
726 Option("ms_inject_delay_type", Option::TYPE_STR
, Option::LEVEL_DEV
)
731 Option("ms_inject_delay_msg_type", Option::TYPE_STR
, Option::LEVEL_DEV
)
733 .set_description(""),
735 Option("ms_inject_delay_max", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
737 .set_description(""),
739 Option("ms_inject_delay_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
741 .set_description(""),
743 Option("ms_inject_internal_delays", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
745 .set_description(""),
747 Option("ms_dump_on_send", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
749 .set_description(""),
751 Option("ms_dump_corrupt_message_level", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
753 .set_description(""),
755 Option("ms_async_op_threads", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
757 .set_description(""),
759 Option("ms_async_max_op_threads", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
761 .set_description(""),
763 Option("ms_async_set_affinity", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
765 .set_description(""),
767 Option("ms_async_affinity_cores", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
769 .set_description(""),
771 Option("ms_async_rdma_device_name", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
773 .set_description(""),
775 Option("ms_async_rdma_enable_hugepage", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
777 .set_description(""),
779 Option("ms_async_rdma_buffer_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
781 .set_description(""),
783 Option("ms_async_rdma_send_buffers", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
785 .set_description(""),
787 Option("ms_async_rdma_receive_buffers", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
789 .set_description(""),
791 Option("ms_async_rdma_port_num", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
793 .set_description(""),
795 Option("ms_async_rdma_polling_us", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
797 .set_description(""),
799 Option("ms_async_rdma_local_gid", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
801 .set_description(""),
803 Option("ms_async_rdma_roce_ver", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
805 .set_description(""),
807 Option("ms_async_rdma_sl", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
809 .set_description(""),
811 Option("ms_async_rdma_dscp", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
813 .set_description(""),
815 Option("ms_max_accept_failures", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
817 .set_description("The maximum number of consecutive failed accept() calls before "
818 "considering the daemon is misconfigured and abort it."),
820 Option("ms_dpdk_port_id", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
822 .set_description(""),
824 Option("ms_dpdk_coremask", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
829 Option("ms_dpdk_memory_channel", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
831 .set_description(""),
833 Option("ms_dpdk_hugepages", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
835 .set_description(""),
837 Option("ms_dpdk_pmd", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
839 .set_description(""),
841 Option("ms_dpdk_host_ipv4_addr", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
846 Option("ms_dpdk_gateway_ipv4_addr", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
851 Option("ms_dpdk_netmask_ipv4_addr", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
856 Option("ms_dpdk_lro", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
858 .set_description(""),
860 Option("ms_dpdk_hw_flow_control", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
862 .set_description(""),
864 Option("ms_dpdk_hw_queue_weight", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
866 .set_description(""),
868 Option("ms_dpdk_debug_allow_loopback", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
870 .set_description(""),
872 Option("ms_dpdk_rx_buffer_count_per_core", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
874 .set_description(""),
876 Option("inject_early_sigterm", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
878 .set_description(""),
880 Option("mon_data", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
881 .set_default("/var/lib/ceph/mon/$cluster-$id")
882 .set_description(""),
884 Option("mon_initial_members", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
886 .set_description(""),
888 Option("mon_compact_on_start", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
890 .set_description(""),
892 Option("mon_compact_on_bootstrap", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
894 .set_description(""),
896 Option("mon_compact_on_trim", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
898 .set_description(""),
900 Option("mon_osd_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
902 .set_description(""),
904 Option("mon_cpu_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
906 .set_description(""),
908 Option("mon_osd_mapping_pgs_per_chunk", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
910 .set_description(""),
912 Option("mon_osd_max_creating_pgs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
914 .set_description(""),
916 Option("mon_tick_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
918 .set_description(""),
920 Option("mon_session_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
922 .set_description(""),
924 Option("mon_subscribe_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
926 .set_description(""),
928 Option("mon_delta_reset_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
930 .set_description(""),
932 Option("mon_osd_laggy_halflife", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
934 .set_description(""),
936 Option("mon_osd_laggy_weight", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
938 .set_description(""),
940 Option("mon_osd_laggy_max_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
942 .set_description(""),
944 Option("mon_osd_adjust_heartbeat_grace", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
946 .set_description(""),
948 Option("mon_osd_adjust_down_out_interval", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
950 .set_description(""),
952 Option("mon_osd_auto_mark_in", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
954 .set_description(""),
956 Option("mon_osd_auto_mark_auto_out_in", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
958 .set_description(""),
960 Option("mon_osd_auto_mark_new_in", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
962 .set_description(""),
964 Option("mon_osd_destroyed_out_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
966 .set_description(""),
968 Option("mon_osd_down_out_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
970 .set_description(""),
972 Option("mon_osd_down_out_subtree_limit", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
974 .set_description(""),
976 Option("mon_osd_min_up_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
978 .set_description(""),
980 Option("mon_osd_min_in_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
982 .set_description(""),
984 Option("mon_osd_warn_op_age", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
986 .set_description(""),
988 Option("mon_osd_err_op_age_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
990 .set_description(""),
992 Option("mon_osd_max_split_count", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
994 .set_description(""),
996 Option("mon_osd_allow_primary_temp", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
998 .set_description(""),
1000 Option("mon_osd_allow_primary_affinity", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1002 .set_description(""),
1004 Option("mon_osd_prime_pg_temp", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1006 .set_description(""),
1008 Option("mon_osd_prime_pg_temp_max_time", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1010 .set_description(""),
1012 Option("mon_osd_prime_pg_temp_max_estimate", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1014 .set_description(""),
1016 Option("mon_osd_pool_ec_fast_read", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1018 .set_description(""),
1020 Option("mon_stat_smooth_intervals", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1024 .set_description("number of PGMaps stats over which we calc the average read/write throughput of the whole cluster"),
1026 Option("mon_election_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1028 .set_description(""),
1030 Option("mon_lease", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1032 .set_description(""),
1034 Option("mon_lease_renew_interval_factor", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1036 .set_description(""),
1038 Option("mon_lease_ack_timeout_factor", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1040 .set_description(""),
1042 Option("mon_accept_timeout_factor", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1044 .set_description(""),
1046 Option("mon_clock_drift_allowed", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1048 .set_description(""),
1050 Option("mon_clock_drift_warn_backoff", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1052 .set_description(""),
1054 Option("mon_timecheck_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1056 .set_description(""),
1058 Option("mon_timecheck_skew_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1060 .set_description(""),
1062 Option("mon_pg_stuck_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1064 .set_description("number of seconds after which pgs can be considered stuck inactive, unclean, etc")
1065 .set_long_description("see doc/control.rst under dump_stuck for more info")
1066 .add_service("mgr"),
1068 Option("mon_pg_min_inactive", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1070 .set_description(""),
1072 Option("mon_pg_warn_min_per_osd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1074 .set_description("minimal number PGs per (in) osd before we warn the admin"),
1076 Option("mon_max_pg_per_osd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1078 .set_description("Max number of PGs per OSD the cluster will allow"),
1080 Option("mon_pg_warn_max_object_skew", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1082 .set_description("max skew few average in objects per pg")
1083 .add_service("mgr"),
1085 Option("mon_pg_warn_min_objects", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1087 .set_description("do not warn below this object #")
1088 .add_service("mgr"),
1090 Option("mon_pg_warn_min_pool_objects", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1092 .set_description("do not warn on pools below this object #")
1093 .add_service("mgr"),
1095 Option("mon_pg_check_down_all_threshold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1097 .set_description("threshold of down osds after which we check all pgs")
1098 .add_service("mgr"),
1100 Option("mon_cache_target_full_warn_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1102 .set_description(""),
1104 Option("mon_osd_full_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1106 .set_description(""),
1108 Option("mon_osd_backfillfull_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1110 .set_description(""),
1112 Option("mon_osd_nearfull_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1114 .set_description(""),
1116 Option("mon_osd_initial_require_min_compat_client", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1117 .set_default("jewel")
1118 .set_description(""),
1120 Option("mon_allow_pool_delete", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1122 .set_description(""),
1124 Option("mon_fake_pool_delete", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1126 .set_description(""),
1128 Option("mon_globalid_prealloc", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1130 .set_description(""),
1132 Option("mon_osd_report_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1134 .set_description(""),
1136 Option("mon_force_standby_active", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1138 .set_description(""),
1140 Option("mon_warn_on_legacy_crush_tunables", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1142 .set_description(""),
1144 Option("mon_crush_min_required_version", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1145 .set_default("firefly")
1146 .set_description(""),
1148 Option("mon_warn_on_crush_straw_calc_version_zero", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1150 .set_description(""),
1152 Option("mon_warn_on_osd_down_out_interval_zero", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1154 .set_description(""),
1156 Option("mon_warn_on_cache_pools_without_hit_sets", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1158 .set_description(""),
1160 Option("mon_warn_on_pool_no_app", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1162 .set_description("Enable POOL_APP_NOT_ENABLED health check"),
1164 Option("mon_min_osdmap_epochs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1166 .set_description(""),
1168 Option("mon_max_pgmap_epochs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1170 .set_description(""),
1172 Option("mon_max_log_epochs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1174 .set_description(""),
1176 Option("mon_max_mdsmap_epochs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1178 .set_description(""),
1180 Option("mon_max_mgrmap_epochs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1182 .set_description(""),
1184 Option("mon_max_osd", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1186 .set_description(""),
1188 Option("mon_probe_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1190 .set_description(""),
1192 Option("mon_client_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1193 .set_default(100ul << 20)
1194 .set_description(""),
1196 Option("mon_mgr_proxy_client_bytes_ratio", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
1198 .set_description("ratio of mon_client_bytes that can be consumed by "
1199 "proxied mgr commands before we error out to client"),
1201 Option("mon_log_max_summary", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1203 .set_description(""),
1205 Option("mon_daemon_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1206 .set_default(400ul << 20)
1207 .set_description(""),
1209 Option("mon_max_log_entries_per_event", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1211 .set_description(""),
1213 Option("mon_reweight_min_pgs_per_osd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1215 .set_description(""),
1217 Option("mon_reweight_min_bytes_per_osd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1219 .set_description(""),
1221 Option("mon_reweight_max_osds", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1223 .set_description(""),
1225 Option("mon_reweight_max_change", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1227 .set_description(""),
1229 Option("mon_health_data_update_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1231 .set_description(""),
1233 Option("mon_health_to_clog", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1235 .set_description(""),
1237 Option("mon_health_to_clog_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1239 .set_description(""),
1241 Option("mon_health_to_clog_tick_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1243 .set_description(""),
1245 Option("mon_health_preluminous_compat", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1247 .set_description("Include health warnings in preluminous JSON fields"),
1249 Option("mon_health_preluminous_compat_warning", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1251 .set_description("Warn about the health JSON format change in preluminous JSON fields"),
1253 Option("mon_health_max_detail", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1255 .set_description("max detailed pgs to report in health detail"),
1257 Option("mon_health_log_update_period", Option::TYPE_INT
, Option::LEVEL_DEV
)
1259 .set_description("Minimum time in seconds between log messages about "
1260 "each health check")
1263 Option("mon_data_avail_crit", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1265 .set_description(""),
1267 Option("mon_data_avail_warn", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1269 .set_description(""),
1271 Option("mon_data_size_warn", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1273 .set_description(""),
1275 Option("mon_warn_not_scrubbed", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1277 .set_description(""),
1279 Option("mon_warn_not_deep_scrubbed", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1281 .set_description(""),
1283 Option("mon_scrub_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1285 .set_description(""),
1287 Option("mon_scrub_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1289 .set_description(""),
1291 Option("mon_scrub_max_keys", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1293 .set_description(""),
1295 Option("mon_scrub_inject_crc_mismatch", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
1297 .set_description(""),
1299 Option("mon_scrub_inject_missing_keys", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
1301 .set_description(""),
1303 Option("mon_config_key_max_entry_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1305 .set_description(""),
1307 Option("mon_sync_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1309 .set_description(""),
1311 Option("mon_sync_max_payload_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1313 .set_description(""),
1315 Option("mon_sync_debug", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1317 .set_description(""),
1319 Option("mon_inject_sync_get_chunk_delay", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
1321 .set_description(""),
1323 Option("mon_osd_min_down_reporters", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1325 .set_description(""),
1327 Option("mon_osd_reporter_subtree_level", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1328 .set_default("host")
1329 .set_description(""),
1331 Option("mon_osd_snap_trim_queue_warn_on", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1333 .set_description("Warn when snap trim queue is that large (or larger).")
1334 .set_long_description("Warn when snap trim queue length for at least one PG crosses this value, as this is indicator of snap trimmer not keeping up, wasting disk space"),
1336 Option("mon_osd_force_trim_to", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1338 .set_description(""),
1340 Option("mon_mds_force_trim_to", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1342 .set_description(""),
1344 Option("mon_mds_skip_sanity", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1346 .set_description(""),
1348 Option("mon_fixup_legacy_erasure_code_profiles", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1350 .set_description("Automatically adjust ruleset-* to crush-* so that legacy apps can set modern erasure code profiles without modification"),
1352 Option("mon_debug_deprecated_as_obsolete", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1354 .set_description(""),
1356 Option("mon_debug_dump_transactions", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1358 .set_description(""),
1360 Option("mon_debug_dump_json", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1362 .set_description(""),
1364 Option("mon_debug_dump_location", Option::TYPE_STR
, Option::LEVEL_DEV
)
1365 .set_default("/var/log/ceph/$cluster-$name.tdump")
1366 .set_description(""),
1368 Option("mon_debug_no_require_luminous", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1370 .set_description(""),
1372 Option("mon_debug_no_require_bluestore_for_ec_overwrites", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1374 .set_description(""),
1376 Option("mon_debug_no_initial_persistent_features", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1378 .set_description(""),
1380 Option("mon_inject_transaction_delay_max", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
1382 .set_description(""),
1384 Option("mon_inject_transaction_delay_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
1386 .set_description(""),
1388 Option("mon_sync_provider_kill_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
1390 .set_description(""),
1392 Option("mon_sync_requester_kill_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
1394 .set_description(""),
1396 Option("mon_force_quorum_join", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1398 .set_description(""),
1400 Option("mon_keyvaluedb", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1401 .set_default("rocksdb")
1402 .set_description(""),
1404 Option("mon_debug_unsafe_allow_tier_with_nonempty_snaps", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1406 .set_description(""),
1408 Option("mon_osd_blacklist_default_expire", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1410 .set_description("Duration in seconds that blacklist entries for clients "
1411 "remain in the OSD map"),
1413 Option("mon_mds_blacklist_interval", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
1416 .set_description("Duration in seconds that blacklist entries for MDS "
1417 "daemons remain in the OSD map"),
1419 Option("mon_osd_crush_smoke_test", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1421 .set_description(""),
1423 Option("paxos_stash_full_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1425 .set_description(""),
1427 Option("paxos_max_join_drift", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1429 .set_description(""),
1431 Option("paxos_propose_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1433 .set_description(""),
1435 Option("paxos_min_wait", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1437 .set_description(""),
1439 Option("paxos_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1441 .set_description(""),
1443 Option("paxos_trim_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1445 .set_description(""),
1447 Option("paxos_trim_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1449 .set_description(""),
1451 Option("paxos_service_trim_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1453 .set_description(""),
1455 Option("paxos_service_trim_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1457 .set_description(""),
1459 Option("paxos_kill_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
1461 .set_description(""),
1463 Option("auth_cluster_required", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1464 .set_default("cephx")
1465 .set_description(""),
1467 Option("auth_service_required", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1468 .set_default("cephx")
1469 .set_description(""),
1471 Option("auth_client_required", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1472 .set_default("cephx, none")
1473 .set_description(""),
1475 Option("auth_supported", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1477 .set_description(""),
1479 Option("max_rotating_auth_attempts", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1481 .set_description(""),
1483 Option("cephx_require_signatures", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1485 .set_description(""),
1487 Option("cephx_require_version", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1489 .set_description("Cephx version required (1 = pre-mimic, 2 = mimic+)"),
1491 Option("cephx_cluster_require_signatures", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1493 .set_description(""),
1495 Option("cephx_cluster_require_version", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1497 .set_description("Cephx version required by the cluster from clients (1 = pre-mimic, 2 = mimic+)"),
1499 Option("cephx_service_require_signatures", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1501 .set_description(""),
1503 Option("cephx_service_require_version", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1505 .set_description("Cephx version required from ceph services (1 = pre-mimic, 2 = mimic+)"),
1507 Option("cephx_sign_messages", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1509 .set_description(""),
1511 Option("auth_mon_ticket_ttl", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1513 .set_description(""),
1515 Option("auth_service_ticket_ttl", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1517 .set_description(""),
1519 Option("auth_debug", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1521 .set_description(""),
1523 Option("mon_client_hunt_parallel", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1525 .set_description(""),
1527 Option("mon_client_hunt_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1529 .set_description(""),
1531 Option("mon_client_ping_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1533 .set_description(""),
1535 Option("mon_client_ping_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1537 .set_description(""),
1539 Option("mon_client_hunt_interval_backoff", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1541 .set_description(""),
1543 Option("mon_client_hunt_interval_min_multiple", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1545 .set_description(""),
1547 Option("mon_client_hunt_interval_max_multiple", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1549 .set_description(""),
1551 Option("mon_client_max_log_entries_per_message", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1553 .set_description(""),
1555 Option("mon_max_pool_pg_num", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1557 .set_description(""),
1559 Option("mon_pool_quota_warn_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1561 .set_description("percent of quota at which to issue warnings")
1562 .add_service("mgr"),
1564 Option("mon_pool_quota_crit_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1566 .set_description("percent of quota at which to issue errors")
1567 .add_service("mgr"),
1569 Option("crush_location", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1571 .set_description(""),
1573 Option("crush_location_hook", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1575 .set_description(""),
1577 Option("crush_location_hook_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1579 .set_description(""),
1581 Option("objecter_tick_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1583 .set_description(""),
1585 Option("objecter_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1587 .set_description(""),
1589 Option("objecter_inflight_op_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1591 .set_description(""),
1593 Option("objecter_inflight_ops", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1595 .set_description(""),
1597 Option("objecter_completion_locks_per_session", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1599 .set_description(""),
1601 Option("objecter_inject_no_watch_ping", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1603 .set_description(""),
1605 Option("objecter_retry_writes_after_first_reply", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1607 .set_description(""),
1609 Option("objecter_debug_inject_relock_delay", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1611 .set_description(""),
1613 Option("filer_max_purge_ops", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1615 .set_description(""),
1617 Option("filer_max_truncate_ops", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1619 .set_description(""),
1621 Option("journaler_write_head_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1623 .set_description(""),
1625 Option("journaler_prefetch_periods", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1627 .set_description(""),
1629 Option("journaler_prezero_periods", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1631 .set_description(""),
1633 Option("osd_check_max_object_name_len_on_startup", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1635 .set_description(""),
1637 Option("osd_max_backfills", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1639 .set_description(""),
1641 Option("osd_min_recovery_priority", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1643 .set_description(""),
1645 Option("osd_backfill_retry_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1647 .set_description(""),
1649 Option("osd_recovery_retry_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1651 .set_description(""),
1653 Option("osd_agent_max_ops", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1655 .set_description(""),
1657 Option("osd_agent_max_low_ops", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1659 .set_description(""),
1661 Option("osd_agent_min_evict_effort", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1663 .set_description(""),
1665 Option("osd_agent_quantize_effort", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1667 .set_description(""),
1669 Option("osd_agent_delay_time", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1671 .set_description(""),
1673 Option("osd_find_best_info_ignore_history_les", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1675 .set_description(""),
1677 Option("osd_agent_hist_halflife", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1679 .set_description(""),
1681 Option("osd_agent_slop", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1683 .set_description(""),
1685 Option("osd_uuid", Option::TYPE_UUID
, Option::LEVEL_ADVANCED
)
1686 .set_default(uuid_d())
1687 .set_description(""),
1689 Option("osd_data", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1690 .set_default("/var/lib/ceph/osd/$cluster-$id")
1691 .set_description(""),
1693 Option("osd_journal", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1694 .set_default("/var/lib/ceph/osd/$cluster-$id/journal")
1695 .set_description(""),
1697 Option("osd_journal_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1699 .set_description(""),
1701 Option("osd_journal_flush_on_shutdown", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1703 .set_description(""),
1705 Option("osd_os_flags", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1707 .set_description(""),
1709 Option("osd_max_write_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1711 .set_description(""),
1713 Option("osd_max_pgls", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1715 .set_description(""),
1717 Option("osd_client_message_size_cap", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1719 .set_description(""),
1721 Option("osd_client_message_cap", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1723 .set_description(""),
1725 Option("osd_pg_bits", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1727 .set_description(""),
1729 Option("osd_pgp_bits", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1731 .set_description(""),
1733 Option("osd_crush_update_weight_set", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1735 .set_description(""),
1737 Option("osd_crush_chooseleaf_type", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1739 .set_description(""),
1741 Option("osd_pool_use_gmt_hitset", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1743 .set_description(""),
1745 Option("osd_crush_update_on_start", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1747 .set_description(""),
1749 Option("osd_class_update_on_start", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1751 .set_description(""),
1753 Option("osd_crush_initial_weight", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1755 .set_description(""),
1757 Option("osd_pool_default_crush_rule", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1759 .set_description(""),
1761 Option("osd_pool_erasure_code_stripe_unit", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1763 .set_description(""),
1765 Option("osd_pool_default_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1767 .set_description(""),
1769 Option("osd_pool_default_min_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1771 .set_description(""),
1773 Option("osd_pool_default_pg_num", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1775 .set_description(""),
1777 Option("osd_pool_default_pgp_num", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1779 .set_description(""),
1781 Option("osd_pool_default_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1782 .set_default("replicated")
1783 .set_description(""),
1785 Option("osd_pool_default_erasure_code_profile", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1786 .set_default("plugin=jerasure technique=reed_sol_van k=2 m=1")
1787 .set_description(""),
1789 Option("osd_erasure_code_plugins", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1790 .set_default("jerasure lrc"
1791 #ifdef HAVE_BETTER_YASM_ELF64
1795 .set_description(""),
1797 Option("osd_allow_recovery_below_min_size", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1799 .set_description(""),
1801 Option("osd_pool_default_flags", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1803 .set_description(""),
1805 Option("osd_pool_default_flag_hashpspool", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1807 .set_description(""),
1809 Option("osd_pool_default_flag_nodelete", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1811 .set_description(""),
1813 Option("osd_pool_default_flag_nopgchange", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1815 .set_description(""),
1817 Option("osd_pool_default_flag_nosizechange", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1819 .set_description(""),
1821 Option("osd_pool_default_hit_set_bloom_fpp", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1823 .set_description(""),
1825 Option("osd_pool_default_cache_target_dirty_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1827 .set_description(""),
1829 Option("osd_pool_default_cache_target_dirty_high_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1831 .set_description(""),
1833 Option("osd_pool_default_cache_target_full_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
1835 .set_description(""),
1837 Option("osd_pool_default_cache_min_flush_age", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1839 .set_description(""),
1841 Option("osd_pool_default_cache_min_evict_age", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1843 .set_description(""),
1845 Option("osd_pool_default_cache_max_evict_check_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1847 .set_description(""),
1849 Option("osd_hit_set_min_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1851 .set_description(""),
1853 Option("osd_hit_set_max_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1854 .set_default(100000)
1855 .set_description(""),
1857 Option("osd_hit_set_namespace", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1858 .set_default(".ceph-internal")
1859 .set_description(""),
1861 Option("osd_tier_promote_max_objects_sec", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1863 .set_description(""),
1865 Option("osd_tier_promote_max_bytes_sec", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1867 .set_description(""),
1869 Option("osd_tier_default_cache_mode", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1870 .set_default("writeback")
1871 .set_description(""),
1873 Option("osd_tier_default_cache_hit_set_count", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1875 .set_description(""),
1877 Option("osd_tier_default_cache_hit_set_period", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1879 .set_description(""),
1881 Option("osd_tier_default_cache_hit_set_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1882 .set_default("bloom")
1883 .set_description(""),
1885 Option("osd_tier_default_cache_min_read_recency_for_promote", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1887 .set_description(""),
1889 Option("osd_tier_default_cache_min_write_recency_for_promote", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1891 .set_description(""),
1893 Option("osd_tier_default_cache_hit_set_grade_decay_rate", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1895 .set_description(""),
1897 Option("osd_tier_default_cache_hit_set_search_last_n", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1899 .set_description(""),
1901 Option("osd_map_dedup", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1903 .set_description(""),
1905 Option("osd_map_max_advance", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1907 .set_description(""),
1909 Option("osd_map_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1911 .set_description(""),
1913 Option("osd_map_message_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1915 .set_description(""),
1917 Option("osd_map_share_max_epochs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1919 .set_description(""),
1921 Option("osd_inject_bad_map_crc_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
1923 .set_description(""),
1925 Option("osd_inject_failure_on_pg_removal", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1927 .set_description(""),
1929 Option("osd_max_markdown_period", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1931 .set_description(""),
1933 Option("osd_max_markdown_count", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1935 .set_description(""),
1937 Option("osd_peering_wq_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1939 .set_description(""),
1941 Option("osd_peering_wq_batch_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1943 .set_description(""),
1945 Option("osd_op_pq_max_tokens_per_priority", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1946 .set_default(4194304)
1947 .set_description(""),
1949 Option("osd_op_pq_min_cost", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
1951 .set_description(""),
1953 Option("osd_disk_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1955 .set_description(""),
1957 Option("osd_disk_thread_ioprio_class", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
1959 .set_description(""),
1961 Option("osd_disk_thread_ioprio_priority", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1963 .set_description(""),
1965 Option("osd_recover_clone_overlap", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1967 .set_description(""),
1969 Option("osd_op_num_threads_per_shard", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1971 .set_description(""),
1973 Option("osd_op_num_threads_per_shard_hdd", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1975 .set_description(""),
1977 Option("osd_op_num_threads_per_shard_ssd", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1979 .set_description(""),
1981 Option("osd_op_num_shards", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1983 .set_description(""),
1985 Option("osd_op_num_shards_hdd", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1987 .set_description(""),
1989 Option("osd_op_num_shards_ssd", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
1991 .set_description(""),
1993 Option("osd_skip_data_digest", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
1995 .set_description("Do not store full-object checksums if the backend (bluestore) does its own checksums. Do not ever turn this off if it has ever been turned on."),
1997 Option("osd_distrust_data_digest", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
1999 .set_description("Do not trust stored data_digest (due to previous bug or corruption)"),
2001 Option("osd_op_queue", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2003 .set_enum_allowed( { "wpq", "prioritized", "mclock_opclass", "mclock_client", "debug_random" } )
2004 .set_description("which operation queue algorithm to use")
2005 .set_long_description("which operation queue algorithm to use; mclock_opclass and mclock_client are currently experimental")
2006 .add_see_also("osd_op_queue_cut_off"),
2008 Option("osd_op_queue_cut_off", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2010 .set_enum_allowed( { "low", "high", "debug_random" } )
2011 .set_description("the threshold between high priority ops and low priority ops")
2012 .set_long_description("the threshold between high priority ops that use strict priority ordering and low priority ops that use a fairness algorithm that may or may not incorporate priority")
2013 .add_see_also("osd_op_queue"),
2015 Option("osd_op_queue_mclock_client_op_res", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2016 .set_default(1000.0)
2017 .set_description("mclock reservation of client operator requests")
2018 .set_long_description("mclock reservation of client operator requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the reservation")
2019 .add_see_also("osd_op_queue")
2020 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2021 .add_see_also("osd_op_queue_mclock_client_op_lim")
2022 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2023 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2024 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2025 .add_see_also("osd_op_queue_mclock_snap_res")
2026 .add_see_also("osd_op_queue_mclock_snap_wgt")
2027 .add_see_also("osd_op_queue_mclock_snap_lim")
2028 .add_see_also("osd_op_queue_mclock_recov_res")
2029 .add_see_also("osd_op_queue_mclock_recov_wgt")
2030 .add_see_also("osd_op_queue_mclock_recov_lim")
2031 .add_see_also("osd_op_queue_mclock_scrub_res")
2032 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2033 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2035 Option("osd_op_queue_mclock_client_op_wgt", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2037 .set_description("mclock weight of client operator requests")
2038 .set_long_description("mclock weight of client operator requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the weight")
2039 .add_see_also("osd_op_queue")
2040 .add_see_also("osd_op_queue_mclock_client_op_res")
2041 .add_see_also("osd_op_queue_mclock_client_op_lim")
2042 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2043 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2044 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2045 .add_see_also("osd_op_queue_mclock_snap_res")
2046 .add_see_also("osd_op_queue_mclock_snap_wgt")
2047 .add_see_also("osd_op_queue_mclock_snap_lim")
2048 .add_see_also("osd_op_queue_mclock_recov_res")
2049 .add_see_also("osd_op_queue_mclock_recov_wgt")
2050 .add_see_also("osd_op_queue_mclock_recov_lim")
2051 .add_see_also("osd_op_queue_mclock_scrub_res")
2052 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2053 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2055 Option("osd_op_queue_mclock_client_op_lim", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2057 .set_description("mclock limit of client operator requests")
2058 .set_long_description("mclock limit of client operator requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the limit")
2059 .add_see_also("osd_op_queue")
2060 .add_see_also("osd_op_queue_mclock_client_op_res")
2061 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2062 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2063 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2064 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2065 .add_see_also("osd_op_queue_mclock_snap_res")
2066 .add_see_also("osd_op_queue_mclock_snap_wgt")
2067 .add_see_also("osd_op_queue_mclock_snap_lim")
2068 .add_see_also("osd_op_queue_mclock_recov_res")
2069 .add_see_also("osd_op_queue_mclock_recov_wgt")
2070 .add_see_also("osd_op_queue_mclock_recov_lim")
2071 .add_see_also("osd_op_queue_mclock_scrub_res")
2072 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2073 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2075 Option("osd_op_queue_mclock_osd_subop_res", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2076 .set_default(1000.0)
2077 .set_description("mclock reservation of osd sub-operation requests")
2078 .set_long_description("mclock reservation of osd sub-operation requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the reservation")
2079 .add_see_also("osd_op_queue")
2080 .add_see_also("osd_op_queue_mclock_client_op_res")
2081 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2082 .add_see_also("osd_op_queue_mclock_client_op_lim")
2083 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2084 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2085 .add_see_also("osd_op_queue_mclock_snap_res")
2086 .add_see_also("osd_op_queue_mclock_snap_wgt")
2087 .add_see_also("osd_op_queue_mclock_snap_lim")
2088 .add_see_also("osd_op_queue_mclock_recov_res")
2089 .add_see_also("osd_op_queue_mclock_recov_wgt")
2090 .add_see_also("osd_op_queue_mclock_recov_lim")
2091 .add_see_also("osd_op_queue_mclock_scrub_res")
2092 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2093 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2095 Option("osd_op_queue_mclock_osd_subop_wgt", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2097 .set_description("mclock weight of osd sub-operation requests")
2098 .set_long_description("mclock weight of osd sub-operation requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the weight")
2099 .add_see_also("osd_op_queue")
2100 .add_see_also("osd_op_queue_mclock_client_op_res")
2101 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2102 .add_see_also("osd_op_queue_mclock_client_op_lim")
2103 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2104 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2105 .add_see_also("osd_op_queue_mclock_snap_res")
2106 .add_see_also("osd_op_queue_mclock_snap_wgt")
2107 .add_see_also("osd_op_queue_mclock_snap_lim")
2108 .add_see_also("osd_op_queue_mclock_recov_res")
2109 .add_see_also("osd_op_queue_mclock_recov_wgt")
2110 .add_see_also("osd_op_queue_mclock_recov_lim")
2111 .add_see_also("osd_op_queue_mclock_scrub_res")
2112 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2113 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2115 Option("osd_op_queue_mclock_osd_subop_lim", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2117 .set_description("mclock limit of osd sub-operation requests")
2118 .set_long_description("mclock limit of osd sub-operation requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the limit")
2119 .add_see_also("osd_op_queue")
2120 .add_see_also("osd_op_queue_mclock_client_op_res")
2121 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2122 .add_see_also("osd_op_queue_mclock_client_op_lim")
2123 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2124 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2125 .add_see_also("osd_op_queue_mclock_snap_res")
2126 .add_see_also("osd_op_queue_mclock_snap_wgt")
2127 .add_see_also("osd_op_queue_mclock_snap_lim")
2128 .add_see_also("osd_op_queue_mclock_recov_res")
2129 .add_see_also("osd_op_queue_mclock_recov_wgt")
2130 .add_see_also("osd_op_queue_mclock_recov_lim")
2131 .add_see_also("osd_op_queue_mclock_scrub_res")
2132 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2133 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2135 Option("osd_op_queue_mclock_snap_res", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2137 .set_description("mclock reservation of snaptrim requests")
2138 .set_long_description("mclock reservation of snaptrim requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the reservation")
2139 .add_see_also("osd_op_queue")
2140 .add_see_also("osd_op_queue_mclock_client_op_res")
2141 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2142 .add_see_also("osd_op_queue_mclock_client_op_lim")
2143 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2144 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2145 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2146 .add_see_also("osd_op_queue_mclock_snap_wgt")
2147 .add_see_also("osd_op_queue_mclock_snap_lim")
2148 .add_see_also("osd_op_queue_mclock_recov_res")
2149 .add_see_also("osd_op_queue_mclock_recov_wgt")
2150 .add_see_also("osd_op_queue_mclock_recov_lim")
2151 .add_see_also("osd_op_queue_mclock_scrub_res")
2152 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2153 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2155 Option("osd_op_queue_mclock_snap_wgt", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2157 .set_description("mclock weight of snaptrim requests")
2158 .set_long_description("mclock weight of snaptrim requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the weight")
2159 .add_see_also("osd_op_queue")
2160 .add_see_also("osd_op_queue_mclock_client_op_res")
2161 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2162 .add_see_also("osd_op_queue_mclock_client_op_lim")
2163 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2164 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2165 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2166 .add_see_also("osd_op_queue_mclock_snap_res")
2167 .add_see_also("osd_op_queue_mclock_snap_lim")
2168 .add_see_also("osd_op_queue_mclock_recov_res")
2169 .add_see_also("osd_op_queue_mclock_recov_wgt")
2170 .add_see_also("osd_op_queue_mclock_recov_lim")
2171 .add_see_also("osd_op_queue_mclock_scrub_res")
2172 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2173 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2175 Option("osd_op_queue_mclock_snap_lim", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2177 .set_description("")
2178 .set_description("mclock limit of snaptrim requests")
2179 .set_long_description("mclock limit of snaptrim requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the limit")
2180 .add_see_also("osd_op_queue_mclock_client_op_res")
2181 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2182 .add_see_also("osd_op_queue_mclock_client_op_lim")
2183 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2184 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2185 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2186 .add_see_also("osd_op_queue_mclock_snap_res")
2187 .add_see_also("osd_op_queue_mclock_snap_wgt")
2188 .add_see_also("osd_op_queue_mclock_recov_res")
2189 .add_see_also("osd_op_queue_mclock_recov_wgt")
2190 .add_see_also("osd_op_queue_mclock_recov_lim")
2191 .add_see_also("osd_op_queue_mclock_scrub_res")
2192 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2193 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2195 Option("osd_op_queue_mclock_recov_res", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2197 .set_description("mclock reservation of recovery requests")
2198 .set_long_description("mclock reservation of recovery requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the reservation")
2199 .add_see_also("osd_op_queue")
2200 .add_see_also("osd_op_queue_mclock_client_op_res")
2201 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2202 .add_see_also("osd_op_queue_mclock_client_op_lim")
2203 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2204 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2205 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2206 .add_see_also("osd_op_queue_mclock_snap_res")
2207 .add_see_also("osd_op_queue_mclock_snap_wgt")
2208 .add_see_also("osd_op_queue_mclock_snap_lim")
2209 .add_see_also("osd_op_queue_mclock_recov_wgt")
2210 .add_see_also("osd_op_queue_mclock_recov_lim")
2211 .add_see_also("osd_op_queue_mclock_scrub_res")
2212 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2213 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2215 Option("osd_op_queue_mclock_recov_wgt", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2217 .set_description("mclock weight of recovery requests")
2218 .set_long_description("mclock weight of recovery requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the weight")
2219 .add_see_also("osd_op_queue")
2220 .add_see_also("osd_op_queue_mclock_client_op_res")
2221 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2222 .add_see_also("osd_op_queue_mclock_client_op_lim")
2223 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2224 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2225 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2226 .add_see_also("osd_op_queue_mclock_snap_res")
2227 .add_see_also("osd_op_queue_mclock_snap_wgt")
2228 .add_see_also("osd_op_queue_mclock_snap_lim")
2229 .add_see_also("osd_op_queue_mclock_recov_res")
2230 .add_see_also("osd_op_queue_mclock_recov_lim")
2231 .add_see_also("osd_op_queue_mclock_scrub_res")
2232 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2233 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2235 Option("osd_op_queue_mclock_recov_lim", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2237 .set_description("mclock limit of recovery requests")
2238 .set_long_description("mclock limit of recovery requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the limit")
2239 .add_see_also("osd_op_queue")
2240 .add_see_also("osd_op_queue_mclock_client_op_res")
2241 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2242 .add_see_also("osd_op_queue_mclock_client_op_lim")
2243 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2244 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2245 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2246 .add_see_also("osd_op_queue_mclock_snap_res")
2247 .add_see_also("osd_op_queue_mclock_snap_wgt")
2248 .add_see_also("osd_op_queue_mclock_snap_lim")
2249 .add_see_also("osd_op_queue_mclock_recov_res")
2250 .add_see_also("osd_op_queue_mclock_recov_wgt")
2251 .add_see_also("osd_op_queue_mclock_scrub_res")
2252 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2253 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2255 Option("osd_op_queue_mclock_scrub_res", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2257 .set_description("mclock reservation of scrub requests")
2258 .set_long_description("mclock reservation of scrub requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the reservation")
2259 .add_see_also("osd_op_queue")
2260 .add_see_also("osd_op_queue_mclock_client_op_res")
2261 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2262 .add_see_also("osd_op_queue_mclock_client_op_lim")
2263 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2264 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2265 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2266 .add_see_also("osd_op_queue_mclock_snap_res")
2267 .add_see_also("osd_op_queue_mclock_snap_wgt")
2268 .add_see_also("osd_op_queue_mclock_snap_lim")
2269 .add_see_also("osd_op_queue_mclock_recov_res")
2270 .add_see_also("osd_op_queue_mclock_recov_wgt")
2271 .add_see_also("osd_op_queue_mclock_recov_lim")
2272 .add_see_also("osd_op_queue_mclock_scrub_wgt")
2273 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2275 Option("osd_op_queue_mclock_scrub_wgt", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2277 .set_description("mclock weight of scrub requests")
2278 .set_long_description("mclock weight of scrub requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the weight")
2279 .add_see_also("osd_op_queue")
2280 .add_see_also("osd_op_queue_mclock_client_op_res")
2281 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2282 .add_see_also("osd_op_queue_mclock_client_op_lim")
2283 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2284 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2285 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2286 .add_see_also("osd_op_queue_mclock_snap_res")
2287 .add_see_also("osd_op_queue_mclock_snap_wgt")
2288 .add_see_also("osd_op_queue_mclock_snap_lim")
2289 .add_see_also("osd_op_queue_mclock_recov_res")
2290 .add_see_also("osd_op_queue_mclock_recov_wgt")
2291 .add_see_also("osd_op_queue_mclock_recov_lim")
2292 .add_see_also("osd_op_queue_mclock_scrub_res")
2293 .add_see_also("osd_op_queue_mclock_scrub_lim"),
2295 Option("osd_op_queue_mclock_scrub_lim", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2297 .set_description("mclock weight of limit requests")
2298 .set_long_description("mclock weight of limit requests when osd_op_queue is either 'mclock_opclass' or 'mclock_client'; higher values increase the limit")
2299 .add_see_also("osd_op_queue")
2300 .add_see_also("osd_op_queue_mclock_client_op_res")
2301 .add_see_also("osd_op_queue_mclock_client_op_wgt")
2302 .add_see_also("osd_op_queue_mclock_client_op_lim")
2303 .add_see_also("osd_op_queue_mclock_osd_subop_res")
2304 .add_see_also("osd_op_queue_mclock_osd_subop_wgt")
2305 .add_see_also("osd_op_queue_mclock_osd_subop_lim")
2306 .add_see_also("osd_op_queue_mclock_snap_res")
2307 .add_see_also("osd_op_queue_mclock_snap_wgt")
2308 .add_see_also("osd_op_queue_mclock_snap_lim")
2309 .add_see_also("osd_op_queue_mclock_recov_res")
2310 .add_see_also("osd_op_queue_mclock_recov_wgt")
2311 .add_see_also("osd_op_queue_mclock_recov_lim")
2312 .add_see_also("osd_op_queue_mclock_scrub_res")
2313 .add_see_also("osd_op_queue_mclock_scrub_wgt"),
2315 Option("osd_ignore_stale_divergent_priors", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2317 .set_description(""),
2319 Option("osd_read_ec_check_for_errors", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2321 .set_description(""),
2323 Option("osd_recover_clone_overlap_limit", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2325 .set_description(""),
2327 Option("osd_backfill_scan_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2329 .set_description(""),
2331 Option("osd_backfill_scan_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2333 .set_description(""),
2335 Option("osd_op_thread_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2337 .set_description(""),
2339 Option("osd_op_thread_suicide_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2341 .set_description(""),
2343 Option("osd_recovery_thread_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2345 .set_description(""),
2347 Option("osd_recovery_thread_suicide_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2349 .set_description(""),
2351 Option("osd_recovery_sleep", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2353 .set_description("Time in seconds to sleep before next recovery or backfill op"),
2355 Option("osd_recovery_sleep_hdd", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2357 .set_description("Time in seconds to sleep before next recovery or backfill op for HDDs"),
2359 Option("osd_recovery_sleep_ssd", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2361 .set_description("Time in seconds to sleep before next recovery or backfill op for SSDs"),
2363 Option("osd_recovery_sleep_hybrid", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2365 .set_description("Time in seconds to sleep before next recovery or backfill op when data is on HDD and journal is on SSD"),
2367 Option("osd_snap_trim_sleep", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2369 .set_description(""),
2371 Option("osd_scrub_invalid_stats", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2373 .set_description(""),
2375 Option("osd_remove_thread_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2377 .set_description(""),
2379 Option("osd_remove_thread_suicide_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2381 .set_description(""),
2383 Option("osd_command_thread_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2384 .set_default(10_min
)
2385 .set_description(""),
2387 Option("osd_command_thread_suicide_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2388 .set_default(15_min
)
2389 .set_description(""),
2391 Option("osd_heartbeat_addr", Option::TYPE_ADDR
, Option::LEVEL_ADVANCED
)
2392 .set_default(entity_addr_t())
2393 .set_description(""),
2395 Option("osd_heartbeat_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2397 .set_description(""),
2399 Option("osd_heartbeat_grace", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2401 .set_description(""),
2403 Option("osd_heartbeat_min_peers", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2405 .set_description(""),
2407 Option("osd_heartbeat_use_min_delay_socket", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2409 .set_description(""),
2411 Option("osd_heartbeat_min_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2413 .set_description(""),
2415 Option("osd_pg_max_concurrent_snap_trims", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2417 .set_description(""),
2419 Option("osd_max_trimming_pgs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2421 .set_description(""),
2423 Option("osd_heartbeat_min_healthy_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2425 .set_description(""),
2427 Option("osd_mon_heartbeat_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2429 .set_description(""),
2431 Option("osd_mon_report_interval_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2433 .set_description(""),
2435 Option("osd_mon_report_interval_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2437 .set_description(""),
2439 Option("osd_mon_report_max_in_flight", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2441 .set_description(""),
2443 Option("osd_beacon_report_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2445 .set_description(""),
2447 Option("osd_pg_stat_report_interval_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2449 .set_description(""),
2451 Option("osd_mon_ack_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2453 .set_description(""),
2455 Option("osd_stats_ack_timeout_factor", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2457 .set_description(""),
2459 Option("osd_stats_ack_timeout_decay", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2461 .set_description(""),
2463 Option("osd_default_data_pool_replay_window", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2465 .set_description(""),
2467 Option("osd_auto_mark_unfound_lost", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2469 .set_description(""),
2471 Option("osd_recovery_delay_start", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2473 .set_description(""),
2475 Option("osd_recovery_max_active", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2477 .set_description(""),
2479 Option("osd_recovery_max_single_start", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2481 .set_description(""),
2483 Option("osd_recovery_max_chunk", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2485 .set_description(""),
2487 Option("osd_recovery_max_omap_entries_per_chunk", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2489 .set_description(""),
2491 Option("osd_copyfrom_max_chunk", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2493 .set_description(""),
2495 Option("osd_push_per_object_cost", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2497 .set_description(""),
2499 Option("osd_max_push_cost", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2501 .set_description(""),
2503 Option("osd_max_push_objects", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2505 .set_description(""),
2507 Option("osd_recovery_forget_lost_objects", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2509 .set_description(""),
2511 Option("osd_max_scrubs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2513 .set_description("Maximum concurrent scrubs on a single OSD"),
2515 Option("osd_scrub_during_recovery", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2517 .set_description("Allow scrubbing when PGs on the OSD are undergoing recovery"),
2519 Option("osd_scrub_begin_hour", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2521 .set_description("Restrict scrubbing to this hour of the day or later")
2522 .add_see_also("osd_scrub_end_hour"),
2524 Option("osd_scrub_end_hour", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2526 .set_description("Restrict scrubbing to hours of the day earlier than this")
2527 .add_see_also("osd_scrub_begin_hour"),
2529 Option("osd_scrub_begin_week_day", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2531 .set_description("Restrict scrubbing to this day of the week or later")
2532 .set_long_description("0 or 7 = Sunday, 1 = Monday, etc.")
2533 .add_see_also("osd_scrub_end_week_day"),
2535 Option("osd_scrub_end_week_day", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2537 .set_description("Restrict scrubbing to days of the week earlier than this")
2538 .set_long_description("0 or 7 = Sunday, 1 = Monday, etc.")
2539 .add_see_also("osd_scrub_begin_week_day"),
2541 Option("osd_scrub_load_threshold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2543 .set_description("Allow scrubbing when system load divided by number of CPUs is below this value"),
2545 Option("osd_scrub_min_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2547 .set_description("Scrub each PG no more often than this interval")
2548 .add_see_also("osd_scrub_max_interval"),
2550 Option("osd_scrub_max_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2552 .set_description("Scrub each PG no less often than this interval")
2553 .add_see_also("osd_scrub_min_interval"),
2555 Option("osd_scrub_interval_randomize_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2557 .set_description("Ratio of scrub interval to randomly vary")
2558 .set_long_description("This prevents a scrub 'stampede' by randomly varying the scrub intervals so that they are soon uniformly distributed over the week")
2559 .add_see_also("osd_scrub_min_interval"),
2561 Option("osd_scrub_backoff_ratio", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
2563 .set_description("Backoff ratio after a failed scrub scheduling attempt"),
2565 Option("osd_scrub_chunk_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2567 .set_description("Minimum number of objects to scrub in a single chunk")
2568 .add_see_also("osd_scrub_chunk_max"),
2570 Option("osd_scrub_chunk_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2572 .set_description("Maximum number of object to scrub in a single chunk")
2573 .add_see_also("osd_scrub_chunk_min"),
2575 Option("osd_scrub_sleep", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2577 .set_description("Duration to inject a delay during scrubbing"),
2579 Option("osd_scrub_auto_repair", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2581 .set_description("Automatically repair damaged objects detected during scrub"),
2583 Option("osd_scrub_auto_repair_num_errors", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2585 .set_description("Maximum number of detected errors to automatically repair")
2586 .add_see_also("osd_scrub_auto_repair"),
2588 Option("osd_scrub_max_preemptions", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2590 .set_description("Set the maximum number of times we will preempt a deep scrub due to a client operation before blocking client IO to complete the scrub"),
2592 Option("osd_deep_scrub_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2594 .set_description("Deep scrub each PG (i.e., verify data checksums) at least this often"),
2596 Option("osd_deep_scrub_randomize_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2598 .set_description("Ratio of deep scrub interval to randomly vary")
2599 .set_long_description("This prevents a deep scrub 'stampede' by randomly varying the scrub intervals so that they are soon uniformly distributed over the week")
2600 .add_see_also("osd_deep_scrub_interval"),
2602 Option("osd_deep_scrub_stride", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2603 .set_default(524288)
2604 .set_description("Number of bytes to read from an object at a time during deep scrub"),
2606 Option("osd_deep_scrub_keys", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2608 .set_description("Number of keys to read from an object at a time during deep scrub"),
2610 Option("osd_deep_scrub_update_digest_min_age", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2612 .set_description("Update overall object digest only if object was last modified longer ago than this"),
2614 Option("osd_deep_scrub_large_omap_object_key_threshold", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2615 .set_default(2000000)
2616 .set_description("Warn when we encounter an object with more omap keys than this")
2618 .add_see_also("osd_deep_scrub_large_omap_object_value_sum_threshold"),
2620 Option("osd_deep_scrub_large_omap_object_value_sum_threshold", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2622 .set_description("Warn when we encounter an object with more omap key bytes than this")
2624 .add_see_also("osd_deep_scrub_large_omap_object_key_threshold"),
2626 Option("osd_class_dir", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2627 .set_default(CEPH_LIBDIR
"/rados-classes")
2628 .set_description(""),
2630 Option("osd_open_classes_on_start", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2632 .set_description(""),
2634 Option("osd_class_load_list", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2635 .set_default("cephfs hello journal lock log numops " "rbd refcount replica_log rgw statelog timeindex user version")
2636 .set_description(""),
2638 Option("osd_class_default_list", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2639 .set_default("cephfs hello journal lock log numops " "rbd refcount replica_log rgw statelog timeindex user version")
2640 .set_description(""),
2642 Option("osd_check_for_log_corruption", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2644 .set_description(""),
2646 Option("osd_use_stale_snap", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2648 .set_description(""),
2650 Option("osd_rollback_to_cluster_snap", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2652 .set_description(""),
2654 Option("osd_default_notify_timeout", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2656 .set_description(""),
2658 Option("osd_kill_backfill_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
2660 .set_description(""),
2662 Option("osd_pg_epoch_persisted_max_stale", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2664 .set_description(""),
2666 Option("osd_min_pg_log_entries", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2668 .set_description("minimum number of entries to maintain in the PG log")
2670 .add_see_also("osd_max_pg_log_entries")
2671 .add_see_also("osd_pg_log_dups_tracked"),
2673 Option("osd_max_pg_log_entries", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2675 .set_description("maximum number of entries to maintain in the PG log when degraded before we trim")
2677 .add_see_also("osd_min_pg_log_entries")
2678 .add_see_also("osd_pg_log_dups_tracked"),
2680 Option("osd_pg_log_dups_tracked", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2682 .set_description("how many versions back to track in order to detect duplicate ops; this is combined with both the regular pg log entries and additional minimal dup detection entries")
2684 .add_see_also("osd_min_pg_log_entries")
2685 .add_see_also("osd_max_pg_log_entries"),
2687 Option("osd_force_recovery_pg_log_entries_factor", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2689 .set_description(""),
2691 Option("osd_pg_log_trim_min", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2693 .set_description(""),
2695 Option("osd_max_pg_per_osd_hard_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2698 .set_description("Maximum number of PG per OSD, a factor of 'mon_max_pg_per_osd'")
2699 .set_long_description("OSD will refuse to instantiate PG if the number of PG it serves exceeds this number.")
2700 .add_see_also("mon_max_pg_per_osd"),
2702 Option("osd_pg_log_trim_max", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2704 .set_description("maximum number of entries to remove at once from the PG log")
2706 .add_see_also("osd_min_pg_log_entries")
2707 .add_see_also("osd_max_pg_log_entries"),
2709 Option("osd_op_complaint_time", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2711 .set_description(""),
2713 Option("osd_command_max_records", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2715 .set_description(""),
2717 Option("osd_max_pg_blocked_by", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2719 .set_description(""),
2721 Option("osd_op_log_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2723 .set_description(""),
2725 Option("osd_verify_sparse_read_holes", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2727 .set_description(""),
2729 Option("osd_backoff_on_unfound", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2731 .set_description(""),
2733 Option("osd_backoff_on_degraded", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2735 .set_description(""),
2737 Option("osd_backoff_on_down", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2739 .set_description(""),
2741 Option("osd_backoff_on_peering", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2743 .set_description(""),
2745 Option("osd_debug_shutdown", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2747 .set_description("Turn up debug levels during shutdown"),
2749 Option("osd_debug_crash_on_ignored_backoff", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2751 .set_description(""),
2753 Option("osd_debug_inject_dispatch_delay_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
2755 .set_description(""),
2757 Option("osd_debug_inject_dispatch_delay_duration", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
2759 .set_description(""),
2761 Option("osd_debug_drop_ping_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
2763 .set_description(""),
2765 Option("osd_debug_drop_ping_duration", Option::TYPE_INT
, Option::LEVEL_DEV
)
2767 .set_description(""),
2769 Option("osd_debug_op_order", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2771 .set_description(""),
2773 Option("osd_debug_verify_missing_on_start", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2775 .set_description(""),
2777 Option("osd_debug_verify_snaps", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2779 .set_description(""),
2781 Option("osd_debug_verify_stray_on_activate", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2783 .set_description(""),
2785 Option("osd_debug_skip_full_check_in_backfill_reservation", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2787 .set_description(""),
2789 Option("osd_debug_reject_backfill_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
2791 .set_description(""),
2793 Option("osd_debug_inject_copyfrom_error", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2795 .set_description(""),
2797 Option("osd_debug_misdirected_ops", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2799 .set_description(""),
2801 Option("osd_debug_skip_full_check_in_recovery", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2803 .set_description(""),
2805 Option("osd_debug_random_push_read_error", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
2807 .set_description(""),
2809 Option("osd_debug_verify_cached_snaps", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2811 .set_description(""),
2813 Option("osd_debug_deep_scrub_sleep", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
2815 .set_description("Inject an expensive sleep during deep scrub IO to make it easier to induce preemption"),
2817 Option("osd_enable_op_tracker", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2819 .set_description(""),
2821 Option("osd_num_op_tracker_shard", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2823 .set_description(""),
2825 Option("osd_op_history_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2827 .set_description(""),
2829 Option("osd_op_history_duration", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2831 .set_description(""),
2833 Option("osd_op_history_slow_op_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2835 .set_description(""),
2837 Option("osd_op_history_slow_op_threshold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2839 .set_description(""),
2841 Option("osd_target_transaction_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2843 .set_description(""),
2845 Option("osd_failsafe_full_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2847 .set_description(""),
2849 Option("osd_fast_fail_on_connection_refused", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2851 .set_description(""),
2853 Option("osd_pg_object_context_cache_count", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2855 .set_description(""),
2857 Option("osd_tracing", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2859 .set_description(""),
2861 Option("osd_function_tracing", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2863 .set_description(""),
2865 Option("osd_fast_info", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2867 .set_description(""),
2869 Option("osd_debug_pg_log_writeout", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
2871 .set_description(""),
2873 Option("osd_loop_before_reset_tphandle", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2875 .set_description(""),
2877 Option("threadpool_default_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2879 .set_description(""),
2881 Option("threadpool_empty_queue_max_wait", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2883 .set_description(""),
2885 Option("leveldb_log_to_ceph_log", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2887 .set_description(""),
2889 Option("leveldb_write_buffer_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2891 .set_description(""),
2893 Option("leveldb_cache_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2895 .set_description(""),
2897 Option("leveldb_block_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2899 .set_description(""),
2901 Option("leveldb_bloom_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2903 .set_description(""),
2905 Option("leveldb_max_open_files", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2907 .set_description(""),
2909 Option("leveldb_compression", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2911 .set_description(""),
2913 Option("leveldb_paranoid", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2915 .set_description(""),
2917 Option("leveldb_log", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2918 .set_default("/dev/null")
2919 .set_description(""),
2921 Option("leveldb_compact_on_mount", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2923 .set_description(""),
2925 Option("kinetic_host", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2927 .set_description(""),
2929 Option("kinetic_port", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2931 .set_description(""),
2933 Option("kinetic_user_id", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2935 .set_description(""),
2937 Option("kinetic_hmac_key", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2938 .set_default("asdfasdf")
2939 .set_description(""),
2941 Option("kinetic_use_ssl", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2943 .set_description(""),
2945 Option("rocksdb_separate_wal_dir", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2947 .set_description(""),
2949 Option("rocksdb_db_paths", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2951 .set_description("")
2954 Option("rocksdb_log_to_ceph_log", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2956 .set_description(""),
2958 Option("rocksdb_cache_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
2960 .set_description(""),
2962 Option("rocksdb_cache_row_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
2964 .set_description(""),
2966 Option("rocksdb_cache_shard_bits", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2968 .set_description(""),
2970 Option("rocksdb_cache_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
2971 .set_default("binned_lru")
2972 .set_description(""),
2974 Option("rocksdb_block_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
2976 .set_description(""),
2978 Option("rocksdb_perf", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2980 .set_description(""),
2982 Option("rocksdb_collect_compaction_stats", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2984 .set_description(""),
2986 Option("rocksdb_collect_extended_stats", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2988 .set_description(""),
2990 Option("rocksdb_collect_memory_stats", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2992 .set_description(""),
2994 Option("rocksdb_enable_rmrange", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
2996 .set_description(""),
2998 Option("rocksdb_bloom_bits_per_key", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3000 .set_description("Number of bits per key to use for RocksDB's bloom filters.")
3001 .set_long_description("RocksDB bloom filters can be used to quickly answer the question of whether or not a key may exist or definitely does not exist in a given RocksDB SST file without having to read all keys into memory. Using a higher bit value decreases the likelihood of false positives at the expense of additional disk space and memory consumption when the filter is loaded into RAM. The current default value of 20 was found to provide significant performance gains when getattr calls are made (such as during new object creation in bluestore) without significant memory overhead or cache pollution when combined with rocksdb partitioned index filters. See: https://github.com/facebook/rocksdb/wiki/Partitioned-Index-Filters for more information."),
3003 Option("rocksdb_cache_index_and_filter_blocks", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3005 .set_description("Whether to cache indices and filters in block cache")
3006 .set_long_description("By default RocksDB will load an SST file's index and bloom filters into memory when it is opened and remove them from memory when an SST file is closed. Thus, memory consumption by indices and bloom filters is directly tied to the number of concurrent SST files allowed to be kept open. This option instead stores cached indicies and filters in the block cache where they directly compete with other cached data. By default we set this option to true to better account for and bound rocksdb memory usage and keep filters in memory even when an SST file is closed."),
3008 Option("rocksdb_cache_index_and_filter_blocks_with_high_priority", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3010 .set_description("Whether to cache indices and filters in the block cache with high priority")
3011 .set_long_description("A downside of setting rocksdb_cache_index_and_filter_blocks to true is that regular data can push indices and filters out of memory. Setting this option to true means they are cached with higher priority than other data and should typically stay in the block cache."),
3013 Option("rocksdb_pin_l0_filter_and_index_blocks_in_cache", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3015 .set_description("Whether to pin Level 0 indices and bloom filters in the block cache")
3016 .set_long_description("A downside of setting rocksdb_cache_index_and_filter_blocks to true is that regular data can push indices and filters out of memory. Setting this option to true means that level 0 SST files will always have their indices and filters pinned in the block cache."),
3018 Option("rocksdb_index_type", Option::TYPE_STR
, Option::LEVEL_DEV
)
3019 .set_default("binary_search")
3020 .set_description("Type of index for SST files: binary_search, hash_search, two_level")
3021 .set_long_description("This option controls the table index type. binary_search is a space efficient index block that is optimized for block-search-based index. hash_search may improve prefix lookup performance at the expense of higher disk and memory usage and potentially slower compactions. two_level is an experimental index type that uses two binary search indexes and works in conjunction with partition filters. See: http://rocksdb.org/blog/2017/05/12/partitioned-index-filter.html"),
3023 Option("rocksdb_partition_filters", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3025 .set_description("(experimental) partition SST index/filters into smaller blocks")
3026 .set_long_description("This is an experimental option for rocksdb that works in conjunction with two_level indices to avoid having to keep the entire filter/index in cache when cache_index_and_filter_blocks is true. The idea is to keep a much smaller top-level index in heap/cache and then opportunistically cache the lower level indices. See: https://github.com/facebook/rocksdb/wiki/Partitioned-Index-Filters"),
3028 Option("rocksdb_metadata_block_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3030 .set_description("The block size for index partitions. (0 = rocksdb default)"),
3032 Option("mon_rocksdb_options", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3033 .set_default("write_buffer_size=33554432,"
3034 "compression=kNoCompression,"
3035 "level_compaction_dynamic_level_bytes=true")
3036 .set_description(""),
3038 Option("osd_client_op_priority", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3040 .set_description(""),
3042 Option("osd_recovery_op_priority", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3044 .set_description(""),
3046 Option("osd_snap_trim_priority", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3048 .set_description(""),
3050 Option("osd_snap_trim_cost", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3052 .set_description(""),
3054 Option("osd_scrub_priority", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3056 .set_description("Priority for scrub operations in work queue"),
3058 Option("osd_scrub_cost", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3059 .set_default(50<<20)
3060 .set_description("Cost for scrub operations in work queue"),
3062 Option("osd_requested_scrub_priority", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3064 .set_description(""),
3066 Option("osd_recovery_priority", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3068 .set_description(""),
3070 Option("osd_recovery_cost", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3071 .set_default(20<<20)
3072 .set_description(""),
3074 Option("osd_recovery_op_warn_multiple", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3076 .set_description(""),
3078 Option("osd_mon_shutdown_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3080 .set_description(""),
3082 Option("osd_shutdown_pgref_assert", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3084 .set_description(""),
3086 Option("osd_max_object_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3088 .set_description(""),
3090 Option("osd_max_object_name_len", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3092 .set_description(""),
3094 Option("osd_max_object_namespace_len", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3096 .set_description(""),
3098 Option("osd_max_attr_name_len", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3100 .set_description(""),
3102 Option("osd_max_attr_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3104 .set_description(""),
3106 Option("osd_max_omap_entries_per_request", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3107 .set_default(131072)
3108 .set_description(""),
3110 Option("osd_max_omap_bytes_per_request", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3112 .set_description(""),
3114 Option("osd_objectstore", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3115 .set_default("filestore")
3116 .set_description(""),
3118 Option("osd_objectstore_tracing", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3120 .set_description(""),
3122 Option("osd_objectstore_fuse", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3124 .set_description(""),
3126 Option("osd_bench_small_size_max_iops", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3128 .set_description(""),
3130 Option("osd_bench_large_size_max_throughput", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3131 .set_default(100 << 20)
3132 .set_description(""),
3134 Option("osd_bench_max_block_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3135 .set_default(64 << 20)
3136 .set_description(""),
3138 Option("osd_bench_duration", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3140 .set_description(""),
3142 Option("osd_blkin_trace_all", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3144 .set_description(""),
3146 Option("osdc_blkin_trace_all", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3148 .set_description(""),
3150 Option("osd_discard_disconnected_ops", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3152 .set_description(""),
3155 Option("osd_memory_target", Option::TYPE_UINT
, Option::LEVEL_BASIC
)
3157 .add_see_also("bluestore_cache_autotune")
3158 .set_description("When tcmalloc and cache autotuning is enabled, try to keep this many bytes mapped in memory."),
3160 Option("osd_memory_base", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3162 .add_see_also("bluestore_cache_autotune")
3163 .set_description("When tcmalloc and cache autotuning is enabled, estimate the minimum amount of memory in bytes the OSD will need."),
3165 Option("osd_memory_expected_fragmentation", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3167 .add_see_also("bluestore_cache_autotune")
3168 .set_description("When tcmalloc and cache autotuning is enabled, estimate the percent of memory fragmentation."),
3170 Option("osd_memory_cache_min", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3172 .add_see_also("bluestore_cache_autotune")
3173 .set_description("When tcmalloc and cache autotuning is enabled, set the minimum amount of memory used for caches."),
3175 Option("osd_memory_cache_resize_interval", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3177 .add_see_also("bluestore_cache_autotune")
3178 .set_description("When tcmalloc and cache autotuning is enabled, wait this many seconds between resizing caches."),
3180 Option("memstore_device_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3182 .set_description(""),
3184 Option("memstore_page_set", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3186 .set_description(""),
3188 Option("memstore_page_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3190 .set_description(""),
3192 Option("objectstore_blackhole", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3194 .set_description(""),
3196 // --------------------------
3199 Option("bdev_inject_bad_size", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3201 .set_description(""),
3203 Option("bdev_debug_inflight_ios", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3205 .set_description(""),
3207 Option("bdev_inject_crash", Option::TYPE_INT
, Option::LEVEL_DEV
)
3209 .set_description(""),
3211 Option("bdev_inject_crash_flush_delay", Option::TYPE_INT
, Option::LEVEL_DEV
)
3213 .set_description(""),
3215 Option("bdev_aio", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3217 .set_description(""),
3219 Option("bdev_aio_poll_ms", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
3221 .set_description(""),
3223 Option("bdev_aio_max_queue_depth", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
3225 .set_description(""),
3227 Option("bdev_aio_reap_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
3229 .set_description(""),
3231 Option("bdev_block_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
3233 .set_description(""),
3235 Option("bdev_debug_aio", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3237 .set_description(""),
3239 Option("bdev_debug_aio_suicide_timeout", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3241 .set_description(""),
3243 Option("bdev_nvme_unbind_from_kernel", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3245 .set_description(""),
3247 Option("bdev_nvme_retry_count", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
3249 .set_description(""),
3251 Option("bluefs_alloc_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3253 .set_description(""),
3255 Option("bluefs_max_prefetch", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3257 .set_description(""),
3259 Option("bluefs_min_log_runway", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3261 .set_description(""),
3263 Option("bluefs_max_log_runway", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3264 .set_default(4194304)
3265 .set_description(""),
3267 Option("bluefs_log_compact_min_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3269 .set_description(""),
3271 Option("bluefs_log_compact_min_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3273 .set_description(""),
3275 Option("bluefs_min_flush_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3277 .set_description(""),
3279 Option("bluefs_compact_log_sync", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3281 .set_description(""),
3283 Option("bluefs_buffered_io", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3285 .set_description(""),
3287 Option("bluefs_sync_write", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3289 .set_description(""),
3291 Option("bluefs_allocator", Option::TYPE_STR
, Option::LEVEL_DEV
)
3292 .set_default("stupid")
3293 .set_description(""),
3295 Option("bluefs_preextend_wal_files", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3297 .set_description(""),
3299 Option("bluestore_bluefs", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3302 .set_description("Use BlueFS to back rocksdb")
3303 .set_long_description("BlueFS allows rocksdb to share the same physical device(s) as the rest of BlueStore. It should be used in all cases unless testing/developing an alternative metadata database for BlueStore."),
3305 Option("bluestore_bluefs_env_mirror", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3308 .set_description("Mirror bluefs data to file system for testing/validation"),
3310 Option("bluestore_bluefs_min", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3312 .set_description("minimum disk space allocated to BlueFS (e.g., at mkfs)"),
3314 Option("bluestore_bluefs_min_free", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3315 .set_default(1*1024*1024*1024)
3316 .set_description("minimum free space allocated to BlueFS"),
3318 Option("bluestore_bluefs_min_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3320 .set_description("Minimum fraction of free space devoted to BlueFS"),
3322 Option("bluestore_bluefs_max_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3324 .set_description("Maximum fraction of free storage devoted to BlueFS"),
3326 Option("bluestore_bluefs_gift_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3328 .set_description("Maximum fraction of free space to give to BlueFS at once"),
3330 Option("bluestore_bluefs_reclaim_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3332 .set_description("Maximum fraction of free space to reclaim from BlueFS at once"),
3334 Option("bluestore_bluefs_balance_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3336 .set_description("How frequently (in seconds) to balance free space between BlueFS and BlueStore"),
3338 Option("bluestore_spdk_mem", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3340 .set_description(""),
3342 Option("bluestore_spdk_coremask", Option::TYPE_STR
, Option::LEVEL_DEV
)
3344 .set_description(""),
3346 Option("bluestore_spdk_max_io_completion", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3348 .set_description(""),
3350 Option("bluestore_block_path", Option::TYPE_STR
, Option::LEVEL_DEV
)
3353 .set_description("Path to block device/file"),
3355 Option("bluestore_block_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3358 .set_description("Size of file to create for backing bluestore"),
3360 Option("bluestore_block_create", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3363 .set_description("Create bluestore_block_path if it doesn't exist")
3364 .add_see_also("bluestore_block_path").add_see_also("bluestore_block_size"),
3366 Option("bluestore_block_db_path", Option::TYPE_STR
, Option::LEVEL_DEV
)
3369 .set_description("Path for db block device"),
3371 Option("bluestore_block_db_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3374 .set_description("Size of file to create for bluestore_block_db_path"),
3376 Option("bluestore_block_db_create", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3379 .set_description("Create bluestore_block_db_path if it doesn't exist")
3380 .add_see_also("bluestore_block_db_path")
3381 .add_see_also("bluestore_block_db_size"),
3383 Option("bluestore_block_wal_path", Option::TYPE_STR
, Option::LEVEL_DEV
)
3386 .set_description("Path to block device/file backing bluefs wal"),
3388 Option("bluestore_block_wal_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3391 .set_description("Size of file to create for bluestore_block_wal_path"),
3393 Option("bluestore_block_wal_create", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3396 .set_description("Create bluestore_block_wal_path if it doesn't exist")
3397 .add_see_also("bluestore_block_wal_path")
3398 .add_see_also("bluestore_block_wal_size"),
3400 Option("bluestore_block_preallocate_file", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3403 .set_description("Preallocate file created via bluestore_block*_create"),
3405 Option("bluestore_csum_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3406 .set_default("crc32c")
3407 .set_enum_allowed({"none", "crc32c", "crc32c_16", "crc32c_8", "xxhash32", "xxhash64"})
3409 .set_description("Default checksum algorithm to use")
3410 .set_long_description("crc32c, xxhash32, and xxhash64 are available. The _16 and _8 variants use only a subset of the bits for more compact (but less reliable) checksumming."),
3412 Option("bluestore_csum_min_block", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3415 .set_description("Minimum block size to checksum")
3416 .set_long_description("A larger checksum block means less checksum metadata to store, but results in read amplification when doing a read smaller than this size (because the entire block must be read to verify the checksum).")
3417 .add_see_also("bluestore_csum_max_block"),
3419 Option("bluestore_csum_max_block", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3422 .set_description("Maximum block size to checksum")
3423 .add_see_also("bluestore_csum_min_block"),
3425 Option("bluestore_min_alloc_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3428 .set_description("Minimum allocation size to allocate for an object")
3429 .set_long_description("A smaller allocation size generally means less data is read and then rewritten when a copy-on-write operation is triggered (e.g., when writing to something that was recently snapshotted). Similarly, less data is journaled before performing an overwrite (writes smaller than min_alloc_size must first pass through the BlueStore journal). Larger values of min_alloc_size reduce the amount of metadata required to describe the on-disk layout and reduce overall fragmentation."),
3431 Option("bluestore_min_alloc_size_hdd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3434 .set_description("Default min_alloc_size value for rotational media"),
3436 Option("bluestore_min_alloc_size_ssd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3439 .set_description("Default min_alloc_size value for non-rotational (solid state) media"),
3441 Option("bluestore_max_alloc_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3444 .set_description("Maximum size of a single allocation (0 for no max)"),
3446 Option("bluestore_prefer_deferred_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3449 .set_description("Writes smaller than this size will be written to the journal and then asynchronously written to the device. This can be beneficial when using rotational media where seeks are expensive, and is helpful both with and without solid state journal/wal devices."),
3451 Option("bluestore_prefer_deferred_size_hdd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3454 .set_description("Default bluestore_prefer_deferred_size for rotational media"),
3456 Option("bluestore_prefer_deferred_size_ssd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3459 .set_description("Default bluestore_prefer_deferred_size for non-rotational (solid state) media"),
3461 Option("bluestore_compression_mode", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3462 .set_default("none")
3463 .set_enum_allowed({"none", "passive", "aggressive", "force"})
3465 .set_description("Default policy for using compression when pool does not specify")
3466 .set_long_description("'none' means never use compression. 'passive' means use compression when clients hint that data is compressible. 'aggressive' means use compression unless clients hint that data is not compressible. This option is used when the per-pool property for the compression mode is not present."),
3468 Option("bluestore_compression_algorithm", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3469 .set_default("snappy")
3470 .set_enum_allowed({"", "snappy", "zlib", "zstd", "lz4"})
3472 .set_description("Default compression algorithm to use when writing object data")
3473 .set_long_description("This controls the default compressor to use (if any) if the per-pool property is not set. Note that zstd is *not* recommended for bluestore due to high CPU overhead when compressing small amounts of data."),
3475 Option("bluestore_compression_min_blob_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3478 .set_description("Chunks smaller than this are never compressed"),
3480 Option("bluestore_compression_min_blob_size_hdd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3483 .set_description("Default value of bluestore_compression_min_blob_size for rotational media"),
3485 Option("bluestore_compression_min_blob_size_ssd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3488 .set_description("Default value of bluestore_compression_min_blob_size for non-rotational (solid state) media"),
3490 Option("bluestore_compression_max_blob_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3493 .set_description("Chunks larger than this are broken into smaller chunks before being compressed"),
3495 Option("bluestore_compression_max_blob_size_hdd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3498 .set_description("Default value of bluestore_compression_max_blob_size for rotational media"),
3500 Option("bluestore_compression_max_blob_size_ssd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3503 .set_description("Default value of bluestore_compression_max_blob_size for non-rotational (solid state) media"),
3505 Option("bluestore_gc_enable_blob_threshold", Option::TYPE_INT
, Option::LEVEL_DEV
)
3508 .set_description(""),
3510 Option("bluestore_gc_enable_total_threshold", Option::TYPE_INT
, Option::LEVEL_DEV
)
3513 .set_description(""),
3515 Option("bluestore_max_blob_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3518 .set_description(""),
3520 Option("bluestore_max_blob_size_hdd", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3523 .set_description(""),
3525 Option("bluestore_max_blob_size_ssd", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3528 .set_description(""),
3530 Option("bluestore_compression_required_ratio", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3533 .set_description("Compression ratio required to store compressed data")
3534 .set_long_description("If we compress data and get less than this we discard the result and store the original uncompressed data."),
3536 Option("bluestore_extent_map_shard_max_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3538 .set_description("Max size (bytes) for a single extent map shard before splitting"),
3540 Option("bluestore_extent_map_shard_target_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3542 .set_description("Target size (bytes) for a single extent map shard"),
3544 Option("bluestore_extent_map_shard_min_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3546 .set_description("Min size (bytes) for a single extent map shard before merging"),
3548 Option("bluestore_extent_map_shard_target_size_slop", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3550 .set_description("Ratio above/below target for a shard when trying to align to an existing extent or blob boundary"),
3552 Option("bluestore_extent_map_inline_shard_prealloc_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3554 .set_description("Preallocated buffer for inline shards"),
3556 Option("bluestore_cache_trim_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3558 .set_description("How frequently we trim the bluestore cache"),
3560 Option("bluestore_cache_trim_max_skip_pinned", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3562 .set_description("Max pinned cache entries we consider before giving up"),
3564 Option("bluestore_cache_type", Option::TYPE_STR
, Option::LEVEL_DEV
)
3566 .set_enum_allowed({"2q", "lru"})
3567 .set_description("Cache replacement algorithm"),
3569 Option("bluestore_2q_cache_kin_ratio", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3571 .set_description("2Q paper suggests .5"),
3573 Option("bluestore_2q_cache_kout_ratio", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3575 .set_description("2Q paper suggests .5"),
3577 Option("bluestore_cache_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3579 .set_description("Cache size (in bytes) for BlueStore")
3580 .set_long_description("This includes data and metadata cached by BlueStore as well as memory devoted to rocksdb's cache(s)."),
3582 Option("bluestore_cache_size_hdd", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3584 .set_description("Default bluestore_cache_size for rotational media"),
3586 Option("bluestore_cache_size_ssd", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3588 .set_description("Default bluestore_cache_size for non-rotational (solid state) media"),
3590 Option("bluestore_cache_meta_ratio", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3592 .add_see_also("bluestore_cache_size")
3593 .set_description("Ratio of bluestore cache to devote to metadata"),
3595 Option("bluestore_cache_kv_ratio", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3597 .add_see_also("bluestore_cache_size")
3598 .set_description("Ratio of bluestore cache to devote to kv database (rocksdb)"),
3600 Option("bluestore_cache_autotune", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3602 .add_see_also("bluestore_cache_size")
3603 .add_see_also("bluestore_cache_meta_ratio")
3604 .set_description("Automatically tune the ratio of caches while respecting min values."),
3606 Option("bluestore_cache_autotune_chunk_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3607 .set_default(33554432)
3608 .add_see_also("bluestore_cache_autotune")
3609 .set_description("The chunk size in bytes to allocate to caches when cache autotune is enabled."),
3611 Option("bluestore_cache_autotune_interval", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3613 .add_see_also("bluestore_cache_autotune")
3614 .set_description("The number of seconds to wait between rebalances when cache autotune is enabled."),
3616 Option("bluestore_kvbackend", Option::TYPE_STR
, Option::LEVEL_DEV
)
3617 .set_default("rocksdb")
3619 .set_description("Key value database to use for bluestore"),
3621 Option("bluestore_allocator", Option::TYPE_STR
, Option::LEVEL_DEV
)
3622 .set_default("stupid")
3623 .set_enum_allowed({"bitmap", "stupid"})
3624 .set_description("Allocator policy"),
3626 Option("bluestore_freelist_blocks_per_key", Option::TYPE_INT
, Option::LEVEL_DEV
)
3628 .set_description("Block (and bits) per database key"),
3630 Option("bluestore_bitmapallocator_blocks_per_zone", Option::TYPE_INT
, Option::LEVEL_DEV
)
3632 .set_description(""),
3634 Option("bluestore_bitmapallocator_span_size", Option::TYPE_INT
, Option::LEVEL_DEV
)
3636 .set_description(""),
3638 Option("bluestore_max_deferred_txc", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3640 .set_description("Max transactions with deferred writes that can accumulate before we force flush deferred writes"),
3642 Option("bluestore_rocksdb_options", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3643 .set_default("compression=kNoCompression,max_write_buffer_number=4,min_write_buffer_number_to_merge=1,recycle_log_file_num=4,write_buffer_size=268435456,writable_file_max_buffer_size=0,compaction_readahead_size=2097152")
3644 .set_description("Rocksdb options"),
3646 Option("bluestore_fsck_on_mount", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3648 .set_description("Run fsck at mount"),
3650 Option("bluestore_fsck_on_mount_deep", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3652 .set_description("Run deep fsck at mount"),
3654 Option("bluestore_fsck_on_umount", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3656 .set_description("Run fsck at umount"),
3658 Option("bluestore_fsck_on_umount_deep", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3660 .set_description("Run deep fsck at umount"),
3662 Option("bluestore_fsck_on_mkfs", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3664 .set_description("Run fsck after mkfs"),
3666 Option("bluestore_fsck_on_mkfs_deep", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3668 .set_description("Run deep fsck after mkfs"),
3670 Option("bluestore_sync_submit_transaction", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3672 .set_description("Try to submit metadata transaction to rocksdb in queuing thread context"),
3674 Option("bluestore_throttle_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3677 .set_description("Maximum bytes in flight before we throttle IO submission"),
3679 Option("bluestore_throttle_deferred_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3682 .set_description("Maximum bytes for deferred writes before we throttle IO submission"),
3684 Option("bluestore_throttle_cost_per_io", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3687 .set_description("Overhead added to transaction cost (in bytes) for each IO"),
3689 Option("bluestore_throttle_cost_per_io_hdd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3690 .set_default(670000)
3692 .set_description("Default bluestore_throttle_cost_per_io for rotational media"),
3694 Option("bluestore_throttle_cost_per_io_ssd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3697 .set_description("Default bluestore_throttle_cost_per_io for non-rotation (solid state) media"),
3700 Option("bluestore_deferred_batch_ops", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3703 .set_description("Max number of deferred writes before we flush the deferred write queue"),
3705 Option("bluestore_deferred_batch_ops_hdd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3708 .set_description("Default bluestore_deferred_batch_ops for rotational media"),
3710 Option("bluestore_deferred_batch_ops_ssd", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3713 .set_description("Default bluestore_deferred_batch_ops for non-rotational (solid state) media"),
3715 Option("bluestore_nid_prealloc", Option::TYPE_INT
, Option::LEVEL_DEV
)
3717 .set_description("Number of unique object ids to preallocate at a time"),
3719 Option("bluestore_blobid_prealloc", Option::TYPE_UINT
, Option::LEVEL_DEV
)
3721 .set_description("Number of unique blob ids to preallocate at a time"),
3723 Option("bluestore_clone_cow", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3726 .set_description("Use copy-on-write when cloning objects (versus reading and rewriting them at clone time)"),
3728 Option("bluestore_default_buffered_read", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3731 .set_description("Cache read results by default (unless hinted NOCACHE or WONTNEED)"),
3733 Option("bluestore_default_buffered_write", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3736 .set_description("Cache writes by default (unless hinted NOCACHE or WONTNEED)"),
3738 Option("bluestore_debug_misc", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3740 .set_description(""),
3742 Option("bluestore_debug_no_reuse_blocks", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3744 .set_description(""),
3746 Option("bluestore_debug_small_allocations", Option::TYPE_INT
, Option::LEVEL_DEV
)
3748 .set_description(""),
3750 Option("bluestore_debug_freelist", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3752 .set_description(""),
3754 Option("bluestore_debug_prefill", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3756 .set_description("simulate fragmentation"),
3758 Option("bluestore_debug_prefragment_max", Option::TYPE_INT
, Option::LEVEL_DEV
)
3760 .set_description(""),
3762 Option("bluestore_debug_inject_read_err", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3764 .set_description(""),
3766 Option("bluestore_debug_randomize_serial_transaction", Option::TYPE_INT
, Option::LEVEL_DEV
)
3768 .set_description(""),
3770 Option("bluestore_debug_omit_block_device_write", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3772 .set_description(""),
3774 Option("bluestore_debug_fsck_abort", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3776 .set_description(""),
3778 Option("bluestore_debug_omit_kv_commit", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3780 .set_description(""),
3782 Option("bluestore_debug_permit_any_bdev_label", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3784 .set_description(""),
3786 Option("bluestore_shard_finishers", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3788 .set_description(""),
3790 Option("bluestore_debug_random_read_err", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3792 .set_description(""),
3794 // -----------------------------------------
3797 Option("kstore_max_ops", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3799 .set_description(""),
3801 Option("kstore_max_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3803 .set_description(""),
3805 Option("kstore_backend", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3806 .set_default("rocksdb")
3807 .set_description(""),
3809 Option("kstore_rocksdb_options", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3810 .set_default("compression=kNoCompression")
3811 .set_description(""),
3813 Option("kstore_fsck_on_mount", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3815 .set_description(""),
3817 Option("kstore_fsck_on_mount_deep", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3819 .set_description(""),
3821 Option("kstore_nid_prealloc", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3823 .set_description(""),
3825 Option("kstore_sync_transaction", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3827 .set_description(""),
3829 Option("kstore_sync_submit_transaction", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3831 .set_description(""),
3833 Option("kstore_onode_map_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3835 .set_description(""),
3837 Option("kstore_default_stripe_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
3839 .set_description(""),
3841 // ---------------------
3844 Option("filestore_rocksdb_options", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3845 .set_default("max_background_compactions=8,compaction_readahead_size=2097152,compression=kNoCompression")
3846 .set_description(""),
3848 Option("filestore_omap_backend", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3849 .set_default("rocksdb")
3850 .set_description(""),
3852 Option("filestore_omap_backend_path", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
3854 .set_description(""),
3856 Option("filestore_wbthrottle_enable", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3858 .set_description(""),
3860 Option("filestore_wbthrottle_btrfs_bytes_start_flusher", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3861 .set_default(41943040)
3862 .set_description(""),
3864 Option("filestore_wbthrottle_btrfs_bytes_hard_limit", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3865 .set_default(419430400)
3866 .set_description(""),
3868 Option("filestore_wbthrottle_btrfs_ios_start_flusher", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3870 .set_description(""),
3872 Option("filestore_wbthrottle_btrfs_ios_hard_limit", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3874 .set_description(""),
3876 Option("filestore_wbthrottle_btrfs_inodes_start_flusher", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3878 .set_description(""),
3880 Option("filestore_wbthrottle_xfs_bytes_start_flusher", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3881 .set_default(41943040)
3882 .set_description(""),
3884 Option("filestore_wbthrottle_xfs_bytes_hard_limit", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3885 .set_default(419430400)
3886 .set_description(""),
3888 Option("filestore_wbthrottle_xfs_ios_start_flusher", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3890 .set_description(""),
3892 Option("filestore_wbthrottle_xfs_ios_hard_limit", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3894 .set_description(""),
3896 Option("filestore_wbthrottle_xfs_inodes_start_flusher", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3898 .set_description(""),
3900 Option("filestore_wbthrottle_btrfs_inodes_hard_limit", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3902 .set_description(""),
3904 Option("filestore_wbthrottle_xfs_inodes_hard_limit", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3906 .set_description(""),
3908 Option("filestore_odsync_write", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3910 .set_description(""),
3912 Option("filestore_index_retry_probability", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3914 .set_description(""),
3916 Option("filestore_debug_inject_read_err", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3918 .set_description(""),
3920 Option("filestore_debug_random_read_err", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
3922 .set_description(""),
3924 Option("filestore_debug_omap_check", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
3926 .set_description(""),
3928 Option("filestore_omap_header_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
3930 .set_description(""),
3932 Option("filestore_max_inline_xattr_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3934 .set_description(""),
3936 Option("filestore_max_inline_xattr_size_xfs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3938 .set_description(""),
3940 Option("filestore_max_inline_xattr_size_btrfs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3942 .set_description(""),
3944 Option("filestore_max_inline_xattr_size_other", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3946 .set_description(""),
3948 Option("filestore_max_inline_xattrs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3950 .set_description(""),
3952 Option("filestore_max_inline_xattrs_xfs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3954 .set_description(""),
3956 Option("filestore_max_inline_xattrs_btrfs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3958 .set_description(""),
3960 Option("filestore_max_inline_xattrs_other", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3962 .set_description(""),
3964 Option("filestore_max_xattr_value_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3966 .set_description(""),
3968 Option("filestore_max_xattr_value_size_xfs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3969 .set_default(64<<10)
3970 .set_description(""),
3972 Option("filestore_max_xattr_value_size_btrfs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3973 .set_default(64<<10)
3974 .set_description(""),
3976 Option("filestore_max_xattr_value_size_other", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3978 .set_description(""),
3980 Option("filestore_sloppy_crc", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
3982 .set_description(""),
3984 Option("filestore_sloppy_crc_block_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
3986 .set_description(""),
3988 Option("filestore_max_alloc_hint_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
3989 .set_default(1ULL << 20)
3990 .set_description(""),
3992 Option("filestore_max_sync_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3994 .set_description(""),
3996 Option("filestore_min_sync_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
3998 .set_description(""),
4000 Option("filestore_btrfs_snap", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4002 .set_description(""),
4004 Option("filestore_btrfs_clone_range", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4006 .set_description(""),
4008 Option("filestore_zfs_snap", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4010 .set_description(""),
4012 Option("filestore_fsync_flushes_journal_data", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4014 .set_description(""),
4016 Option("filestore_fiemap", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4018 .set_description(""),
4020 Option("filestore_punch_hole", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4022 .set_description(""),
4024 Option("filestore_seek_data_hole", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4026 .set_description(""),
4028 Option("filestore_splice", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4030 .set_description(""),
4032 Option("filestore_fadvise", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4034 .set_description(""),
4036 Option("filestore_collect_device_partition_information", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4038 .set_description(""),
4040 Option("filestore_xfs_extsize", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4042 .set_description(""),
4044 Option("filestore_journal_parallel", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4046 .set_description(""),
4048 Option("filestore_journal_writeahead", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4050 .set_description(""),
4052 Option("filestore_journal_trailing", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4054 .set_description(""),
4056 Option("filestore_queue_max_ops", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4058 .set_description(""),
4060 Option("filestore_queue_max_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4061 .set_default(100 << 20)
4062 .set_description(""),
4064 Option("filestore_caller_concurrency", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4066 .set_description(""),
4068 Option("filestore_expected_throughput_bytes", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4069 .set_default(200 << 20)
4070 .set_description(""),
4072 Option("filestore_expected_throughput_ops", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4074 .set_description(""),
4076 Option("filestore_queue_max_delay_multiple", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4078 .set_description(""),
4080 Option("filestore_queue_high_delay_multiple", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4082 .set_description(""),
4084 Option("filestore_queue_low_threshhold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4086 .set_description(""),
4088 Option("filestore_queue_high_threshhold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4090 .set_description(""),
4092 Option("filestore_op_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4094 .set_description(""),
4096 Option("filestore_op_thread_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4098 .set_description(""),
4100 Option("filestore_op_thread_suicide_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4102 .set_description(""),
4104 Option("filestore_commit_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4106 .set_description(""),
4108 Option("filestore_fiemap_threshold", Option::TYPE_INT
, Option::LEVEL_DEV
)
4110 .set_description(""),
4112 Option("filestore_merge_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4114 .set_description(""),
4116 Option("filestore_split_multiple", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4118 .set_description(""),
4120 Option("filestore_split_rand_factor", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4122 .set_description(""),
4124 Option("filestore_update_to", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4126 .set_description(""),
4128 Option("filestore_blackhole", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4130 .set_description(""),
4132 Option("filestore_fd_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4134 .set_description(""),
4136 Option("filestore_fd_cache_shards", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4138 .set_description(""),
4140 Option("filestore_ondisk_finisher_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4142 .set_description(""),
4144 Option("filestore_apply_finisher_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4146 .set_description(""),
4148 Option("filestore_dump_file", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4150 .set_description(""),
4152 Option("filestore_kill_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
4154 .set_description(""),
4156 Option("filestore_inject_stall", Option::TYPE_INT
, Option::LEVEL_DEV
)
4158 .set_description(""),
4160 Option("filestore_fail_eio", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4162 .set_description(""),
4164 Option("filestore_debug_verify_split", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
4166 .set_description(""),
4168 Option("journal_dio", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4170 .set_description(""),
4172 Option("journal_aio", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4174 .set_description(""),
4176 Option("journal_force_aio", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4178 .set_description(""),
4180 Option("journal_block_size", Option::TYPE_INT
, Option::LEVEL_DEV
)
4182 .set_description(""),
4184 Option("journal_max_corrupt_search", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4185 .set_default(10<<20)
4186 .set_description(""),
4188 Option("journal_block_align", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4190 .set_description(""),
4192 Option("journal_write_header_frequency", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4194 .set_description(""),
4196 Option("journal_max_write_bytes", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4197 .set_default(10 << 20)
4198 .set_description(""),
4200 Option("journal_max_write_entries", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4202 .set_description(""),
4204 Option("journal_throttle_low_threshhold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4206 .set_description(""),
4208 Option("journal_throttle_high_threshhold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4210 .set_description(""),
4212 Option("journal_throttle_high_multiple", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4214 .set_description(""),
4216 Option("journal_throttle_max_multiple", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4218 .set_description(""),
4220 Option("journal_align_min_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4221 .set_default(64 << 10)
4222 .set_description(""),
4224 Option("journal_replay_from", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4226 .set_description(""),
4228 Option("mgr_stats_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4229 .set_default((int64_t)PerfCountersBuilder::PRIO_USEFUL
)
4230 .set_description("Lowest perfcounter priority collected by mgr")
4231 .set_long_description("Daemons only set perf counter data to the manager "
4232 "daemon if the counter has a priority higher than this.")
4233 .set_min_max((int64_t)PerfCountersBuilder::PRIO_DEBUGONLY
,
4234 (int64_t)PerfCountersBuilder::PRIO_CRITICAL
+ 1),
4236 Option("journal_zero_on_create", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4238 .set_description(""),
4240 Option("journal_ignore_corruption", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4242 .set_description(""),
4244 Option("journal_discard", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4246 .set_description(""),
4248 Option("fio_dir", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4249 .set_default("/tmp/fio")
4250 .set_description(""),
4252 Option("rados_mon_op_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4254 .set_description(""),
4256 Option("rados_osd_op_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4258 .set_description(""),
4260 Option("rados_tracing", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4262 .set_description(""),
4264 Option("nss_db_path", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4266 .set_description(""),
4268 Option("mgr_module_path", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4269 .set_default(CEPH_PKGLIBDIR
"/mgr")
4271 .set_description("Filesystem path to manager modules."),
4273 Option("mgr_initial_modules", Option::TYPE_STR
, Option::LEVEL_BASIC
)
4274 .set_default("restful status balancer")
4276 .set_description("List of manager modules to enable when the cluster is "
4278 .set_long_description("This list of module names is read by the monitor "
4279 "when the cluster is first started after installation, to populate "
4280 "the list of enabled manager modules. Subsequent updates are done using "
4281 "the 'mgr module [enable|disable]' commands. List may be comma "
4282 "or space separated."),
4284 Option("mgr_data", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4285 .set_default("/var/lib/ceph/mgr/$cluster-$id")
4287 .set_description("Filesystem path to the ceph-mgr data directory, used to "
4288 "contain keyring."),
4290 Option("mgr_tick_period", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4293 .set_description("Period in seconds of beacon messages to monitor"),
4295 Option("mgr_stats_period", Option::TYPE_INT
, Option::LEVEL_BASIC
)
4298 .set_description("Period in seconds of OSD/MDS stats reports to manager")
4299 .set_long_description("Use this setting to control the granularity of "
4300 "time series data collection from daemons. Adjust "
4301 "upwards if the manager CPU load is too high, or "
4302 "if you simply do not require the most up to date "
4303 "performance counter data."),
4305 Option("mgr_client_bytes", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4307 .add_service("mgr"),
4309 Option("mgr_client_messages", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4311 .add_service("mgr"),
4313 Option("mgr_osd_bytes", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4315 .add_service("mgr"),
4317 Option("mgr_osd_messages", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4319 .add_service("mgr"),
4321 Option("mgr_mds_bytes", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4323 .add_service("mgr"),
4325 Option("mgr_mds_messages", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4327 .add_service("mgr"),
4329 Option("mgr_mon_bytes", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4331 .add_service("mgr"),
4333 Option("mgr_mon_messages", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4335 .add_service("mgr"),
4337 Option("mgr_connect_retry_interval", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
4339 .add_service("common"),
4341 Option("mgr_service_beacon_grace", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
4344 .set_description("Period in seconds from last beacon to manager dropping "
4345 "state about a monitored service (RGW, rbd-mirror etc)"),
4347 Option("mon_mgr_digest_period", Option::TYPE_INT
, Option::LEVEL_DEV
)
4350 .set_description("Period in seconds between monitor-to-manager "
4351 "health/status updates"),
4353 Option("mon_mgr_beacon_grace", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4356 .set_description("Period in seconds from last beacon to monitor marking "
4357 "a manager daemon as failed"),
4359 Option("mon_mgr_inactive_grace", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4362 .set_description("Period in seconds after cluster creation during which "
4363 "cluster may have no active manager")
4364 .set_long_description("This grace period enables the cluster to come "
4365 "up cleanly without raising spurious health check "
4366 "failures about managers that aren't online yet"),
4368 Option("mon_mgr_mkfs_grace", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4371 .set_description("Period in seconds that the cluster may have no active "
4372 "manager before this is reported as an ERR rather than "
4375 Option("mutex_perf_counter", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4377 .set_description(""),
4379 Option("throttler_perf_counter", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4381 .set_description(""),
4383 Option("event_tracing", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4385 .set_description(""),
4387 Option("internal_safe_to_start_threads", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4389 .set_description(""),
4391 Option("debug_deliberately_leak_memory", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
4393 .set_description(""),
4395 Option("debug_asserts_on_shutdown", Option::TYPE_BOOL
,Option::LEVEL_DEV
)
4397 .set_description("Enable certain asserts to check for refcounting bugs on shutdown; see http://tracker.ceph.com/issues/21738"),
4401 std::vector
<Option
> get_rgw_options() {
4402 return std::vector
<Option
>({
4403 Option("rgw_acl_grants_max_num", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4405 .set_description("Max number of ACL grants in a single request"),
4407 Option("rgw_max_chunk_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4409 .set_description("Set RGW max chunk size")
4410 .set_long_description(
4411 "The chunk size is the size of RADOS I/O requests that RGW sends when accessing "
4412 "data objects. RGW read and write operation will never request more than this amount "
4413 "in a single request. This also defines the rgw object head size, as head operations "
4414 "need to be atomic, and anything larger than this would require more than a single "
4417 Option("rgw_put_obj_min_window_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4419 .set_description("The minimum RADOS write window size (in bytes).")
4420 .set_long_description(
4421 "The window size determines the total concurrent RADOS writes of a single rgw object. "
4422 "When writing an object RGW will send multiple chunks to RADOS. The total size of the "
4423 "writes does not exceed the window size. The window size can be automatically "
4424 "in order to better utilize the pipe.")
4425 .add_see_also({"rgw_put_obj_max_window_size", "rgw_max_chunk_size"}),
4427 Option("rgw_put_obj_max_window_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4429 .set_description("The maximum RADOS write window size (in bytes).")
4430 .set_long_description("The window size may be dynamically adjusted, but will not surpass this value.")
4431 .add_see_also({"rgw_put_obj_min_window_size", "rgw_max_chunk_size"}),
4433 Option("rgw_max_put_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4435 .set_description("Max size (in bytes) of regular (non multi-part) object upload.")
4436 .set_long_description(
4437 "Plain object upload is capped at this amount of data. In order to upload larger "
4438 "objects, a special upload mechanism is required. The S3 API provides the "
4439 "multi-part upload, and Swift provides DLO and SLO."),
4441 Option("rgw_max_put_param_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4443 .set_description("The maximum size (in bytes) of data input of certain RESTful requests."),
4445 Option("rgw_max_attr_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4447 .set_description("The maximum length of metadata value. 0 skips the check"),
4449 Option("rgw_max_attr_name_len", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4451 .set_description("The maximum length of metadata name. 0 skips the check"),
4453 Option("rgw_max_attrs_num_in_req", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4455 .set_description("The maximum number of metadata items that can be put via single request"),
4457 Option("rgw_override_bucket_index_max_shards", Option::TYPE_UINT
, Option::LEVEL_DEV
)
4459 .set_description(""),
4461 Option("rgw_bucket_index_max_aio", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4463 .set_description("Max number of concurrent RADOS requests when handling bucket shards."),
4465 Option("rgw_enable_quota_threads", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4467 .set_description("Enables the quota maintenance thread.")
4468 .set_long_description(
4469 "The quota maintenance thread is responsible for quota related maintenance work. "
4470 "The thread itself can be disabled, but in order for quota to work correctly, at "
4471 "least one RGW in each zone needs to have this thread running. Having the thread "
4472 "enabled on multiple RGW processes within the same zone can spread "
4473 "some of the maintenance work between them.")
4474 .add_see_also({"rgw_enable_gc_threads", "rgw_enable_lc_threads"}),
4476 Option("rgw_enable_gc_threads", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4478 .set_description("Enables the garbage collection maintenance thread.")
4479 .set_long_description(
4480 "The garbage collection maintenance thread is responsible for garbage collector "
4481 "maintenance work. The thread itself can be disabled, but in order for garbage "
4482 "collection to work correctly, at least one RGW in each zone needs to have this "
4483 "thread running. Having the thread enabled on multiple RGW processes within the "
4484 "same zone can spread some of the maintenance work between them.")
4485 .add_see_also({"rgw_enable_quota_threads", "rgw_enable_lc_threads"}),
4487 Option("rgw_enable_lc_threads", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4489 .set_description("Enables the lifecycle maintenance thread. This is required on at least on rgw for each zone.")
4490 .set_long_description(
4491 "The lifecycle maintenance thread is responsible for lifecycle related maintenance "
4492 "work. The thread itself can be disabled, but in order for lifecycle to work "
4493 "correctly, at least one RGW in each zone needs to have this thread running. Having"
4494 "the thread enabled on multiple RGW processes within the same zone can spread "
4495 "some of the maintenance work between them.")
4496 .add_see_also({"rgw_enable_gc_threads", "rgw_enable_quota_threads"}),
4498 Option("rgw_data", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4499 .set_default("/var/lib/ceph/radosgw/$cluster-$id")
4500 .set_description("Alternative location for RGW configuration.")
4501 .set_long_description(
4502 "If this is set, the different Ceph system configurables (such as the keyring file "
4503 "will be located in the path that is specified here. "),
4505 Option("rgw_enable_apis", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4506 .set_default("s3, s3website, swift, swift_auth, admin")
4507 .set_description("A list of set of RESTful APIs that rgw handles."),
4509 Option("rgw_cache_enabled", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4511 .set_description("Enable RGW metadata cache.")
4512 .set_long_description(
4513 "The metadata cache holds metadata entries that RGW requires for processing "
4514 "requests. Metadata entries can be user info, bucket info, and bucket instance "
4515 "info. If not found in the cache, entries will be fetched from the backing "
4517 .add_see_also("rgw_cache_lru_size"),
4519 Option("rgw_cache_lru_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4521 .set_description("Max number of items in RGW metadata cache.")
4522 .set_long_description(
4523 "When full, the RGW metadata cache evicts least recently used entries.")
4524 .add_see_also("rgw_cache_enabled"),
4526 Option("rgw_socket_path", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4528 .set_description("RGW FastCGI socket path (for FastCGI over Unix domain sockets).")
4529 .add_see_also("rgw_fcgi_socket_backlog"),
4531 Option("rgw_host", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4533 .set_description("RGW FastCGI host name (for FastCGI over TCP)")
4534 .add_see_also({"rgw_port", "rgw_fcgi_socket_backlog"}),
4536 Option("rgw_port", Option::TYPE_STR
, Option::LEVEL_BASIC
)
4538 .set_description("RGW FastCGI port number (for FastCGI over TCP)")
4539 .add_see_also({"rgw_host", "rgw_fcgi_socket_backlog"}),
4541 Option("rgw_dns_name", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4543 .set_description("The host name that RGW uses.")
4544 .set_long_description(
4545 "This is Needed for virtual hosting of buckets to work properly, unless configured "
4546 "via zonegroup configuration."),
4548 Option("rgw_dns_s3website_name", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4550 .set_description("The host name that RGW uses for static websites (S3)")
4551 .set_long_description(
4552 "This is needed for virtual hosting of buckets, unless configured via zonegroup "
4555 Option("rgw_content_length_compat", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4557 .set_description("Multiple content length headers compatibility")
4558 .set_long_description(
4559 "Try to handle requests with abiguous multiple content length headers "
4560 "(Content-Length, Http-Content-Length)."),
4562 Option("rgw_lifecycle_work_time", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4563 .set_default("00:00-06:00")
4564 .set_description("Lifecycle allowed work time")
4565 .set_long_description("Local time window in which the lifecycle maintenance thread can work."),
4567 Option("rgw_lc_lock_max_time", Option::TYPE_INT
, Option::LEVEL_DEV
)
4569 .set_description(""),
4571 Option("rgw_lc_max_objs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4573 .set_description("Number of lifecycle data shards")
4574 .set_long_description(
4575 "Number of RADOS objects to use for storing lifecycle index. This can affect "
4576 "concurrency of lifecycle maintenance, but requires multiple RGW processes "
4577 "running on the zone to be utilized."),
4579 Option("rgw_lc_max_rules", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4581 .set_description("Max number of lifecycle rules set on one bucket")
4582 .set_long_description("Number of lifecycle rules set on one bucket should be limited."),
4584 Option("rgw_lc_debug_interval", Option::TYPE_INT
, Option::LEVEL_DEV
)
4586 .set_description(""),
4588 Option("rgw_mp_lock_max_time", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4590 .set_description("Multipart upload max completion time")
4591 .set_long_description(
4592 "Time length to allow completion of a multipart upload operation. This is done "
4593 "to prevent concurrent completions on the same object with the same upload id."),
4595 Option("rgw_script_uri", Option::TYPE_STR
, Option::LEVEL_DEV
)
4597 .set_description(""),
4599 Option("rgw_request_uri", Option::TYPE_STR
, Option::LEVEL_DEV
)
4601 .set_description(""),
4603 Option("rgw_ignore_get_invalid_range", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4605 .set_description("Treat invalid (e.g., negative) range request as full")
4606 .set_long_description("Treat invalid (e.g., negative) range request "
4607 "as request for the full object (AWS compatibility)"),
4609 Option("rgw_swift_url", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4611 .set_description("Swift-auth storage URL")
4612 .set_long_description(
4613 "Used in conjunction with rgw internal swift authentication. This affects the "
4614 "X-Storage-Url response header value.")
4615 .add_see_also("rgw_swift_auth_entry"),
4617 Option("rgw_swift_url_prefix", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4618 .set_default("swift")
4619 .set_description("Swift URL prefix")
4620 .set_long_description("The URL path prefix for swift requests."),
4622 Option("rgw_swift_auth_url", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4624 .set_description("Swift auth URL")
4625 .set_long_description(
4626 "Default url to which RGW connects and verifies tokens for v1 auth (if not using "
4627 "internal swift auth)."),
4629 Option("rgw_swift_auth_entry", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4630 .set_default("auth")
4631 .set_description("Swift auth URL prefix")
4632 .set_long_description("URL path prefix for internal swift auth requests.")
4633 .add_see_also("rgw_swift_url"),
4635 Option("rgw_swift_tenant_name", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4637 .set_description("Swift tenant name")
4638 .set_long_description("Tenant name that is used when constructing the swift path.")
4639 .add_see_also("rgw_swift_account_in_url"),
4641 Option("rgw_swift_account_in_url", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4643 .set_description("Swift account encoded in URL")
4644 .set_long_description("Whether the swift account is encoded in the uri path (AUTH_<account>).")
4645 .add_see_also("rgw_swift_tenant_name"),
4647 Option("rgw_swift_enforce_content_length", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4649 .set_description("Send content length when listing containers (Swift)")
4650 .set_long_description(
4651 "Whether content length header is needed when listing containers. When this is "
4652 "set to false, RGW will send extra info for each entry in the response."),
4654 Option("rgw_keystone_url", Option::TYPE_STR
, Option::LEVEL_BASIC
)
4656 .set_description("The URL to the Keystone server."),
4658 Option("rgw_keystone_admin_token", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4660 .set_description("The admin token (shared secret) that is used for the Keystone requests."),
4662 Option("rgw_keystone_admin_user", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4664 .set_description("Keystone admin user."),
4666 Option("rgw_keystone_admin_password", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4668 .set_description("Keystone admin password."),
4670 Option("rgw_keystone_admin_tenant", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4672 .set_description("Keystone admin user tenant."),
4674 Option("rgw_keystone_admin_project", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4676 .set_description("Keystone admin user project (for Keystone v3)."),
4678 Option("rgw_keystone_admin_domain", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4680 .set_description("Keystone admin user domain (for Keystone v3)."),
4682 Option("rgw_keystone_barbican_user", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4684 .set_description("Keystone user to access barbican secrets."),
4686 Option("rgw_keystone_barbican_password", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4688 .set_description("Keystone password for barbican user."),
4690 Option("rgw_keystone_barbican_tenant", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4692 .set_description("Keystone barbican user tenant (Keystone v2.0)."),
4694 Option("rgw_keystone_barbican_project", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4696 .set_description("Keystone barbican user project (Keystone v3)."),
4698 Option("rgw_keystone_barbican_domain", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4700 .set_description("Keystone barbican user domain."),
4702 Option("rgw_keystone_api_version", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4704 .set_description("Version of Keystone API to use (2 or 3)."),
4706 Option("rgw_keystone_accepted_roles", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4707 .set_default("Member, admin")
4708 .set_description("Only users with one of these roles will be served when doing Keystone authentication."),
4710 Option("rgw_keystone_accepted_admin_roles", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4712 .set_description("List of roles allowing user to gain admin privileges (Keystone)."),
4714 Option("rgw_keystone_token_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4716 .set_description("Keystone token cache size")
4717 .set_long_description(
4718 "Max number of Keystone tokens that will be cached. Token that is not cached "
4719 "requires RGW to access the Keystone server when authenticating."),
4721 Option("rgw_keystone_revocation_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4722 .set_default(15_min
)
4723 .set_description("Keystone cache revocation interval")
4724 .set_long_description(
4725 "Time (in seconds) that RGW waits between requests to Keystone for getting a list "
4726 "of revoked tokens. A revoked token might still be considered valid by RGW for "
4727 "this amount of time."),
4729 Option("rgw_keystone_verify_ssl", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4731 .set_description("Should RGW verify the Keystone server SSL certificate."),
4733 Option("rgw_keystone_implicit_tenants", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4734 .set_default("false")
4735 .set_enum_allowed( { "false", "true", "swift", "s3", "both", "0", "1", "none" } )
4736 .set_description("RGW Keystone implicit tenants creation")
4737 .set_long_description(
4738 "Implicitly create new users in their own tenant with the same name when "
4739 "authenticating via Keystone. Can be limited to s3 or swift only."),
4741 Option("rgw_cross_domain_policy", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4742 .set_default("<allow-access-from domain=\"*\" secure=\"false\" />")
4743 .set_description("RGW handle cross domain policy")
4744 .set_long_description("Returned cross domain policy when accessing the crossdomain.xml "
4745 "resource (Swift compatiility)."),
4747 Option("rgw_healthcheck_disabling_path", Option::TYPE_STR
, Option::LEVEL_DEV
)
4749 .set_description("Swift health check api can be disabled if a file can be accessed in this path."),
4751 Option("rgw_s3_auth_use_rados", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4753 .set_description("Should S3 authentication use credentials stored in RADOS backend."),
4755 Option("rgw_s3_auth_use_keystone", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4757 .set_description("Should S3 authentication use Keystone."),
4759 Option("rgw_s3_auth_order", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4760 .set_default("external, local")
4761 .set_description("Authentication strategy order to use for s3 authentication")
4762 .set_long_description(
4763 "Order of authentication strategies to try for s3 authentication, the allowed "
4764 "options are a comma separated list of engines external, local. The "
4765 "default order is to try all the externally configured engines before "
4766 "attempting local rados based authentication"),
4768 Option("rgw_barbican_url", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4770 .set_description("URL to barbican server."),
4772 Option("rgw_ldap_uri", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4773 .set_default("ldaps://<ldap.your.domain>")
4774 .set_description("Space-separated list of LDAP servers in URI format."),
4776 Option("rgw_ldap_binddn", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4777 .set_default("uid=admin,cn=users,dc=example,dc=com")
4778 .set_description("LDAP entry RGW will bind with (user match)."),
4780 Option("rgw_ldap_searchdn", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4781 .set_default("cn=users,cn=accounts,dc=example,dc=com")
4782 .set_description("LDAP search base (basedn)."),
4784 Option("rgw_ldap_dnattr", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4786 .set_description("LDAP attribute containing RGW user names (to form binddns)."),
4788 Option("rgw_ldap_secret", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4789 .set_default("/etc/openldap/secret")
4790 .set_description("Path to file containing credentials for rgw_ldap_binddn."),
4792 Option("rgw_s3_auth_use_ldap", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4794 .set_description("Should S3 authentication use LDAP."),
4796 Option("rgw_ldap_searchfilter", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4798 .set_description("LDAP search filter."),
4800 Option("rgw_admin_entry", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4801 .set_default("admin")
4802 .set_description("Path prefix to be used for accessing RGW RESTful admin API."),
4804 Option("rgw_enforce_swift_acls", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4806 .set_description("RGW enforce swift acls")
4807 .set_long_description(
4808 "Should RGW enforce special Swift-only ACLs. Swift has a special ACL that gives "
4809 "permission to access all objects in a container."),
4811 Option("rgw_swift_token_expiration", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4813 .set_description("Expiration time (in seconds) for token generated through RGW Swift auth."),
4815 Option("rgw_print_continue", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4817 .set_description("RGW support of 100-continue")
4818 .set_long_description(
4819 "Should RGW explicitly send 100 (continue) responses. This is mainly relevant when "
4820 "using FastCGI, as some FastCGI modules do not fully support this feature."),
4822 Option("rgw_print_prohibited_content_length", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4824 .set_description("RGW RFC-7230 compatibility")
4825 .set_long_description(
4826 "Specifies whether RGW violates RFC 7230 and sends Content-Length with 204 or 304 "
4829 Option("rgw_remote_addr_param", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4830 .set_default("REMOTE_ADDR")
4831 .set_description("HTTP header that holds the remote address in incoming requests.")
4832 .set_long_description(
4833 "RGW will use this header to extract requests origin. When RGW runs behind "
4834 "a reverse proxy, the remote address header will point at the proxy's address "
4835 "and not at the originator's address. Therefore it is sometimes possible to "
4836 "have the proxy add the originator's address in a separate HTTP header, which "
4837 "will allow RGW to log it correctly."
4839 .add_see_also("rgw_enable_ops_log"),
4841 Option("rgw_op_thread_timeout", Option::TYPE_INT
, Option::LEVEL_DEV
)
4843 .set_description("Timeout for async rados coroutine operations."),
4845 Option("rgw_op_thread_suicide_timeout", Option::TYPE_INT
, Option::LEVEL_DEV
)
4847 .set_description(""),
4849 Option("rgw_thread_pool_size", Option::TYPE_INT
, Option::LEVEL_BASIC
)
4851 .set_description("RGW requests handling thread pool size.")
4852 .set_long_description(
4853 "This parameter determines the number of concurrent requests RGW can process "
4854 "when using either the civetweb, or the fastcgi frontends. The higher this "
4855 "number is, RGW will be able to deal with more concurrent requests at the "
4856 "cost of more resource utilization."),
4858 Option("rgw_num_control_oids", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4860 .set_description("Number of control objects used for cross-RGW communication.")
4861 .set_long_description(
4862 "RGW uses certain control objects to send messages between different RGW "
4863 "processes running on the same zone. These messages include metadata cache "
4864 "invalidation info that is being sent when metadata is modified (such as "
4865 "user or bucket information). A higher number of control objects allows "
4866 "better concurrency of these messages, at the cost of more resource "
4869 Option("rgw_num_rados_handles", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
4871 .set_description("Number of librados handles that RGW uses.")
4872 .set_long_description(
4873 "This param affects the number of separate librados handles it uses to "
4874 "connect to the RADOS backend, which directly affects the number of connections "
4875 "RGW will have to each OSD. A higher number affects resource utilization."),
4877 Option("rgw_verify_ssl", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
4879 .set_description("Should RGW verify SSL when connecing to a remote HTTP server")
4880 .set_long_description(
4881 "RGW can send requests to other RGW servers (e.g., in multi-site sync work). "
4882 "This configurable selects whether RGW should verify the certificate for "
4883 "the remote peer and host.")
4884 .add_see_also("rgw_keystone_verify_ssl"),
4886 Option("rgw_nfs_lru_lanes", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4888 .set_description(""),
4890 Option("rgw_nfs_lru_lane_hiwat", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4892 .set_description(""),
4894 Option("rgw_nfs_fhcache_partitions", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4896 .set_description(""),
4898 Option("rgw_nfs_fhcache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4900 .set_description(""),
4902 Option("rgw_nfs_namespace_expire_secs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4905 .set_description(""),
4907 Option("rgw_nfs_max_gc", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4910 .set_description(""),
4912 Option("rgw_nfs_write_completion_interval_s", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
4914 .set_description(""),
4916 Option("rgw_zone", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4918 .set_description("Zone name")
4919 .add_see_also({"rgw_zonegroup", "rgw_realm"}),
4921 Option("rgw_zone_root_pool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4922 .set_default(".rgw.root")
4923 .set_description("Zone root pool name")
4924 .set_long_description(
4925 "The zone root pool, is the pool where the RGW zone configuration located."
4927 .add_see_also({"rgw_zonegroup_root_pool", "rgw_realm_root_pool", "rgw_period_root_pool"}),
4929 Option("rgw_default_zone_info_oid", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4930 .set_default("default.zone")
4931 .set_description("Default zone info object id")
4932 .set_long_description(
4933 "Name of the RADOS object that holds the default zone information."
4936 Option("rgw_region", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4938 .set_description("Region name")
4939 .set_long_description(
4940 "Obsolete config option. The rgw_zonegroup option should be used instead.")
4941 .add_see_also("rgw_zonegroup"),
4943 Option("rgw_region_root_pool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4944 .set_default(".rgw.root")
4945 .set_description("Region root pool")
4946 .set_long_description(
4947 "Obsolete config option. The rgw_zonegroup_root_pool should be used instead.")
4948 .add_see_also("rgw_zonegroup_root_pool"),
4950 Option("rgw_default_region_info_oid", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4951 .set_default("default.region")
4952 .set_description("Default region info object id")
4953 .set_long_description(
4954 "Obsolete config option. The rgw_default_zonegroup_info_oid should be used instead.")
4955 .add_see_also("rgw_default_zonegroup_info_oid"),
4957 Option("rgw_zonegroup", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4959 .set_description("Zonegroup name")
4960 .add_see_also({"rgw_zone", "rgw_realm"}),
4962 Option("rgw_zonegroup_root_pool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4963 .set_default(".rgw.root")
4964 .set_description("Zonegroup root pool")
4965 .set_long_description(
4966 "The zonegroup root pool, is the pool where the RGW zonegroup configuration located."
4968 .add_see_also({"rgw_zone_root_pool", "rgw_realm_root_pool", "rgw_period_root_pool"}),
4970 Option("rgw_default_zonegroup_info_oid", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4971 .set_default("default.zonegroup")
4972 .set_description(""),
4974 Option("rgw_realm", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4976 .set_description(""),
4978 Option("rgw_realm_root_pool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4979 .set_default(".rgw.root")
4980 .set_description("Realm root pool")
4981 .set_long_description(
4982 "The realm root pool, is the pool where the RGW realm configuration located."
4984 .add_see_also({"rgw_zonegroup_root_pool", "rgw_zone_root_pool", "rgw_period_root_pool"}),
4986 Option("rgw_default_realm_info_oid", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4987 .set_default("default.realm")
4988 .set_description(""),
4990 Option("rgw_period_root_pool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
4991 .set_default(".rgw.root")
4992 .set_description("Period root pool")
4993 .set_long_description(
4994 "The realm root pool, is the pool where the RGW realm configuration located."
4996 .add_see_also({"rgw_zonegroup_root_pool", "rgw_zone_root_pool", "rgw_realm_root_pool"}),
4998 Option("rgw_period_latest_epoch_info_oid", Option::TYPE_STR
, Option::LEVEL_DEV
)
4999 .set_default(".latest_epoch")
5000 .set_description(""),
5002 Option("rgw_log_nonexistent_bucket", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5004 .set_description("Should RGW log operations on bucket that does not exist")
5005 .set_long_description(
5006 "This config option applies to the ops log. When this option is set, the ops log "
5007 "will log operations that are sent to non existing buckets. These operations "
5008 "inherently fail, and do not correspond to a specific user.")
5009 .add_see_also("rgw_enable_ops_log"),
5011 Option("rgw_log_object_name", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5012 .set_default("%Y-%m-%d-%H-%i-%n")
5013 .set_description("Ops log object name format")
5014 .set_long_description(
5015 "Defines the format of the RADOS objects names that ops log uses to store ops "
5017 .add_see_also("rgw_enable_ops_log"),
5019 Option("rgw_log_object_name_utc", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5021 .set_description("Should ops log object name based on UTC")
5022 .set_long_description(
5023 "If set, the names of the RADOS objects that hold the ops log data will be based "
5024 "on UTC time zone. If not set, it will use the local time zone.")
5025 .add_see_also({"rgw_enable_ops_log", "rgw_log_object_name"}),
5027 Option("rgw_usage_max_shards", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5029 .set_description("Number of shards for usage log.")
5030 .set_long_description(
5031 "The number of RADOS objects that RGW will use in order to store the usage log "
5033 .add_see_also("rgw_enable_usage_log"),
5035 Option("rgw_usage_max_user_shards", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5038 .set_description("Number of shards for single user in usage log")
5039 .set_long_description(
5040 "The number of shards that a single user will span over in the usage log.")
5041 .add_see_also("rgw_enable_usage_log"),
5043 Option("rgw_enable_ops_log", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5045 .set_description("Enable ops log")
5046 .add_see_also({"rgw_log_nonexistent_bucket", "rgw_log_object_name", "rgw_ops_log_rados",
5047 "rgw_ops_log_socket_path"}),
5049 Option("rgw_enable_usage_log", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5051 .set_description("Enable usage log")
5052 .add_see_also("rgw_usage_max_shards"),
5054 Option("rgw_ops_log_rados", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5056 .set_description("Use RADOS for ops log")
5057 .set_long_description(
5058 "If set, RGW will store ops log information in RADOS.")
5059 .add_see_also({"rgw_enable_ops_log"}),
5061 Option("rgw_ops_log_socket_path", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5063 .set_description("Unix domain socket path for ops log.")
5064 .set_long_description(
5065 "Path to unix domain socket that RGW will listen for connection on. When connected, "
5066 "RGW will send ops log data through it.")
5067 .add_see_also({"rgw_enable_ops_log", "rgw_ops_log_data_backlog"}),
5069 Option("rgw_ops_log_data_backlog", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5070 .set_default(5 << 20)
5071 .set_description("Ops log socket backlog")
5072 .set_long_description(
5073 "Maximum amount of data backlog that RGW can keep when ops log is configured to "
5074 "send info through unix domain socket. When data backlog is higher than this, "
5075 "ops log entries will be lost. In order to avoid ops log information loss, the "
5076 "listener needs to clear data (by reading it) quickly enough.")
5077 .add_see_also({"rgw_enable_ops_log", "rgw_ops_log_socket_path"}),
5079 Option("rgw_fcgi_socket_backlog", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5081 .set_description("FastCGI socket connection backlog")
5082 .set_long_description(
5083 "Size of FastCGI connection backlog. This reflects the maximum number of new "
5084 "connection requests that RGW can handle concurrently without dropping any. ")
5085 .add_see_also({"rgw_host", "rgw_socket_path"}),
5087 Option("rgw_usage_log_flush_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5089 .set_description("Number of entries in usage log before flushing")
5090 .set_long_description(
5091 "This is the max number of entries that will be held in the usage log, before it "
5092 "will be flushed to the backend. Note that the usage log is periodically flushed, "
5093 "even if number of entries does not reach this threshold. A usage log entry "
5094 "corresponds to one or more operations on a single bucket.i")
5095 .add_see_also({"rgw_enable_usage_log", "rgw_usage_log_tick_interval"}),
5097 Option("rgw_usage_log_tick_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5099 .set_description("Number of seconds between usage log flush cycles")
5100 .set_long_description(
5101 "The number of seconds between consecutive usage log flushes. The usage log will "
5102 "also flush itself to the backend if the number of pending entries reaches a "
5103 "certain threshold.")
5104 .add_see_also({"rgw_enable_usage_log", "rgw_usage_log_flush_threshold"}),
5106 Option("rgw_init_timeout", Option::TYPE_INT
, Option::LEVEL_BASIC
)
5108 .set_description("Initialization timeout")
5109 .set_long_description(
5110 "The time length (in seconds) that RGW will allow for its initialization. RGW "
5111 "process will give up and quit if initialization is not complete after this amount "
5114 Option("rgw_mime_types_file", Option::TYPE_STR
, Option::LEVEL_BASIC
)
5115 .set_default("/etc/mime.types")
5116 .set_description("Path to local mime types file")
5117 .set_long_description(
5118 "The mime types file is needed in Swift when uploading an object. If object's "
5119 "content type is not specified, RGW will use data from this file to assign "
5120 "a content type to the object."),
5122 Option("rgw_gc_max_objs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5124 .set_description("Number of shards for garbage collector data")
5125 .set_long_description(
5126 "The number of garbage collector data shards, is the number of RADOS objects that "
5127 "RGW will use to store the garbage collection information on.")
5128 .add_see_also({"rgw_gc_obj_min_wait", "rgw_gc_processor_max_time", "rgw_gc_processor_period"}),
5130 Option("rgw_gc_obj_min_wait", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5132 .set_description("Garabge collection object expiration time")
5133 .set_long_description(
5134 "The length of time (in seconds) that the RGW collector will wait before purging "
5135 "a deleted object's data. RGW will not remove object immediately, as object could "
5136 "still have readers. A mechanism exists to increase the object's expiration time "
5137 "when it's being read.")
5138 .add_see_also({"rgw_gc_max_objs", "rgw_gc_processor_max_time", "rgw_gc_processor_period"}),
5140 Option("rgw_gc_processor_max_time", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5142 .set_description("Length of time GC processor can lease shard")
5143 .set_long_description(
5144 "Garbage collection thread in RGW process holds a lease on its data shards. These "
5145 "objects contain the information about the objects that need to be removed. RGW "
5146 "takes a lease in order to prevent multiple RGW processes from handling the same "
5147 "objects concurrently. This time signifies that maximum amount of time that RGW "
5148 "is allowed to hold that lease. In the case where RGW goes down uncleanly, this "
5149 "is the amount of time where processing of that data shard will be blocked.")
5150 .add_see_also({"rgw_gc_max_objs", "rgw_gc_obj_min_wait", "rgw_gc_processor_period"}),
5152 Option("rgw_gc_processor_period", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5154 .set_description("Garbage collector cycle run time")
5155 .set_long_description(
5156 "The amount of time between the start of consecutive runs of the garbage collector "
5157 "threads. If garbage collector runs takes more than this period, it will not wait "
5158 "before running again.")
5159 .add_see_also({"rgw_gc_max_objs", "rgw_gc_obj_min_wait", "rgw_gc_processor_max_time"}),
5161 Option("rgw_s3_success_create_obj_status", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5163 .set_description("HTTP return code override for object creation")
5164 .set_long_description(
5165 "If not zero, this is the HTTP return code that will be returned on a succesful S3 "
5166 "object creation."),
5168 Option("rgw_resolve_cname", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5170 .set_description("Support vanity domain names via CNAME")
5171 .set_long_description(
5172 "If true, RGW will query DNS when detecting that it's serving a request that was "
5173 "sent to a host in another domain. If a CNAME record is configured for that domain "
5174 "it will use it instead. This gives user to have the ability of creating a unique "
5175 "domain of their own to point at data in their bucket."),
5177 Option("rgw_obj_stripe_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5179 .set_description("RGW object stripe size")
5180 .set_long_description(
5181 "The size of an object stripe for RGW objects. This is the maximum size a backing "
5182 "RADOS object will have. RGW objects that are larger than this will span over "
5183 "multiple objects."),
5185 Option("rgw_extended_http_attrs", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5187 .set_description("RGW support extended HTTP attrs")
5188 .set_long_description(
5189 "Add new set of attributes that could be set on an object. These extra attributes "
5190 "can be set through HTTP header fields when putting the objects. If set, these "
5191 "attributes will return as HTTP fields when doing GET/HEAD on the object."),
5193 Option("rgw_exit_timeout_secs", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5195 .set_description("RGW shutdown timeout")
5196 .set_long_description("Number of seconds to wait for a process before exiting unconditionally."),
5198 Option("rgw_get_obj_window_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5200 .set_description("RGW object read window size")
5201 .set_long_description("The window size in bytes for a single object read request"),
5203 Option("rgw_get_obj_max_req_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5205 .set_description("RGW object read chunk size")
5206 .set_long_description(
5207 "The maximum request size of a single object read operation sent to RADOS"),
5209 Option("rgw_relaxed_s3_bucket_names", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5211 .set_description("RGW enable relaxed S3 bucket names")
5212 .set_long_description("RGW enable relaxed S3 bucket name rules for US region buckets."),
5214 Option("rgw_defer_to_bucket_acls", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5216 .set_description("Bucket ACLs override object ACLs")
5217 .set_long_description(
5218 "If not empty, a string that selects that mode of operation. 'recurse' will use "
5219 "bucket's ACL for the authorizaton. 'full-control' will allow users that users "
5220 "that have full control permission on the bucket have access to the object."),
5222 Option("rgw_list_buckets_max_chunk", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5224 .set_description("Max number of buckets to retrieve in a single listing operation")
5225 .set_long_description(
5226 "When RGW fetches lists of user's buckets from the backend, this is the max number "
5227 "of entries it will try to retrieve in a single operation. Note that the backend "
5228 "may choose to return a smaller number of entries."),
5230 Option("rgw_md_log_max_shards", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5232 .set_description("RGW number of metadata log shards")
5233 .set_long_description(
5234 "The number of shards the RGW metadata log entries will reside in. This affects "
5235 "the metadata sync parallelism as a shard can only be processed by a single "
5238 Option("rgw_num_zone_opstate_shards", Option::TYPE_INT
, Option::LEVEL_DEV
)
5240 .set_description(""),
5242 Option("rgw_opstate_ratelimit_sec", Option::TYPE_INT
, Option::LEVEL_DEV
)
5244 .set_description(""),
5246 Option("rgw_curl_wait_timeout_ms", Option::TYPE_INT
, Option::LEVEL_DEV
)
5248 .set_description(""),
5250 Option("rgw_curl_low_speed_limit", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5252 .set_long_description(
5253 "It contains the average transfer speed in bytes per second that the "
5254 "transfer should be below during rgw_curl_low_speed_time seconds for libcurl "
5255 "to consider it to be too slow and abort. Set it zero to disable this."),
5257 Option("rgw_curl_low_speed_time", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5259 .set_long_description(
5260 "It contains the time in number seconds that the transfer speed should be below "
5261 "the rgw_curl_low_speed_limit for the library to consider it too slow and abort. "
5262 "Set it zero to disable this."),
5264 Option("rgw_copy_obj_progress", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5266 .set_description("Send progress report through copy operation")
5267 .set_long_description(
5268 "If true, RGW will send progress information when copy operation is executed. "),
5270 Option("rgw_copy_obj_progress_every_bytes", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5272 .set_description("Send copy-object progress info after these many bytes"),
5274 Option("rgw_obj_tombstone_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5276 .set_description("Max number of entries to keep in tombstone cache")
5277 .set_long_description(
5278 "The tombstone cache is used when doing a multi-zone data sync. RGW keeps "
5279 "there information about removed objects which is needed in order to prevent "
5280 "re-syncing of objects that were already removed."),
5282 Option("rgw_data_log_window", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5284 .set_description("Data log time window")
5285 .set_long_description(
5286 "The data log keeps information about buckets that have objectst that were "
5287 "modified within a specific timeframe. The sync process then knows which buckets "
5288 "are needed to be scanned for data sync."),
5290 Option("rgw_data_log_changes_size", Option::TYPE_INT
, Option::LEVEL_DEV
)
5292 .set_description("Max size of pending changes in data log")
5293 .set_long_description(
5294 "RGW will trigger update to the data log if the number of pending entries reached "
5297 Option("rgw_data_log_num_shards", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5299 .set_description("Number of data log shards")
5300 .set_long_description(
5301 "The number of shards the RGW data log entries will reside in. This affects the "
5302 "data sync parallelism as a shard can only be processed by a single RGW at a time."),
5304 Option("rgw_data_log_obj_prefix", Option::TYPE_STR
, Option::LEVEL_DEV
)
5305 .set_default("data_log")
5306 .set_description(""),
5308 Option("rgw_replica_log_obj_prefix", Option::TYPE_STR
, Option::LEVEL_DEV
)
5309 .set_default("replica_log")
5310 .set_description(""),
5312 Option("rgw_bucket_quota_ttl", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5314 .set_description("Bucket quota stats cache TTL")
5315 .set_long_description(
5316 "Length of time for bucket stats to be cached within RGW instance."),
5318 Option("rgw_bucket_quota_soft_threshold", Option::TYPE_FLOAT
, Option::LEVEL_BASIC
)
5320 .set_description("RGW quota soft threshold")
5321 .set_long_description(
5322 "Threshold from which RGW doesn't rely on cached info for quota "
5323 "decisions. This is done for higher accuracy of the quota mechanism at "
5324 "cost of performance, when getting close to the quota limit. The value "
5325 "configured here is the ratio between the data usage to the max usage "
5326 "as specified by the quota."),
5328 Option("rgw_bucket_quota_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5330 .set_description("RGW quota stats cache size")
5331 .set_long_description(
5332 "Maximum number of entries in the quota stats cache."),
5334 Option("rgw_bucket_default_quota_max_objects", Option::TYPE_INT
, Option::LEVEL_BASIC
)
5336 .set_description("Default quota for max objects in a bucket")
5337 .set_long_description(
5338 "The default quota configuration for max number of objects in a bucket. A "
5339 "negative number means 'unlimited'."),
5341 Option("rgw_bucket_default_quota_max_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5343 .set_description("Default quota for total size in a bucket")
5344 .set_long_description(
5345 "The default quota configuration for total size of objects in a bucket. A "
5346 "negative number means 'unlimited'."),
5348 Option("rgw_expose_bucket", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5350 .set_description("Send Bucket HTTP header with the response")
5351 .set_long_description(
5352 "If true, RGW will send a Bucket HTTP header with the responses. The header will "
5353 "contain the name of the bucket the operation happened on."),
5355 Option("rgw_frontends", Option::TYPE_STR
, Option::LEVEL_BASIC
)
5356 .set_default("civetweb port=7480")
5357 .set_description("RGW frontends configuration")
5358 .set_long_description(
5359 "A comma delimited list of frontends configuration. Each configuration contains "
5360 "the type of the frontend followed by an optional space delimited set of "
5361 "key=value config parameters."),
5363 Option("rgw_user_quota_bucket_sync_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5365 .set_description("User quota bucket sync interval")
5366 .set_long_description(
5367 "Time period for accumulating modified buckets before syncing these stats."),
5369 Option("rgw_user_quota_sync_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5371 .set_description("User quota sync interval")
5372 .set_long_description(
5373 "Time period for accumulating modified buckets before syncing entire user stats."),
5375 Option("rgw_user_quota_sync_idle_users", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5377 .set_description("Should sync idle users quota")
5378 .set_long_description(
5379 "Whether stats for idle users be fully synced."),
5381 Option("rgw_user_quota_sync_wait_time", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5383 .set_description("User quota full-sync wait time")
5384 .set_long_description(
5385 "Minimum time between two full stats sync for non-idle users."),
5387 Option("rgw_user_default_quota_max_objects", Option::TYPE_INT
, Option::LEVEL_BASIC
)
5389 .set_description("User quota max objects")
5390 .set_long_description(
5391 "The default quota configuration for total number of objects for a single user. A "
5392 "negative number means 'unlimited'."),
5394 Option("rgw_user_default_quota_max_size", Option::TYPE_INT
, Option::LEVEL_BASIC
)
5396 .set_description("User quota max size")
5397 .set_long_description(
5398 "The default quota configuration for total size of objects for a single user. A "
5399 "negative number means 'unlimited'."),
5401 Option("rgw_multipart_min_part_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5403 .set_description("Minimum S3 multipart-upload part size")
5404 .set_long_description(
5405 "When doing a multipart upload, each part (other than the last part) should be "
5406 "at least this size."),
5408 Option("rgw_multipart_part_upload_limit", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5410 .set_description("Max number of parts in multipart upload"),
5412 Option("rgw_max_slo_entries", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5414 .set_description("Max number of entries in Swift Static Large Object manifest"),
5416 Option("rgw_olh_pending_timeout_sec", Option::TYPE_INT
, Option::LEVEL_DEV
)
5418 .set_description("Max time for pending OLH change to complete")
5419 .set_long_description(
5420 "OLH is a versioned object's logical head. Operations on it are journaled and "
5421 "as pending before completion. If an operation doesn't complete with this amount "
5422 "of seconds, we remove the operation from the journal."),
5424 Option("rgw_user_max_buckets", Option::TYPE_INT
, Option::LEVEL_BASIC
)
5426 .set_description("Max number of buckets per user")
5427 .set_long_description(
5428 "A user can create this many buckets. Zero means unlimmited, negative number means "
5429 "user cannot create any buckets (although user will retain buckets already created."),
5431 Option("rgw_objexp_gc_interval", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5432 .set_default(10_min
)
5433 .set_description("Swift objects expirer garbage collector interval"),
5435 Option("rgw_objexp_hints_num_shards", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5437 .set_description("Number of object expirer data shards")
5438 .set_long_description(
5439 "The number of shards the (Swift) object expirer will store its data on."),
5441 Option("rgw_objexp_chunk_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
5443 .set_description(""),
5445 Option("rgw_enable_static_website", Option::TYPE_BOOL
, Option::LEVEL_BASIC
)
5447 .set_description("Enable static website APIs")
5448 .set_long_description(
5449 "This configurable controls whether RGW handles the website control APIs. RGW can "
5450 "server static websites if s3website hostnames are configured, and unrelated to "
5451 "this configurable."),
5453 Option("rgw_log_http_headers", Option::TYPE_STR
, Option::LEVEL_BASIC
)
5455 .set_description("List of HTTP headers to log")
5456 .set_long_description(
5457 "A comma delimited list of HTTP headers to log when seen, ignores case (e.g., "
5458 "http_x_forwarded_for)."),
5460 Option("rgw_num_async_rados_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5462 .set_description("Number of concurrent RADOS operations in multisite sync")
5463 .set_long_description(
5464 "The number of concurrent RADOS IO operations that will be triggered for handling "
5465 "multisite sync operations. This includes control related work, and not the actual "
5466 "sync operations."),
5468 Option("rgw_md_notify_interval_msec", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5470 .set_description("Length of time to aggregate metadata changes")
5471 .set_long_description(
5472 "Length of time (in milliseconds) in which the master zone aggregates all the "
5473 "metadata changes that occured, before sending notifications to all the other "
5476 Option("rgw_run_sync_thread", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5478 .set_description("Should run sync thread"),
5480 Option("rgw_sync_lease_period", Option::TYPE_INT
, Option::LEVEL_DEV
)
5482 .set_description(""),
5484 Option("rgw_sync_log_trim_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5486 .set_description("Sync log trim interval")
5487 .set_long_description(
5488 "Time in seconds between attempts to trim sync logs."),
5490 Option("rgw_sync_log_trim_max_buckets", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5492 .set_description("Maximum number of buckets to trim per interval")
5493 .set_long_description("The maximum number of buckets to consider for bucket index log trimming each trim interval, regardless of the number of bucket index shards. Priority is given to buckets with the most sync activity over the last trim interval.")
5494 .add_see_also("rgw_sync_log_trim_interval")
5495 .add_see_also("rgw_sync_log_trim_min_cold_buckets")
5496 .add_see_also("rgw_sync_log_trim_concurrent_buckets"),
5498 Option("rgw_sync_log_trim_min_cold_buckets", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5500 .set_description("Minimum number of cold buckets to trim per interval")
5501 .set_long_description("Of the `rgw_sync_log_trim_max_buckets` selected for bucket index log trimming each trim interval, at least this many of them must be 'cold' buckets. These buckets are selected in order from the list of all bucket instances, to guarantee that all buckets will be visited eventually.")
5502 .add_see_also("rgw_sync_log_trim_interval")
5503 .add_see_also("rgw_sync_log_trim_max_buckets")
5504 .add_see_also("rgw_sync_log_trim_concurrent_buckets"),
5506 Option("rgw_sync_log_trim_concurrent_buckets", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5508 .set_description("Maximum number of buckets to trim in parallel")
5509 .add_see_also("rgw_sync_log_trim_interval")
5510 .add_see_also("rgw_sync_log_trim_max_buckets")
5511 .add_see_also("rgw_sync_log_trim_min_cold_buckets"),
5513 Option("rgw_sync_data_inject_err_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
5515 .set_description(""),
5517 Option("rgw_sync_meta_inject_err_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
5519 .set_description(""),
5521 Option("rgw_period_push_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5523 .set_description("Period push interval")
5524 .set_long_description(
5525 "Number of seconds to wait before retrying 'period push' operation."),
5527 Option("rgw_period_push_interval_max", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5529 .set_description("Period push maximum interval")
5530 .set_long_description(
5531 "The max number of seconds to wait before retrying 'period push' after exponential "
5534 Option("rgw_safe_max_objects_per_shard", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5535 .set_default(100*1024)
5536 .set_description("Safe number of objects per shard")
5537 .set_long_description(
5538 "This is the max number of objects per bucket index shard that RGW considers "
5539 "safe. RGW will warn if it identifies a bucket where its per-shard count is "
5540 "higher than a percentage of this number.")
5541 .add_see_also("rgw_shard_warning_threshold"),
5543 Option("rgw_shard_warning_threshold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5545 .set_description("Warn about max objects per shard")
5546 .set_long_description(
5547 "Warn if number of objects per shard in a specific bucket passed this percentage "
5548 "of the safe number.")
5549 .add_see_also("rgw_safe_max_objects_per_shard"),
5551 Option("rgw_swift_versioning_enabled", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5553 .set_description("Enable Swift versioning"),
5555 Option("rgw_swift_custom_header", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5557 .set_description("Enable swift custom header")
5558 .set_long_description(
5559 "If not empty, specifies a name of HTTP header that can include custom data. When "
5560 "uploading an object, if this header is passed RGW will store this header info "
5561 "and it will be available when listing the bucket."),
5563 Option("rgw_swift_need_stats", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5565 .set_description("Enable stats on bucket listing in Swift"),
5567 Option("rgw_reshard_num_logs", Option::TYPE_INT
, Option::LEVEL_DEV
)
5569 .set_description(""),
5571 Option("rgw_reshard_bucket_lock_duration", Option::TYPE_INT
, Option::LEVEL_DEV
)
5573 .set_description(""),
5575 Option("rgw_crypt_require_ssl", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5577 .set_description("Requests including encryption key headers must be sent over ssl"),
5579 Option("rgw_crypt_default_encryption_key", Option::TYPE_STR
, Option::LEVEL_DEV
)
5581 .set_description(""),
5583 Option("rgw_crypt_s3_kms_encryption_keys", Option::TYPE_STR
, Option::LEVEL_DEV
)
5585 .set_description(""),
5587 Option("rgw_crypt_suppress_logs", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5589 .set_description("Suppress logs that might print client key"),
5591 Option("rgw_list_bucket_min_readahead", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5593 .set_description("Minimum number of entries to request from rados for bucket listing"),
5595 Option("rgw_rest_getusage_op_compat", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5597 .set_description("REST GetUsage request backward compatibility"),
5599 Option("rgw_torrent_flag", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5601 .set_description("When true, uploaded objects will calculate and store "
5602 "a SHA256 hash of object data so the object can be "
5603 "retrieved as a torrent file"),
5605 Option("rgw_torrent_tracker", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5607 .set_description("Torrent field annouce and annouce list"),
5609 Option("rgw_torrent_createby", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5611 .set_description("torrent field created by"),
5613 Option("rgw_torrent_comment", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5615 .set_description("Torrent field comment"),
5617 Option("rgw_torrent_encoding", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5619 .set_description("torrent field encoding"),
5621 Option("rgw_data_notify_interval_msec", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5623 .set_description("data changes notification interval to followers"),
5625 Option("rgw_torrent_origin", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5627 .set_description("Torrent origin"),
5629 Option("rgw_torrent_sha_unit", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5630 .set_default(512*1024)
5631 .set_description(""),
5633 Option("rgw_dynamic_resharding", Option::TYPE_BOOL
, Option::LEVEL_BASIC
)
5635 .set_description("Enable dynamic resharding")
5636 .set_long_description(
5637 "If true, RGW will dynamicall increase the number of shards in buckets that have "
5638 "a high number of objects per shard.")
5639 .add_see_also("rgw_max_objs_per_shard"),
5641 Option("rgw_max_objs_per_shard", Option::TYPE_INT
, Option::LEVEL_BASIC
)
5642 .set_default(100000)
5643 .set_description("Max objects per shard for dynamic resharding")
5644 .set_long_description(
5645 "This is the max number of objects per bucket index shard that RGW will "
5646 "allow with dynamic resharding. RGW will trigger an automatic reshard operation "
5647 "on the bucket if it exceeds this number.")
5648 .add_see_also("rgw_dynamic_resharding"),
5650 Option("rgw_reshard_thread_interval", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5651 .set_default(10_min
)
5652 .set_description(""),
5654 Option("rgw_cache_expiry_interval", Option::TYPE_UINT
,
5655 Option::LEVEL_ADVANCED
)
5657 .set_description("Number of seconds before entries in the bucket info "
5658 "cache are assumed stale and re-fetched. Zero is never.")
5659 .add_tag("performance")
5661 .set_long_description("The Rados Gateway stores metadata about buckets in "
5662 "an internal cache. This should be kept consistent "
5663 "by the OSD's relaying notify events between "
5664 "multiple watching RGW processes. In the event "
5665 "that this notification protocol fails, bounding "
5666 "the length of time that any data in the cache will "
5667 "be assumed valid will ensure that any RGW instance "
5668 "that falls out of sync will eventually recover. "
5669 "This seems to be an issue mostly for large numbers "
5670 "of RGW instances under heavy use. If you would like "
5671 "to turn off cache expiry, set this value to zero."),
5676 static std::vector
<Option
> get_rbd_options() {
5677 return std::vector
<Option
>({
5678 Option("rbd_default_pool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5680 .set_description("default pool for storing new images")
5681 .set_validator([](std::string
*value
, std::string
*error_message
){
5682 boost::regex
pattern("^[^@/]+$");
5683 if (!boost::regex_match (*value
, pattern
)) {
5685 *error_message
= "invalid RBD default pool, resetting to 'rbd'";
5690 Option("rbd_default_data_pool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5692 .set_description("default pool for storing data blocks for new images")
5693 .set_validator([](std::string
*value
, std::string
*error_message
){
5694 boost::regex
pattern("^[^@/]*$");
5695 if (!boost::regex_match (*value
, pattern
)) {
5697 *error_message
= "ignoring invalid RBD data pool";
5702 Option("rbd_default_features", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5703 .set_default("layering,exclusive-lock,object-map,fast-diff,deep-flatten")
5704 .set_description("default v2 image features for new images")
5705 .set_long_description(
5706 "RBD features are only applicable for v2 images. This setting accepts "
5707 "either an integer bitmask value or comma-delimited string of RBD "
5708 "feature names. This setting is always internally stored as an integer "
5709 "bitmask value. The mapping between feature bitmask value and feature "
5710 "name is as follows: +1 -> layering, +2 -> striping, "
5711 "+4 -> exclusive-lock, +8 -> object-map, +16 -> fast-diff, "
5712 "+32 -> deep-flatten, +64 -> journaling, +128 -> data-pool")
5714 .set_validator([](std::string
*value
, std::string
*error_message
){
5715 static const std::map
<std::string
, uint64_t> FEATURE_MAP
= {
5716 {RBD_FEATURE_NAME_LAYERING
, RBD_FEATURE_LAYERING
},
5717 {RBD_FEATURE_NAME_STRIPINGV2
, RBD_FEATURE_STRIPINGV2
},
5718 {RBD_FEATURE_NAME_EXCLUSIVE_LOCK
, RBD_FEATURE_EXCLUSIVE_LOCK
},
5719 {RBD_FEATURE_NAME_OBJECT_MAP
, RBD_FEATURE_OBJECT_MAP
},
5720 {RBD_FEATURE_NAME_FAST_DIFF
, RBD_FEATURE_FAST_DIFF
},
5721 {RBD_FEATURE_NAME_DEEP_FLATTEN
, RBD_FEATURE_DEEP_FLATTEN
},
5722 {RBD_FEATURE_NAME_JOURNALING
, RBD_FEATURE_JOURNALING
},
5723 {RBD_FEATURE_NAME_DATA_POOL
, RBD_FEATURE_DATA_POOL
},
5725 static_assert((RBD_FEATURE_DATA_POOL
<< 1) > RBD_FEATURES_ALL
,
5726 "new RBD feature added");
5728 // convert user-friendly comma delimited feature name list to a bitmask
5729 // that is used by the librbd API
5730 uint64_t features
= 0;
5731 error_message
->clear();
5734 features
= boost::lexical_cast
<decltype(features
)>(*value
);
5736 uint64_t unsupported_features
= (features
& ~RBD_FEATURES_ALL
);
5737 if (unsupported_features
!= 0ull) {
5738 features
&= RBD_FEATURES_ALL
;
5740 std::stringstream ss
;
5741 ss
<< "ignoring unknown feature mask 0x"
5742 << std::hex
<< unsupported_features
;
5743 *error_message
= ss
.str();
5745 } catch (const boost::bad_lexical_cast
& ) {
5747 std::vector
<std::string
> feature_names
;
5748 boost::split(feature_names
, *value
, boost::is_any_of(","));
5749 for (auto feature_name
: feature_names
) {
5750 boost::trim(feature_name
);
5751 auto feature_it
= FEATURE_MAP
.find(feature_name
);
5752 if (feature_it
!= FEATURE_MAP
.end()) {
5753 features
+= feature_it
->second
;
5755 if (!error_message
->empty()) {
5756 *error_message
+= ", ";
5758 *error_message
+= "ignoring unknown feature " + feature_name
;
5763 if (features
== 0 && r
== -EINVAL
) {
5764 features
= RBD_FEATURES_DEFAULT
;
5767 *value
= stringify(features
);
5771 Option("rbd_op_threads", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5773 .set_description("number of threads to utilize for internal processing"),
5775 Option("rbd_op_thread_timeout", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5777 .set_description("time in seconds for detecting a hung thread"),
5779 Option("rbd_non_blocking_aio", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5781 .set_description("process AIO ops from a dispatch thread to prevent blocking"),
5783 Option("rbd_cache", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5785 .set_description("whether to enable caching (writeback unless rbd_cache_max_dirty is 0)"),
5787 Option("rbd_cache_writethrough_until_flush", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5789 .set_description("whether to make writeback caching writethrough until "
5790 "flush is called, to be sure the user of librbd will send "
5791 "flushes so that writeback is safe"),
5793 Option("rbd_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5794 .set_default(32<<20)
5795 .set_description("cache size in bytes"),
5797 Option("rbd_cache_max_dirty", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5798 .set_default(24<<20)
5799 .set_description("dirty limit in bytes - set to 0 for write-through caching"),
5801 Option("rbd_cache_target_dirty", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5802 .set_default(16<<20)
5803 .set_description("target dirty limit in bytes"),
5805 Option("rbd_cache_max_dirty_age", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5807 .set_description("seconds in cache before writeback starts"),
5809 Option("rbd_cache_max_dirty_object", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5811 .set_description("dirty limit for objects - set to 0 for auto calculate from rbd_cache_size"),
5813 Option("rbd_cache_block_writes_upfront", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5815 .set_description("whether to block writes to the cache before the aio_write call completes"),
5817 Option("rbd_concurrent_management_ops", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5820 .set_description("how many operations can be in flight for a management operation like deleting or resizing an image"),
5822 Option("rbd_balance_snap_reads", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5824 .set_description("distribute snap read requests to random OSD"),
5826 Option("rbd_localize_snap_reads", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5828 .set_description("localize snap read requests to closest OSD"),
5830 Option("rbd_balance_parent_reads", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5832 .set_description("distribute parent read requests to random OSD"),
5834 Option("rbd_localize_parent_reads", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5836 .set_description("localize parent requests to closest OSD"),
5838 Option("rbd_sparse_read_threshold_bytes", Option::TYPE_UINT
,
5839 Option::LEVEL_ADVANCED
)
5841 .set_description("threshold for issuing a sparse-read")
5842 .set_long_description("minimum number of sequential bytes to read against "
5843 "an object before issuing a sparse-read request to "
5844 "the cluster. 0 implies it must be a full object read"
5845 "to issue a sparse-read, 1 implies always use "
5846 "sparse-read, and any value larger than the maximum "
5847 "object size will disable sparse-read for all "
5850 Option("rbd_readahead_trigger_requests", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5852 .set_description("number of sequential requests necessary to trigger readahead"),
5854 Option("rbd_readahead_max_bytes", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5856 .set_description("set to 0 to disable readahead"),
5858 Option("rbd_readahead_disable_after_bytes", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5860 .set_description("how many bytes are read in total before readahead is disabled"),
5862 Option("rbd_clone_copy_on_read", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5864 .set_description("copy-up parent image blocks to clone upon read request"),
5866 Option("rbd_blacklist_on_break_lock", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5868 .set_description("whether to blacklist clients whose lock was broken"),
5870 Option("rbd_blacklist_expire_seconds", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5872 .set_description("number of seconds to blacklist - set to 0 for OSD default"),
5874 Option("rbd_request_timed_out_seconds", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5876 .set_description("number of seconds before maintenance request times out"),
5878 Option("rbd_skip_partial_discard", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5880 .set_description("when trying to discard a range inside an object, set to true to skip zeroing the range"),
5882 Option("rbd_enable_alloc_hint", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5884 .set_description("when writing a object, it will issue a hint to osd backend to indicate the expected size object need"),
5886 Option("rbd_tracing", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5888 .set_description("true if LTTng-UST tracepoints should be enabled"),
5890 Option("rbd_blkin_trace_all", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5892 .set_description("create a blkin trace for all RBD requests"),
5894 Option("rbd_validate_pool", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5896 .set_description("validate empty pools for RBD compatibility"),
5898 Option("rbd_validate_names", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5900 .set_description("validate new image names for RBD compatibility"),
5902 Option("rbd_auto_exclusive_lock_until_manual_request", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5904 .set_description("automatically acquire/release exclusive lock until it is explicitly requested"),
5906 Option("rbd_mirroring_resync_after_disconnect", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
5908 .set_description("automatically start image resync after mirroring is disconnected due to being laggy"),
5910 Option("rbd_mirroring_replay_delay", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5912 .set_description("time-delay in seconds for rbd-mirror asynchronous replication"),
5914 Option("rbd_default_format", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5916 .set_description("default image format for new images"),
5918 Option("rbd_default_order", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5920 .set_description("default order (data block object size) for new images"),
5922 Option("rbd_default_stripe_count", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5924 .set_description("default stripe count for new images"),
5926 Option("rbd_default_stripe_unit", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5928 .set_description("default stripe width for new images"),
5930 Option("rbd_default_map_options", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5932 .set_description("default krbd map options"),
5934 Option("rbd_journal_order", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5937 .set_description("default order (object size) for journal data objects"),
5939 Option("rbd_journal_splay_width", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5941 .set_description("number of active journal objects"),
5943 Option("rbd_journal_commit_age", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5945 .set_description("commit time interval, seconds"),
5947 Option("rbd_journal_object_flush_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5949 .set_description("maximum number of pending commits per journal object"),
5951 Option("rbd_journal_object_flush_bytes", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5953 .set_description("maximum number of pending bytes per journal object"),
5955 Option("rbd_journal_object_flush_age", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5957 .set_description("maximum age (in seconds) for pending commits"),
5959 Option("rbd_journal_pool", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
5961 .set_description("pool for journal objects"),
5963 Option("rbd_journal_max_payload_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5965 .set_description("maximum journal payload size before splitting"),
5967 Option("rbd_journal_max_concurrent_object_sets", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5969 .set_description("maximum number of object sets a journal client can be behind before it is automatically unregistered"),
5973 static std::vector
<Option
> get_rbd_mirror_options() {
5974 return std::vector
<Option
>({
5975 Option("rbd_mirror_journal_commit_age", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5977 .set_description("commit time interval, seconds"),
5979 Option("rbd_mirror_journal_poll_age", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5981 .set_description("maximum age (in seconds) between successive journal polls"),
5983 Option("rbd_mirror_journal_max_fetch_bytes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5985 .set_description("maximum bytes to read from each journal data object per fetch"),
5987 Option("rbd_mirror_sync_point_update_age", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
5989 .set_description("number of seconds between each update of the image sync point object number"),
5991 Option("rbd_mirror_concurrent_image_syncs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
5993 .set_description("maximum number of image syncs in parallel"),
5995 Option("rbd_mirror_pool_replayers_refresh_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
5997 .set_description("interval to refresh peers in rbd-mirror daemon"),
5999 Option("rbd_mirror_delete_retry_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6001 .set_description("interval to check and retry the failed requests in deleter"),
6003 Option("rbd_mirror_image_state_check_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6006 .set_description("interval to get images from pool watcher and set sources in replayer"),
6008 Option("rbd_mirror_leader_heartbeat_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6011 .set_description("interval (in seconds) between mirror leader heartbeats"),
6013 Option("rbd_mirror_leader_max_missed_heartbeats", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6015 .set_description("number of missed heartbeats for non-lock owner to attempt to acquire lock"),
6017 Option("rbd_mirror_leader_max_acquire_attempts_before_break", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6019 .set_description("number of failed attempts to acquire lock after missing heartbeats before breaking lock"),
6023 std::vector
<Option
> get_mds_options() {
6024 return std::vector
<Option
>({
6025 Option("mds_data", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
6026 .set_default("/var/lib/ceph/mds/$cluster-$id")
6027 .set_description(""),
6029 Option("mds_max_file_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6030 .set_default(1ULL << 40)
6031 .set_description(""),
6033 Option("mds_max_xattr_pairs_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6034 .set_default(64 << 10)
6035 .set_description(""),
6037 Option("mds_cache_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6039 .set_description("maximum number of inodes in MDS cache (<=0 is unlimited)")
6040 .set_long_description("This tunable is no longer recommended. Use mds_cache_memory_limit."),
6042 Option("mds_cache_memory_limit", Option::TYPE_UINT
, Option::LEVEL_BASIC
)
6043 .set_default(1*(1LL<<30))
6044 .set_description("target maximum memory usage of MDS cache")
6045 .set_long_description("This sets a target maximum memory usage of the MDS cache and is the primary tunable to limit the MDS memory usage. The MDS will try to stay under a reservation of this limit (by default 95%; 1 - mds_cache_reservation) by trimming unused metadata in its cache and recalling cached items in the client caches. It is possible for the MDS to exceed this limit due to slow recall from clients. The mds_health_cache_threshold (150%) sets a cache full threshold for when the MDS signals a cluster health warning."),
6047 Option("mds_cache_reservation", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6049 .set_description("amount of memory to reserve"),
6051 Option("mds_health_cache_threshold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6053 .set_description("threshold for cache size to generate health warning"),
6055 Option("mds_cache_mid", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6057 .set_description(""),
6059 Option("mds_max_file_recover", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6061 .set_description(""),
6063 Option("mds_dir_max_commit_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6065 .set_description(""),
6067 Option("mds_dir_keys_per_op", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6069 .set_description(""),
6071 Option("mds_decay_halflife", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6073 .set_description(""),
6075 Option("mds_beacon_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6077 .set_description(""),
6079 Option("mds_beacon_grace", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6081 .set_description(""),
6083 Option("mds_enforce_unique_name", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6085 .set_description(""),
6087 Option("mds_session_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6089 .set_description(""),
6091 Option("mds_session_blacklist_on_timeout", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6093 .set_description(""),
6095 Option("mds_session_blacklist_on_evict", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6097 .set_description(""),
6099 Option("mds_sessionmap_keys_per_op", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6101 .set_description(""),
6103 Option("mds_recall_state_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6105 .set_description(""),
6107 Option("mds_freeze_tree_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6109 .set_description(""),
6111 Option("mds_session_autoclose", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6113 .set_description(""),
6115 Option("mds_health_summarize_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6117 .set_description(""),
6119 Option("mds_reconnect_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6121 .set_description(""),
6123 Option("mds_tick_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6125 .set_description(""),
6127 Option("mds_dirstat_min_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6129 .set_description(""),
6131 Option("mds_scatter_nudge_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6133 .set_description(""),
6135 Option("mds_client_prealloc_inos", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6137 .set_description(""),
6139 Option("mds_early_reply", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6141 .set_description(""),
6143 Option("mds_default_dir_hash", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6144 .set_default(CEPH_STR_HASH_RJENKINS
)
6145 .set_description(""),
6147 Option("mds_log_pause", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6149 .set_description(""),
6151 Option("mds_log_skip_corrupt_events", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6153 .set_description(""),
6155 Option("mds_log_max_events", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6157 .set_description(""),
6159 Option("mds_log_events_per_segment", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6161 .set_description(""),
6163 Option("mds_log_segment_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6165 .set_description(""),
6167 Option("mds_log_max_segments", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6169 .set_description(""),
6171 Option("mds_bal_export_pin", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6173 .set_description(""),
6175 Option("mds_bal_sample_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6177 .set_description(""),
6179 Option("mds_bal_replicate_threshold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6181 .set_description(""),
6183 Option("mds_bal_unreplicate_threshold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6185 .set_description(""),
6187 Option("mds_bal_frag", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6189 .set_description(""),
6191 Option("mds_bal_split_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6193 .set_description(""),
6195 Option("mds_bal_split_rd", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6197 .set_description(""),
6199 Option("mds_bal_split_wr", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6201 .set_description(""),
6203 Option("mds_bal_split_bits", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6205 .set_description(""),
6207 Option("mds_bal_merge_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6209 .set_description(""),
6211 Option("mds_bal_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6213 .set_description(""),
6215 Option("mds_bal_fragment_interval", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6217 .set_description(""),
6219 Option("mds_bal_fragment_size_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6220 .set_default(10000*10)
6221 .set_description(""),
6223 Option("mds_bal_fragment_fast_factor", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6225 .set_description(""),
6227 Option("mds_bal_idle_threshold", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6229 .set_description(""),
6231 Option("mds_bal_max", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6233 .set_description(""),
6235 Option("mds_bal_max_until", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6237 .set_description(""),
6239 Option("mds_bal_mode", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6241 .set_description(""),
6243 Option("mds_bal_min_rebalance", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6245 .set_description(""),
6247 Option("mds_bal_min_start", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6249 .set_description(""),
6251 Option("mds_bal_need_min", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6253 .set_description(""),
6255 Option("mds_bal_need_max", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6257 .set_description(""),
6259 Option("mds_bal_midchunk", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6261 .set_description(""),
6263 Option("mds_bal_minchunk", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6265 .set_description(""),
6267 Option("mds_bal_target_decay", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6269 .set_description(""),
6271 Option("mds_replay_interval", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6273 .set_description(""),
6275 Option("mds_shutdown_check", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6277 .set_description(""),
6279 Option("mds_thrash_exports", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6281 .set_description(""),
6283 Option("mds_thrash_fragments", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6285 .set_description(""),
6287 Option("mds_dump_cache_on_map", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6289 .set_description(""),
6291 Option("mds_dump_cache_after_rejoin", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6293 .set_description(""),
6295 Option("mds_verify_scatter", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6297 .set_description(""),
6299 Option("mds_debug_scatterstat", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6301 .set_description(""),
6303 Option("mds_debug_frag", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6305 .set_description(""),
6307 Option("mds_debug_auth_pins", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6309 .set_description(""),
6311 Option("mds_debug_subtrees", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6313 .set_description(""),
6315 Option("mds_kill_mdstable_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6317 .set_description(""),
6319 Option("mds_max_export_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
6321 .set_description(""),
6323 Option("mds_kill_export_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6325 .set_description(""),
6327 Option("mds_kill_import_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6329 .set_description(""),
6331 Option("mds_kill_link_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6333 .set_description(""),
6335 Option("mds_kill_rename_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6337 .set_description(""),
6339 Option("mds_kill_openc_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6341 .set_description(""),
6343 Option("mds_kill_journal_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6345 .set_description(""),
6347 Option("mds_kill_journal_expire_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6349 .set_description(""),
6351 Option("mds_kill_journal_replay_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6353 .set_description(""),
6355 Option("mds_journal_format", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6357 .set_description(""),
6359 Option("mds_kill_create_at", Option::TYPE_INT
, Option::LEVEL_DEV
)
6361 .set_description(""),
6363 Option("mds_inject_traceless_reply_probability", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
6365 .set_description(""),
6367 Option("mds_wipe_sessions", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6369 .set_description(""),
6371 Option("mds_wipe_ino_prealloc", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6373 .set_description(""),
6375 Option("mds_skip_ino", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6377 .set_description(""),
6379 Option("mds_standby_for_name", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
6381 .set_description(""),
6383 Option("mds_standby_for_rank", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6385 .set_description(""),
6387 Option("mds_standby_for_fscid", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6389 .set_description(""),
6391 Option("mds_standby_replay", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6393 .set_description(""),
6395 Option("mds_enable_op_tracker", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6397 .set_description(""),
6399 Option("mds_op_history_size", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6401 .set_description(""),
6403 Option("mds_op_history_duration", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6405 .set_description(""),
6407 Option("mds_op_complaint_time", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6409 .set_description(""),
6411 Option("mds_op_log_threshold", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6413 .set_description(""),
6415 Option("mds_snap_min_uid", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6417 .set_description(""),
6419 Option("mds_snap_max_uid", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6420 .set_default(4294967294)
6421 .set_description(""),
6423 Option("mds_snap_rstat", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6425 .set_description(""),
6427 Option("mds_verify_backtrace", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6429 .set_description(""),
6431 Option("mds_max_completed_flushes", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6432 .set_default(100000)
6433 .set_description(""),
6435 Option("mds_max_completed_requests", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6436 .set_default(100000)
6437 .set_description(""),
6439 Option("mds_action_on_write_error", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6441 .set_description(""),
6443 Option("mds_mon_shutdown_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6445 .set_description(""),
6447 Option("mds_max_purge_files", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6449 .set_description(""),
6451 Option("mds_max_purge_ops", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6453 .set_description(""),
6455 Option("mds_max_purge_ops_per_pg", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6457 .set_description(""),
6459 Option("mds_purge_queue_busy_flush_period", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6461 .set_description(""),
6463 Option("mds_root_ino_uid", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6465 .set_description(""),
6467 Option("mds_root_ino_gid", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6469 .set_description(""),
6471 Option("mds_max_scrub_ops_in_progress", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6473 .set_description(""),
6475 Option("mds_damage_table_max_entries", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6477 .set_description(""),
6479 Option("mds_client_writeable_range_max_inc_objs", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6481 .set_description(""),
6483 Option("mds_min_caps_per_client", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6485 .set_description("minimum number of capabilities a client may hold"),
6487 Option("mds_max_ratio_caps_per_client", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
6489 .set_description("maximum ratio of current caps that may be recalled during MDS cache pressure"),
6490 Option("mds_hack_allow_loading_invalid_metadata", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6492 .set_description("INTENTIONALLY CAUSE DATA LOSS by bypasing checks for invalid metadata on disk. Allows testing repair tools."),
6494 Option("mds_inject_migrator_session_race", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6495 .set_default(false),
6497 Option("mds_inject_migrator_message_loss", Option::TYPE_INT
, Option::LEVEL_DEV
)
6499 .set_description(""),
6501 Option("mds_max_retries_on_remount_failure", Option::TYPE_UINT
, Option::LEVEL_ADVANCED
)
6503 .set_description("number of consecutive failed remount attempts for invalidating kernel dcache after which client would abort."),
6505 Option("mds_request_load_average_decay_rate", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6507 .set_description("rate of decay in seconds for calculating request load average"),
6509 Option("mds_cap_revoke_eviction_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6511 .set_description("number of seconds after which clients which have not responded to cap revoke messages by the MDS are evicted."),
6515 std::vector
<Option
> get_mds_client_options() {
6516 return std::vector
<Option
>({
6517 Option("client_cache_size", Option::TYPE_INT
, Option::LEVEL_BASIC
)
6519 .set_description("soft maximum number of directory entries in client cache"),
6521 Option("client_cache_mid", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6523 .set_description("mid-point of client cache LRU"),
6525 Option("client_use_random_mds", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6527 .set_description("issue new requests to a random active MDS"),
6529 Option("client_mount_timeout", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6531 .set_description("timeout for mounting CephFS (seconds)"),
6533 Option("client_tick_interval", Option::TYPE_FLOAT
, Option::LEVEL_DEV
)
6535 .set_description("seconds between client upkeep ticks"),
6537 Option("client_trace", Option::TYPE_STR
, Option::LEVEL_DEV
)
6539 .set_description("file containing trace of client operations"),
6541 Option("client_readahead_min", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6542 .set_default(128*1024)
6543 .set_description("minimum bytes to readahead in a file"),
6545 Option("client_readahead_max_bytes", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6547 .set_description("maximum bytes to readahead in a file (zero is unlimited)"),
6549 Option("client_readahead_max_periods", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6551 .set_description("maximum stripe periods to readahead in a file"),
6553 Option("client_reconnect_stale", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6555 .set_description("reconnect when the session becomes stale"),
6557 Option("client_snapdir", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
6558 .set_default(".snap")
6559 .set_description("pseudo directory for snapshot access to a directory"),
6561 Option("client_mountpoint", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
6563 .set_description("default mount-point"),
6565 Option("client_mount_uid", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6567 .set_description("uid to mount as"),
6569 Option("client_mount_gid", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6571 .set_description("gid to mount as"),
6573 /* RADOS client option */
6574 Option("client_notify_timeout", Option::TYPE_INT
, Option::LEVEL_DEV
)
6576 .set_description(""),
6578 /* RADOS client option */
6579 Option("osd_client_watch_timeout", Option::TYPE_INT
, Option::LEVEL_DEV
)
6581 .set_description(""),
6583 Option("client_caps_release_delay", Option::TYPE_INT
, Option::LEVEL_DEV
)
6585 .set_description(""),
6587 Option("client_quota_df", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6589 .set_description("show quota usage for statfs (df)"),
6591 Option("client_oc", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6593 .set_description("enable object caching"),
6595 Option("client_oc_size", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6597 .set_description("maximum size of object cache"),
6599 Option("client_oc_max_dirty", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6601 .set_description("maximum size of dirty pages in object cache"),
6603 Option("client_oc_target_dirty", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6605 .set_description("target size of dirty pages object cache"),
6607 Option("client_oc_max_dirty_age", Option::TYPE_FLOAT
, Option::LEVEL_ADVANCED
)
6609 .set_description("maximum age of dirty pages in object cache (seconds)"),
6611 Option("client_oc_max_objects", Option::TYPE_INT
, Option::LEVEL_ADVANCED
)
6613 .set_description("maximum number of objects in cache"),
6615 Option("client_debug_getattr_caps", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6617 .set_description(""),
6619 Option("client_debug_force_sync_read", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6621 .set_description(""),
6623 Option("client_debug_inject_tick_delay", Option::TYPE_INT
, Option::LEVEL_DEV
)
6625 .set_description(""),
6627 Option("client_max_inline_size", Option::TYPE_UINT
, Option::LEVEL_DEV
)
6629 .set_description(""),
6631 Option("client_inject_release_failure", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6633 .set_description(""),
6635 Option("client_inject_fixed_oldest_tid", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6637 .set_description(""),
6639 Option("client_metadata", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
6641 .set_description("metadata key=value comma-delimited pairs appended to session metadata"),
6643 Option("client_acl_type", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
6645 .set_description("ACL type to enforce (none or \"posix_acl\")"),
6647 Option("client_permissions", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6649 .set_description("client-enforced permission checking"),
6651 Option("client_dirsize_rbytes", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6653 .set_description("set the directory size as the number of file bytes recursively used")
6654 .set_long_description("This option enables a CephFS feature that stores the recursive directory size (the bytes used by files in the directory and its descendents) in the st_size field of the stat structure."),
6656 Option("fuse_use_invalidate_cb", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6658 .set_description(""),
6660 Option("fuse_disable_pagecache", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6662 .set_description("disable page caching in the kernel for this FUSE mount"),
6664 Option("fuse_allow_other", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6666 .set_description("pass allow_other to FUSE on mount"),
6668 Option("fuse_default_permissions", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6670 .set_description("pass default_permisions to FUSE on mount"),
6672 Option("fuse_big_writes", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6674 .set_description(""),
6676 Option("fuse_atomic_o_trunc", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6678 .set_description("pass atomic_o_trunc flag to FUSE on mount"),
6680 Option("fuse_debug", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6682 .set_description(""),
6684 Option("fuse_multithreaded", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6686 .set_description("allow parallel processing through FUSE library"),
6688 Option("fuse_require_active_mds", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6690 .set_description("require active MDSs in the file system when mounting"),
6692 Option("fuse_syncfs_on_mksnap", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6694 .set_description("synchronize all local metadata/file changes after snapshot"),
6696 Option("fuse_set_user_groups", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6698 .set_description("check for ceph-fuse to consider supplementary groups for permissions"),
6700 Option("client_try_dentry_invalidate", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6702 .set_description(""),
6704 Option("client_die_on_failed_remount", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6706 .set_description(""),
6708 Option("client_die_on_failed_dentry_invalidate", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6710 .set_description("kill the client when no dentry invalidation options are available")
6711 .set_long_description("The CephFS client requires a mechanism to invalidate dentries in the caller (e.g. the kernel for ceph-fuse) when capabilities must be recalled. If the client cannot do this then the MDS cache cannot shrink which can cause the MDS to fail."),
6713 Option("client_check_pool_perm", Option::TYPE_BOOL
, Option::LEVEL_ADVANCED
)
6715 .set_description("confirm access to inode's data pool/namespace described in file layout"),
6717 Option("client_use_faked_inos", Option::TYPE_BOOL
, Option::LEVEL_DEV
)
6719 .set_description(""),
6721 Option("client_mds_namespace", Option::TYPE_STR
, Option::LEVEL_ADVANCED
)
6723 .set_description("CephFS file system name to mount"),
6728 static std::vector
<Option
> build_options()
6730 std::vector
<Option
> result
= get_global_options();
6732 auto ingest
= [&result
](std::vector
<Option
>&& options
, const char* svc
) {
6733 for (const auto &o_in
: options
) {
6736 result
.push_back(o
);
6740 ingest(get_rgw_options(), "rgw");
6741 ingest(get_rbd_options(), "rbd");
6742 ingest(get_rbd_mirror_options(), "rbd-mirror");
6743 ingest(get_mds_options(), "mds");
6744 ingest(get_mds_client_options(), "mds_client");
6749 const std::vector
<Option
> ceph_options
= build_options();