From 28671104a4f36b8aafc3d7977cd034f819c62b75 Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 24 Jul 2017 08:19:48 -0400 Subject: [PATCH] common: remove dead default values from legacy opts These were dead code and could cause confusion. The actual default values live in options.cc since it was added. Signed-off-by: John Spray --- src/common/config.cc | 6 +- src/common/config.h | 4 +- src/common/legacy_config_opts.h | 2766 +++++++++++++++---------------- 3 files changed, 1373 insertions(+), 1403 deletions(-) diff --git a/src/common/config.cc b/src/common/config.cc index ea4c5065afa42..ea372bfb38649 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -98,12 +98,10 @@ md_config_t::md_config_t(bool is_daemon) // as all loads write to both the values map, and the legacy // members if present. legacy_values = { -#define OPTION4(name, type, def_val, safe) \ +#define OPTION(name, type) \ {std::string(STRINGIFY(name)), &md_config_t::name}, -#define OPTION(name, type, def_val) OPTION4(name, type, def_val, false) -#define SAFE_OPTION(name, type, def_val) OPTION4(name, type, def_val, true) +#define SAFE_OPTION(name, type) OPTION(name, type) #include "common/legacy_config_opts.h" -#undef OPTION4 #undef OPTION #undef SAFE_OPTION }; diff --git a/src/common/config.h b/src/common/config.h index a36b9d13e648a..1e573f5e11b28 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -282,10 +282,10 @@ public: #define OPTION_OPT_U32(name) uint64_t name; #define OPTION_OPT_U64(name) uint64_t name; #define OPTION_OPT_UUID(name) uuid_d name; -#define OPTION(name, ty, init) \ +#define OPTION(name, ty) \ public: \ OPTION_##ty(name) -#define SAFE_OPTION(name, ty, init) \ +#define SAFE_OPTION(name, ty) \ protected: \ OPTION_##ty(name) #include "common/legacy_config_opts.h" diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 300d2978a774d..750240cfb4111 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -13,705 +13,679 @@ */ /* note: no header guard */ -OPTION(host, OPT_STR, "") // "" means that ceph will use short hostname -OPTION(fsid, OPT_UUID, uuid_d()) -OPTION(public_addr, OPT_ADDR, entity_addr_t()) -OPTION(public_bind_addr, OPT_ADDR, entity_addr_t()) -OPTION(cluster_addr, OPT_ADDR, entity_addr_t()) -OPTION(public_network, OPT_STR, "") -OPTION(cluster_network, OPT_STR, "") -OPTION(monmap, OPT_STR, "") -OPTION(mon_host, OPT_STR, "") -OPTION(mon_dns_srv_name, OPT_STR, "ceph-mon") -OPTION(lockdep, OPT_BOOL, false) -OPTION(lockdep_force_backtrace, OPT_BOOL, false) // always gather current backtrace at every lock -OPTION(run_dir, OPT_STR, "/var/run/ceph") // the "/var/run/ceph" dir, created on daemon startup -OPTION(admin_socket, OPT_STR, "$run_dir/$cluster-$name.asok") // default changed by common_preinit() -OPTION(admin_socket_mode, OPT_STR, "") // permission bits to set for admin socket file, e.g., "0775", "0755" - -OPTION(daemonize, OPT_BOOL, false) // default changed by common_preinit() -OPTION(setuser, OPT_STR, "") // uid or user name -OPTION(setgroup, OPT_STR, "") // gid or group name -OPTION(setuser_match_path, OPT_STR, "") // make setuser/group conditional on this path matching ownership -OPTION(pid_file, OPT_STR, "") // default changed by common_preinit() -OPTION(chdir, OPT_STR, "/") -OPTION(restapi_log_level, OPT_STR, "") // default set by Python code -OPTION(restapi_base_url, OPT_STR, "") // " -OPTION(fatal_signal_handlers, OPT_BOOL, true) -SAFE_OPTION(erasure_code_dir, OPT_STR, CEPH_PKGLIBDIR"/erasure-code") // default location for erasure-code plugins - -OPTION(log_file, OPT_STR, "/var/log/ceph/$cluster-$name.log") // default changed by common_preinit() -OPTION(log_max_new, OPT_INT, 1000) // default changed by common_preinit() -OPTION(log_max_recent, OPT_INT, 10000) // default changed by common_preinit() -OPTION(log_to_stderr, OPT_BOOL, true) // default changed by common_preinit() -OPTION(err_to_stderr, OPT_BOOL, true) // default changed by common_preinit() -OPTION(log_to_syslog, OPT_BOOL, false) -OPTION(err_to_syslog, OPT_BOOL, false) -OPTION(log_flush_on_exit, OPT_BOOL, true) // default changed by common_preinit() -OPTION(log_stop_at_utilization, OPT_FLOAT, .97) // stop logging at (near) full -OPTION(log_to_graylog, OPT_BOOL, false) -OPTION(err_to_graylog, OPT_BOOL, false) -OPTION(log_graylog_host, OPT_STR, "127.0.0.1") -OPTION(log_graylog_port, OPT_INT, 12201) +OPTION(host, OPT_STR) // "" means that ceph will use short hostname +OPTION(fsid, OPT_UUID) +OPTION(public_addr, OPT_ADDR) +OPTION(public_bind_addr, OPT_ADDR) +OPTION(cluster_addr, OPT_ADDR) +OPTION(public_network, OPT_STR) +OPTION(cluster_network, OPT_STR) +OPTION(monmap, OPT_STR) +OPTION(mon_host, OPT_STR) +OPTION(mon_dns_srv_name, OPT_STR) +OPTION(lockdep, OPT_BOOL) +OPTION(lockdep_force_backtrace, OPT_BOOL) // always gather current backtrace at every lock +OPTION(run_dir, OPT_STR) // the "/var/run/ceph" dir, created on daemon startup +OPTION(admin_socket, OPT_STR) // default changed by common_preinit() +OPTION(admin_socket_mode, OPT_STR) // permission bits to set for admin socket file, e.g., "0775", "0755" + +OPTION(daemonize, OPT_BOOL) // default changed by common_preinit() +OPTION(setuser, OPT_STR) // uid or user name +OPTION(setgroup, OPT_STR) // gid or group name +OPTION(setuser_match_path, OPT_STR) // make setuser/group conditional on this path matching ownership +OPTION(pid_file, OPT_STR) // default changed by common_preinit() +OPTION(chdir, OPT_STR) +OPTION(restapi_log_level, OPT_STR) // default set by Python code +OPTION(restapi_base_url, OPT_STR) // " +OPTION(fatal_signal_handlers, OPT_BOOL) +SAFE_OPTION(erasure_code_dir, OPT_STR) // default location for erasure-code plugins + +OPTION(log_file, OPT_STR) // default changed by common_preinit() +OPTION(log_max_new, OPT_INT) // default changed by common_preinit() +OPTION(log_max_recent, OPT_INT) // default changed by common_preinit() +OPTION(log_to_stderr, OPT_BOOL) // default changed by common_preinit() +OPTION(err_to_stderr, OPT_BOOL) // default changed by common_preinit() +OPTION(log_to_syslog, OPT_BOOL) +OPTION(err_to_syslog, OPT_BOOL) +OPTION(log_flush_on_exit, OPT_BOOL) // default changed by common_preinit() +OPTION(log_stop_at_utilization, OPT_FLOAT) // stop logging at (near) full +OPTION(log_to_graylog, OPT_BOOL) +OPTION(err_to_graylog, OPT_BOOL) +OPTION(log_graylog_host, OPT_STR) +OPTION(log_graylog_port, OPT_INT) // options will take k/v pairs, or single-item that will be assumed as general // default for all, regardless of channel. // e.g., "info" would be taken as the same as "default=info" // also, "default=daemon audit=local0" would mean // "default all to 'daemon', override 'audit' with 'local0' -OPTION(clog_to_monitors, OPT_STR, "default=true") -OPTION(clog_to_syslog, OPT_STR, "false") -OPTION(clog_to_syslog_level, OPT_STR, "info") // this level and above -OPTION(clog_to_syslog_facility, OPT_STR, "default=daemon audit=local0") -OPTION(clog_to_graylog, OPT_STR, "false") -OPTION(clog_to_graylog_host, OPT_STR, "127.0.0.1") -OPTION(clog_to_graylog_port, OPT_STR, "12201") - -OPTION(mon_cluster_log_to_syslog, OPT_STR, "default=false") -OPTION(mon_cluster_log_to_syslog_level, OPT_STR, "info") // this level and above -OPTION(mon_cluster_log_to_syslog_facility, OPT_STR, "daemon") -OPTION(mon_cluster_log_file, OPT_STR, - "default=/var/log/ceph/$cluster.$channel.log cluster=/var/log/ceph/$cluster.log") -OPTION(mon_cluster_log_file_level, OPT_STR, "info") -OPTION(mon_cluster_log_to_graylog, OPT_STR, "false") -OPTION(mon_cluster_log_to_graylog_host, OPT_STR, "127.0.0.1") -OPTION(mon_cluster_log_to_graylog_port, OPT_STR, "12201") - -OPTION(enable_experimental_unrecoverable_data_corrupting_features, OPT_STR, "") - -SAFE_OPTION(plugin_dir, OPT_STR, CEPH_PKGLIBDIR) - -OPTION(xio_trace_mempool, OPT_BOOL, false) // mempool allocation counters -OPTION(xio_trace_msgcnt, OPT_BOOL, false) // incoming/outgoing msg counters -OPTION(xio_trace_xcon, OPT_BOOL, false) // Xio message encode/decode trace -OPTION(xio_queue_depth, OPT_INT, 128) // depth of Accelio msg queue -OPTION(xio_mp_min, OPT_INT, 128) // default min mempool size -OPTION(xio_mp_max_64, OPT_INT, 65536) // max 64-byte chunks (buffer is 40) -OPTION(xio_mp_max_256, OPT_INT, 8192) // max 256-byte chunks -OPTION(xio_mp_max_1k, OPT_INT, 8192) // max 1K chunks -OPTION(xio_mp_max_page, OPT_INT, 4096) // max 1K chunks -OPTION(xio_mp_max_hint, OPT_INT, 4096) // max size-hint chunks -OPTION(xio_portal_threads, OPT_INT, 2) // xio portal threads per messenger -OPTION(xio_max_conns_per_portal, OPT_INT, 32) // max xio_connections per portal/ctx -OPTION(xio_transport_type, OPT_STR, "rdma") // xio transport type: {rdma or tcp} -OPTION(xio_max_send_inline, OPT_INT, 512) // xio maximum threshold to send inline - -OPTION(compressor_zlib_isal, OPT_BOOL, false) -OPTION(compressor_zlib_level, OPT_INT, 5) //regular zlib compression level, not applicable to isa-l optimized version - -OPTION(async_compressor_enabled, OPT_BOOL, false) -OPTION(async_compressor_type, OPT_STR, "snappy") -OPTION(async_compressor_threads, OPT_INT, 2) -OPTION(async_compressor_thread_timeout, OPT_INT, 5) -OPTION(async_compressor_thread_suicide_timeout, OPT_INT, 30) - -OPTION(plugin_crypto_accelerator, OPT_STR, "crypto_isal") - -OPTION(mempool_debug, OPT_BOOL, false) - - - -OPTION(key, OPT_STR, "") -OPTION(keyfile, OPT_STR, "") -OPTION(keyring, OPT_STR, - // default changed by common_preinit() for mds and osd - "/etc/ceph/$cluster.$name.keyring,/etc/ceph/$cluster.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin," -#if defined(__FreeBSD) - "/usr/local/etc/ceph/$cluster.$name.keyring,/usr/local/etc/ceph/$cluster.keyring," - "/usr/local/etc/ceph/keyring,/usr/local/etc/ceph/keyring.bin," -#endif - ) -OPTION(heartbeat_interval, OPT_INT, 5) -OPTION(heartbeat_file, OPT_STR, "") -OPTION(heartbeat_inject_failure, OPT_INT, 0) // force an unhealthy heartbeat for N seconds -OPTION(perf, OPT_BOOL, true) // enable internal perf counters - -SAFE_OPTION(ms_type, OPT_STR, "async+posix") // messenger backend. It will be modified in runtime, so use SAFE_OPTION -OPTION(ms_public_type, OPT_STR, "") // messenger backend -OPTION(ms_cluster_type, OPT_STR, "") // messenger backend -OPTION(ms_tcp_nodelay, OPT_BOOL, true) -OPTION(ms_tcp_rcvbuf, OPT_INT, 0) -OPTION(ms_tcp_prefetch_max_size, OPT_INT, 4096) // max prefetch size, we limit this to avoid extra memcpy -OPTION(ms_initial_backoff, OPT_DOUBLE, .2) -OPTION(ms_max_backoff, OPT_DOUBLE, 15.0) -OPTION(ms_crc_data, OPT_BOOL, true) -OPTION(ms_crc_header, OPT_BOOL, true) -OPTION(ms_die_on_bad_msg, OPT_BOOL, false) -OPTION(ms_die_on_unhandled_msg, OPT_BOOL, false) -OPTION(ms_die_on_old_message, OPT_BOOL, false) // assert if we get a dup incoming message and shouldn't have (may be triggered by pre-541cd3c64be0dfa04e8a2df39422e0eb9541a428 code) -OPTION(ms_die_on_skipped_message, OPT_BOOL, false) // assert if we skip a seq (kernel client does this intentionally) -OPTION(ms_dispatch_throttle_bytes, OPT_U64, 100 << 20) -OPTION(ms_bind_ipv6, OPT_BOOL, false) -OPTION(ms_bind_port_min, OPT_INT, 6800) -OPTION(ms_bind_port_max, OPT_INT, 7300) -#if !defined(__FreeBSD__) -OPTION(ms_bind_retry_count, OPT_INT, 3) // If binding fails, how many times do we retry to bind -OPTION(ms_bind_retry_delay, OPT_INT, 5) // Delay between attemps to bind -#else -// FreeBSD does not use SO_REAUSEADDR so allow for a bit more time per default -OPTION(ms_bind_retry_count, OPT_INT, 6) // If binding fails, how many times do we retry to bind -OPTION(ms_bind_retry_delay, OPT_INT, 6) // Delay between attemps to bind -#endif -OPTION(ms_bind_before_connect, OPT_BOOL, false) -OPTION(ms_tcp_listen_backlog, OPT_INT, 512) -OPTION(ms_rwthread_stack_bytes, OPT_U64, 1024 << 10) -OPTION(ms_tcp_read_timeout, OPT_U64, 900) -OPTION(ms_pq_max_tokens_per_priority, OPT_U64, 16777216) -OPTION(ms_pq_min_cost, OPT_U64, 65536) -OPTION(ms_inject_socket_failures, OPT_U64, 0) -SAFE_OPTION(ms_inject_delay_type, OPT_STR, "") // "osd mds mon client" allowed -OPTION(ms_inject_delay_msg_type, OPT_STR, "") // the type of message to delay, as returned by Message::get_type_name(). This is an additional restriction on the general type filter ms_inject_delay_type. -OPTION(ms_inject_delay_max, OPT_DOUBLE, 1) // seconds -OPTION(ms_inject_delay_probability, OPT_DOUBLE, 0) // range [0, 1] -OPTION(ms_inject_internal_delays, OPT_DOUBLE, 0) // seconds -OPTION(ms_dump_on_send, OPT_BOOL, false) // hexdump msg to log on send -OPTION(ms_dump_corrupt_message_level, OPT_INT, 1) // debug level to hexdump undecodeable messages at -OPTION(ms_async_op_threads, OPT_U64, 3) // number of worker processing threads for async messenger created on init -OPTION(ms_async_max_op_threads, OPT_U64, 5) // max number of worker processing threads for async messenger -OPTION(ms_async_set_affinity, OPT_BOOL, true) +OPTION(clog_to_monitors, OPT_STR) +OPTION(clog_to_syslog, OPT_STR) +OPTION(clog_to_syslog_level, OPT_STR) // this level and above +OPTION(clog_to_syslog_facility, OPT_STR) +OPTION(clog_to_graylog, OPT_STR) +OPTION(clog_to_graylog_host, OPT_STR) +OPTION(clog_to_graylog_port, OPT_STR) + +OPTION(mon_cluster_log_to_syslog, OPT_STR) +OPTION(mon_cluster_log_to_syslog_level, OPT_STR) // this level and above +OPTION(mon_cluster_log_to_syslog_facility, OPT_STR) +OPTION(mon_cluster_log_file, OPT_STR) +OPTION(mon_cluster_log_file_level, OPT_STR) +OPTION(mon_cluster_log_to_graylog, OPT_STR) +OPTION(mon_cluster_log_to_graylog_host, OPT_STR) +OPTION(mon_cluster_log_to_graylog_port, OPT_STR) + +OPTION(enable_experimental_unrecoverable_data_corrupting_features, OPT_STR) + +SAFE_OPTION(plugin_dir, OPT_STR) + +OPTION(xio_trace_mempool, OPT_BOOL) // mempool allocation counters +OPTION(xio_trace_msgcnt, OPT_BOOL) // incoming/outgoing msg counters +OPTION(xio_trace_xcon, OPT_BOOL) // Xio message encode/decode trace +OPTION(xio_queue_depth, OPT_INT) // depth of Accelio msg queue +OPTION(xio_mp_min, OPT_INT) // default min mempool size +OPTION(xio_mp_max_64, OPT_INT) // max 64-byte chunks (buffer is 40) +OPTION(xio_mp_max_256, OPT_INT) // max 256-byte chunks +OPTION(xio_mp_max_1k, OPT_INT) // max 1K chunks +OPTION(xio_mp_max_page, OPT_INT) // max 1K chunks +OPTION(xio_mp_max_hint, OPT_INT) // max size-hint chunks +OPTION(xio_portal_threads, OPT_INT) // xio portal threads per messenger +OPTION(xio_max_conns_per_portal, OPT_INT) // max xio_connections per portal/ctx +OPTION(xio_transport_type, OPT_STR) // xio transport type: {rdma or tcp} +OPTION(xio_max_send_inline, OPT_INT) // xio maximum threshold to send inline + +OPTION(compressor_zlib_isal, OPT_BOOL) +OPTION(compressor_zlib_level, OPT_INT) //regular zlib compression level, not applicable to isa-l optimized version + +OPTION(async_compressor_enabled, OPT_BOOL) +OPTION(async_compressor_type, OPT_STR) +OPTION(async_compressor_threads, OPT_INT) +OPTION(async_compressor_thread_timeout, OPT_INT) +OPTION(async_compressor_thread_suicide_timeout, OPT_INT) + +OPTION(plugin_crypto_accelerator, OPT_STR) + +OPTION(mempool_debug, OPT_BOOL) + + + +OPTION(key, OPT_STR) +OPTION(keyfile, OPT_STR) +OPTION(keyring, OPT_STR) +OPTION(heartbeat_interval, OPT_INT) +OPTION(heartbeat_file, OPT_STR) +OPTION(heartbeat_inject_failure, OPT_INT) // force an unhealthy heartbeat for N seconds +OPTION(perf, OPT_BOOL) // enable internal perf counters + +SAFE_OPTION(ms_type, OPT_STR) // messenger backend. It will be modified in runtime, so use SAFE_OPTION +OPTION(ms_public_type, OPT_STR) // messenger backend +OPTION(ms_cluster_type, OPT_STR) // messenger backend +OPTION(ms_tcp_nodelay, OPT_BOOL) +OPTION(ms_tcp_rcvbuf, OPT_INT) +OPTION(ms_tcp_prefetch_max_size, OPT_INT) // max prefetch size, we limit this to avoid extra memcpy +OPTION(ms_initial_backoff, OPT_DOUBLE) +OPTION(ms_max_backoff, OPT_DOUBLE) +OPTION(ms_crc_data, OPT_BOOL) +OPTION(ms_crc_header, OPT_BOOL) +OPTION(ms_die_on_bad_msg, OPT_BOOL) +OPTION(ms_die_on_unhandled_msg, OPT_BOOL) +OPTION(ms_die_on_old_message, OPT_BOOL) // assert if we get a dup incoming message and shouldn't have (may be triggered by pre-541cd3c64be0dfa04e8a2df39422e0eb9541a428 code) +OPTION(ms_die_on_skipped_message, OPT_BOOL) // assert if we skip a seq (kernel client does this intentionally) +OPTION(ms_dispatch_throttle_bytes, OPT_U64) +OPTION(ms_bind_ipv6, OPT_BOOL) +OPTION(ms_bind_port_min, OPT_INT) +OPTION(ms_bind_port_max, OPT_INT) +OPTION(ms_bind_retry_count, OPT_INT) // If binding fails, how many times do we retry to bind +OPTION(ms_bind_retry_delay, OPT_INT) // Delay between attemps to bind +OPTION(ms_bind_before_connect, OPT_BOOL) +OPTION(ms_tcp_listen_backlog, OPT_INT) +OPTION(ms_rwthread_stack_bytes, OPT_U64) +OPTION(ms_tcp_read_timeout, OPT_U64) +OPTION(ms_pq_max_tokens_per_priority, OPT_U64) +OPTION(ms_pq_min_cost, OPT_U64) +OPTION(ms_inject_socket_failures, OPT_U64) +SAFE_OPTION(ms_inject_delay_type, OPT_STR) // "osd mds mon client" allowed +OPTION(ms_inject_delay_msg_type, OPT_STR) // the type of message to delay). This is an additional restriction on the general type filter ms_inject_delay_type. +OPTION(ms_inject_delay_max, OPT_DOUBLE) // seconds +OPTION(ms_inject_delay_probability, OPT_DOUBLE) // range [0, 1] +OPTION(ms_inject_internal_delays, OPT_DOUBLE) // seconds +OPTION(ms_dump_on_send, OPT_BOOL) // hexdump msg to log on send +OPTION(ms_dump_corrupt_message_level, OPT_INT) // debug level to hexdump undecodeable messages at +OPTION(ms_async_op_threads, OPT_U64) // number of worker processing threads for async messenger created on init +OPTION(ms_async_max_op_threads, OPT_U64) // max number of worker processing threads for async messenger +OPTION(ms_async_set_affinity, OPT_BOOL) // example: ms_async_affinity_cores = 0,1 // The number of coreset is expected to equal to ms_async_op_threads, otherwise // extra op threads will loop ms_async_affinity_cores again. // If ms_async_affinity_cores is empty, all threads will be bind to current running // core -OPTION(ms_async_affinity_cores, OPT_STR, "") -OPTION(ms_async_rdma_device_name, OPT_STR, "") -OPTION(ms_async_rdma_enable_hugepage, OPT_BOOL, false) -OPTION(ms_async_rdma_buffer_size, OPT_INT, 128 << 10) -OPTION(ms_async_rdma_send_buffers, OPT_U32, 1024) -OPTION(ms_async_rdma_receive_buffers, OPT_U32, 1024) -OPTION(ms_async_rdma_port_num, OPT_U32, 1) -OPTION(ms_async_rdma_polling_us, OPT_U32, 1000) -OPTION(ms_async_rdma_local_gid, OPT_STR, "") // GID format: "fe80:0000:0000:0000:7efe:90ff:fe72:6efe", no zero folding -OPTION(ms_async_rdma_roce_ver, OPT_INT, 1) // 0=RoCEv1, 1=RoCEv2, 2=RoCEv1.5 -OPTION(ms_async_rdma_sl, OPT_INT, 3) // in RoCE, this means PCP -OPTION(ms_async_rdma_dscp, OPT_INT, 96) // in RoCE, this means DSCP - -OPTION(ms_dpdk_port_id, OPT_INT, 0) -SAFE_OPTION(ms_dpdk_coremask, OPT_STR, "1") // it is modified in unittest so that use SAFE_OPTION to declare -OPTION(ms_dpdk_memory_channel, OPT_STR, "4") -OPTION(ms_dpdk_hugepages, OPT_STR, "") -OPTION(ms_dpdk_pmd, OPT_STR, "") -SAFE_OPTION(ms_dpdk_host_ipv4_addr, OPT_STR, "") -SAFE_OPTION(ms_dpdk_gateway_ipv4_addr, OPT_STR, "") -SAFE_OPTION(ms_dpdk_netmask_ipv4_addr, OPT_STR, "") -OPTION(ms_dpdk_lro, OPT_BOOL, true) -OPTION(ms_dpdk_hw_flow_control, OPT_BOOL, true) +OPTION(ms_async_affinity_cores, OPT_STR) +OPTION(ms_async_rdma_device_name, OPT_STR) +OPTION(ms_async_rdma_enable_hugepage, OPT_BOOL) +OPTION(ms_async_rdma_buffer_size, OPT_INT) +OPTION(ms_async_rdma_send_buffers, OPT_U32) +OPTION(ms_async_rdma_receive_buffers, OPT_U32) +OPTION(ms_async_rdma_port_num, OPT_U32) +OPTION(ms_async_rdma_polling_us, OPT_U32) +OPTION(ms_async_rdma_local_gid, OPT_STR) // GID format: "fe80:0000:0000:0000:7efe:90ff:fe72:6efe", no zero folding +OPTION(ms_async_rdma_roce_ver, OPT_INT) // 0=RoCEv1, 1=RoCEv2, 2=RoCEv1.5 +OPTION(ms_async_rdma_sl, OPT_INT) // in RoCE, this means PCP +OPTION(ms_async_rdma_dscp, OPT_INT) // in RoCE, this means DSCP + +OPTION(ms_dpdk_port_id, OPT_INT) +SAFE_OPTION(ms_dpdk_coremask, OPT_STR) // it is modified in unittest so that use SAFE_OPTION to declare +OPTION(ms_dpdk_memory_channel, OPT_STR) +OPTION(ms_dpdk_hugepages, OPT_STR) +OPTION(ms_dpdk_pmd, OPT_STR) +SAFE_OPTION(ms_dpdk_host_ipv4_addr, OPT_STR) +SAFE_OPTION(ms_dpdk_gateway_ipv4_addr, OPT_STR) +SAFE_OPTION(ms_dpdk_netmask_ipv4_addr, OPT_STR) +OPTION(ms_dpdk_lro, OPT_BOOL) +OPTION(ms_dpdk_hw_flow_control, OPT_BOOL) // Weighing of a hardware network queue relative to a software queue (0=no work, 1= equal share)") -OPTION(ms_dpdk_hw_queue_weight, OPT_FLOAT, 1) -OPTION(ms_dpdk_debug_allow_loopback, OPT_BOOL, false) -OPTION(ms_dpdk_rx_buffer_count_per_core, OPT_INT, 8192) - -OPTION(inject_early_sigterm, OPT_BOOL, false) - -OPTION(mon_data, OPT_STR, "/var/lib/ceph/mon/$cluster-$id") -OPTION(mon_initial_members, OPT_STR, "") // list of initial cluster mon ids; if specified, need majority to form initial quorum and create new cluster -OPTION(mon_compact_on_start, OPT_BOOL, false) // compact leveldb on ceph-mon start -OPTION(mon_compact_on_bootstrap, OPT_BOOL, false) // trigger leveldb compaction on bootstrap -OPTION(mon_compact_on_trim, OPT_BOOL, true) // compact (a prefix) when we trim old states -OPTION(mon_osd_cache_size, OPT_INT, 10) // the size of osdmaps cache, not to rely on underlying store's cache - -OPTION(mon_cpu_threads, OPT_INT, 4) -OPTION(mon_osd_mapping_pgs_per_chunk, OPT_INT, 4096) -OPTION(mon_osd_max_creating_pgs, OPT_INT, 1024) -OPTION(mon_tick_interval, OPT_INT, 5) -OPTION(mon_session_timeout, OPT_INT, 300) // must send keepalive or subscribe -OPTION(mon_subscribe_interval, OPT_DOUBLE, 24*3600) // for legacy clients only -OPTION(mon_delta_reset_interval, OPT_DOUBLE, 10) // seconds of inactivity before we reset the pg delta to 0 -OPTION(mon_osd_laggy_halflife, OPT_INT, 60*60) // (seconds) how quickly our laggy estimations decay -OPTION(mon_osd_laggy_weight, OPT_DOUBLE, .3) // weight for new 'samples's in laggy estimations -OPTION(mon_osd_laggy_max_interval, OPT_INT, 300) // maximum value of laggy_interval in laggy estimations -OPTION(mon_osd_adjust_heartbeat_grace, OPT_BOOL, true) // true if we should scale based on laggy estimations -OPTION(mon_osd_adjust_down_out_interval, OPT_BOOL, true) // true if we should scale based on laggy estimations -OPTION(mon_osd_auto_mark_in, OPT_BOOL, false) // mark any booting osds 'in' -OPTION(mon_osd_auto_mark_auto_out_in, OPT_BOOL, true) // mark booting auto-marked-out osds 'in' -OPTION(mon_osd_auto_mark_new_in, OPT_BOOL, true) // mark booting new osds 'in' -OPTION(mon_osd_down_out_interval, OPT_INT, 600) // seconds -OPTION(mon_osd_down_out_subtree_limit, OPT_STR, "rack") // smallest crush unit/type that we will not automatically mark out -OPTION(mon_osd_min_up_ratio, OPT_DOUBLE, .3) // min osds required to be up to mark things down -OPTION(mon_osd_min_in_ratio, OPT_DOUBLE, .75) // min osds required to be in to mark things out -OPTION(mon_osd_warn_op_age, OPT_DOUBLE, 32) // max op age before we generate a warning (make it a power of 2) -OPTION(mon_osd_err_op_age_ratio, OPT_DOUBLE, 128) // when to generate an error, as multiple of mon_osd_warn_op_age -OPTION(mon_osd_max_split_count, OPT_INT, 32) // largest number of PGs per "involved" OSD to let split create -OPTION(mon_osd_allow_primary_temp, OPT_BOOL, false) // allow primary_temp to be set in the osdmap -OPTION(mon_osd_allow_primary_affinity, OPT_BOOL, false) // allow primary_affinity to be set in the osdmap -OPTION(mon_osd_prime_pg_temp, OPT_BOOL, true) // prime osdmap with pg mapping changes -OPTION(mon_osd_prime_pg_temp_max_time, OPT_FLOAT, .5) // max time to spend priming -OPTION(mon_osd_prime_pg_temp_max_estimate, OPT_FLOAT, .25) // max estimate of pg total before we do all pgs in parallel -OPTION(mon_osd_pool_ec_fast_read, OPT_BOOL, false) // whether turn on fast read on the pool or not -OPTION(mon_stat_smooth_intervals, OPT_INT, 6) // smooth stats over last N PGMap maps -OPTION(mon_election_timeout, OPT_FLOAT, 5) // on election proposer, max waiting time for all ACKs -OPTION(mon_lease, OPT_FLOAT, 5) // lease interval -OPTION(mon_lease_renew_interval_factor, OPT_FLOAT, .6) // on leader, to renew the lease -OPTION(mon_lease_ack_timeout_factor, OPT_FLOAT, 2.0) // on leader, if lease isn't acked by all peons -OPTION(mon_accept_timeout_factor, OPT_FLOAT, 2.0) // on leader, if paxos update isn't accepted - -OPTION(mon_clock_drift_allowed, OPT_FLOAT, .050) // allowed clock drift between monitors -OPTION(mon_clock_drift_warn_backoff, OPT_FLOAT, 5) // exponential backoff for clock drift warnings -OPTION(mon_timecheck_interval, OPT_FLOAT, 300.0) // on leader, timecheck (clock drift check) interval (seconds) -OPTION(mon_timecheck_skew_interval, OPT_FLOAT, 30.0) // on leader, timecheck (clock drift check) interval when in presence of a skew (seconds) -OPTION(mon_pg_stuck_threshold, OPT_INT, 60) // number of seconds after which pgs can be considered stuck inactive, unclean, etc (see doc/control.rst under dump_stuck for more info) -OPTION(mon_pg_min_inactive, OPT_U64, 1) // the number of PGs which have to be inactive longer than 'mon_pg_stuck_threshold' before health goes into ERR. 0 means disabled, never go into ERR. -OPTION(mon_pg_warn_min_per_osd, OPT_INT, 30) // min # pgs per (in) osd before we warn the admin -OPTION(mon_pg_warn_max_per_osd, OPT_INT, 300) // max # pgs per (in) osd before we warn the admin -OPTION(mon_pg_warn_max_object_skew, OPT_FLOAT, 10.0) // max skew few average in objects per pg -OPTION(mon_pg_warn_min_objects, OPT_INT, 10000) // do not warn below this object # -OPTION(mon_pg_warn_min_pool_objects, OPT_INT, 1000) // do not warn on pools below this object # -OPTION(mon_pg_check_down_all_threshold, OPT_FLOAT, .5) // threshold of down osds after which we check all pgs -OPTION(mon_cache_target_full_warn_ratio, OPT_FLOAT, .66) // position between pool cache_target_full and max where we start warning -OPTION(mon_osd_full_ratio, OPT_FLOAT, .95) // what % full makes an OSD "full" -OPTION(mon_osd_backfillfull_ratio, OPT_FLOAT, .90) // what % full makes an OSD backfill full (backfill halted) -OPTION(mon_osd_nearfull_ratio, OPT_FLOAT, .85) // what % full makes an OSD near full -OPTION(mon_osd_initial_require_min_compat_client, OPT_STR, "jewel") -OPTION(mon_allow_pool_delete, OPT_BOOL, false) // allow pool deletion -OPTION(mon_fake_pool_delete, OPT_BOOL, false) // fake pool deletion (add _DELETED suffix) -OPTION(mon_globalid_prealloc, OPT_U32, 10000) // how many globalids to prealloc -OPTION(mon_osd_report_timeout, OPT_INT, 900) // grace period before declaring unresponsive OSDs dead -OPTION(mon_force_standby_active, OPT_BOOL, true) // should mons force standby-replay mds to be active -OPTION(mon_warn_on_legacy_crush_tunables, OPT_BOOL, true) // warn if crush tunables are too old (older than mon_min_crush_required_version) -OPTION(mon_crush_min_required_version, OPT_STR, "firefly") -OPTION(mon_warn_on_crush_straw_calc_version_zero, OPT_BOOL, true) // warn if crush straw_calc_version==0 -OPTION(mon_warn_on_osd_down_out_interval_zero, OPT_BOOL, true) // warn if 'mon_osd_down_out_interval == 0' -OPTION(mon_warn_on_cache_pools_without_hit_sets, OPT_BOOL, true) -OPTION(mon_min_osdmap_epochs, OPT_INT, 500) -OPTION(mon_max_pgmap_epochs, OPT_INT, 500) -OPTION(mon_max_log_epochs, OPT_INT, 500) -OPTION(mon_max_mdsmap_epochs, OPT_INT, 500) -OPTION(mon_max_osd, OPT_INT, 10000) -OPTION(mon_probe_timeout, OPT_DOUBLE, 2.0) -OPTION(mon_client_bytes, OPT_U64, 100ul << 20) // client msg data allowed in memory (in bytes) -OPTION(mon_mgr_proxy_client_bytes_ratio, OPT_FLOAT, .3) // ratio of mon_client_bytes that can be consumed by proxied mgr commands before we error out to client -OPTION(mon_log_max_summary, OPT_U64, 50) -OPTION(mon_daemon_bytes, OPT_U64, 400ul << 20) // mds, osd message memory cap (in bytes) -OPTION(mon_max_log_entries_per_event, OPT_INT, 4096) -OPTION(mon_reweight_min_pgs_per_osd, OPT_U64, 10) // min pgs per osd for reweight-by-pg command -OPTION(mon_reweight_min_bytes_per_osd, OPT_U64, 100*1024*1024) // min bytes per osd for reweight-by-utilization command -OPTION(mon_reweight_max_osds, OPT_INT, 4) // max osds to change per reweight-by-* command -OPTION(mon_reweight_max_change, OPT_DOUBLE, 0.05) -OPTION(mon_health_data_update_interval, OPT_FLOAT, 60.0) -OPTION(mon_health_to_clog, OPT_BOOL, true) -OPTION(mon_health_to_clog_interval, OPT_INT, 3600) -OPTION(mon_health_to_clog_tick_interval, OPT_DOUBLE, 60.0) -OPTION(mon_health_preluminous_compat, OPT_BOOL, false) -OPTION(mon_health_max_detail, OPT_INT, 50) // max detailed pgs to report in health detail -OPTION(mon_data_avail_crit, OPT_INT, 5) -OPTION(mon_data_avail_warn, OPT_INT, 30) -OPTION(mon_data_size_warn, OPT_U64, 15*1024*1024*1024) // issue a warning when the monitor's data store goes over 15GB (in bytes) -OPTION(mon_warn_not_scrubbed, OPT_INT, 0) -OPTION(mon_warn_not_deep_scrubbed, OPT_INT, 0) -OPTION(mon_scrub_interval, OPT_INT, 3600*24) // once a day -OPTION(mon_scrub_timeout, OPT_INT, 60*5) // let's give it 5 minutes; why not. -OPTION(mon_scrub_max_keys, OPT_INT, 100) // max number of keys to scrub each time -OPTION(mon_scrub_inject_crc_mismatch, OPT_DOUBLE, 0.0) // probability of injected crc mismatch [0.0, 1.0] -OPTION(mon_scrub_inject_missing_keys, OPT_DOUBLE, 0.0) // probability of injected missing keys [0.0, 1.0] -OPTION(mon_config_key_max_entry_size, OPT_INT, 4096) // max num bytes per config-key entry -OPTION(mon_sync_timeout, OPT_DOUBLE, 60.0) -OPTION(mon_sync_max_payload_size, OPT_U32, 1048576) // max size for a sync chunk payload (say, 1MB) -OPTION(mon_sync_debug, OPT_BOOL, false) // enable sync-specific debug -OPTION(mon_inject_sync_get_chunk_delay, OPT_DOUBLE, 0) // inject N second delay on each get_chunk request -OPTION(mon_osd_min_down_reporters, OPT_INT, 2) // number of OSDs from different subtrees who need to report a down OSD for it to count -OPTION(mon_osd_reporter_subtree_level , OPT_STR, "host") // in which level of parent bucket the reporters are counted -OPTION(mon_osd_force_trim_to, OPT_INT, 0) // force mon to trim maps to this point, regardless of min_last_epoch_clean (dangerous, use with care) -OPTION(mon_mds_force_trim_to, OPT_INT, 0) // force mon to trim mdsmaps to this point (dangerous, use with care) -OPTION(mon_mds_skip_sanity, OPT_BOOL, false) // skip safety assertions on FSMap (in case of bugs where we want to continue anyway) +OPTION(ms_dpdk_hw_queue_weight, OPT_FLOAT) +OPTION(ms_dpdk_debug_allow_loopback, OPT_BOOL) +OPTION(ms_dpdk_rx_buffer_count_per_core, OPT_INT) + +OPTION(inject_early_sigterm, OPT_BOOL) + +OPTION(mon_data, OPT_STR) +OPTION(mon_initial_members, OPT_STR) // list of initial cluster mon ids; if specified, need majority to form initial quorum and create new cluster +OPTION(mon_compact_on_start, OPT_BOOL) // compact leveldb on ceph-mon start +OPTION(mon_compact_on_bootstrap, OPT_BOOL) // trigger leveldb compaction on bootstrap +OPTION(mon_compact_on_trim, OPT_BOOL) // compact (a prefix) when we trim old states +OPTION(mon_osd_cache_size, OPT_INT) // the size of osdmaps cache, not to rely on underlying store's cache + +OPTION(mon_cpu_threads, OPT_INT) +OPTION(mon_osd_mapping_pgs_per_chunk, OPT_INT) +OPTION(mon_osd_max_creating_pgs, OPT_INT) +OPTION(mon_tick_interval, OPT_INT) +OPTION(mon_session_timeout, OPT_INT) // must send keepalive or subscribe +OPTION(mon_subscribe_interval, OPT_DOUBLE) // for legacy clients only +OPTION(mon_delta_reset_interval, OPT_DOUBLE) // seconds of inactivity before we reset the pg delta to 0 +OPTION(mon_osd_laggy_halflife, OPT_INT) // (seconds) how quickly our laggy estimations decay +OPTION(mon_osd_laggy_weight, OPT_DOUBLE) // weight for new 'samples's in laggy estimations +OPTION(mon_osd_laggy_max_interval, OPT_INT) // maximum value of laggy_interval in laggy estimations +OPTION(mon_osd_adjust_heartbeat_grace, OPT_BOOL) // true if we should scale based on laggy estimations +OPTION(mon_osd_adjust_down_out_interval, OPT_BOOL) // true if we should scale based on laggy estimations +OPTION(mon_osd_auto_mark_in, OPT_BOOL) // mark any booting osds 'in' +OPTION(mon_osd_auto_mark_auto_out_in, OPT_BOOL) // mark booting auto-marked-out osds 'in' +OPTION(mon_osd_auto_mark_new_in, OPT_BOOL) // mark booting new osds 'in' +OPTION(mon_osd_down_out_interval, OPT_INT) // seconds +OPTION(mon_osd_down_out_subtree_limit, OPT_STR) // smallest crush unit/type that we will not automatically mark out +OPTION(mon_osd_min_up_ratio, OPT_DOUBLE) // min osds required to be up to mark things down +OPTION(mon_osd_min_in_ratio, OPT_DOUBLE) // min osds required to be in to mark things out +OPTION(mon_osd_warn_op_age, OPT_DOUBLE) // max op age before we generate a warning (make it a power of 2) +OPTION(mon_osd_err_op_age_ratio, OPT_DOUBLE) // when to generate an error, as multiple of mon_osd_warn_op_age +OPTION(mon_osd_max_split_count, OPT_INT) // largest number of PGs per "involved" OSD to let split create +OPTION(mon_osd_allow_primary_temp, OPT_BOOL) // allow primary_temp to be set in the osdmap +OPTION(mon_osd_allow_primary_affinity, OPT_BOOL) // allow primary_affinity to be set in the osdmap +OPTION(mon_osd_prime_pg_temp, OPT_BOOL) // prime osdmap with pg mapping changes +OPTION(mon_osd_prime_pg_temp_max_time, OPT_FLOAT) // max time to spend priming +OPTION(mon_osd_prime_pg_temp_max_estimate, OPT_FLOAT) // max estimate of pg total before we do all pgs in parallel +OPTION(mon_osd_pool_ec_fast_read, OPT_BOOL) // whether turn on fast read on the pool or not +OPTION(mon_stat_smooth_intervals, OPT_INT) // smooth stats over last N PGMap maps +OPTION(mon_election_timeout, OPT_FLOAT) // on election proposer, max waiting time for all ACKs +OPTION(mon_lease, OPT_FLOAT) // lease interval +OPTION(mon_lease_renew_interval_factor, OPT_FLOAT) // on leader, to renew the lease +OPTION(mon_lease_ack_timeout_factor, OPT_FLOAT) // on leader, if lease isn't acked by all peons +OPTION(mon_accept_timeout_factor, OPT_FLOAT) // on leader, if paxos update isn't accepted + +OPTION(mon_clock_drift_allowed, OPT_FLOAT) // allowed clock drift between monitors +OPTION(mon_clock_drift_warn_backoff, OPT_FLOAT) // exponential backoff for clock drift warnings +OPTION(mon_timecheck_interval, OPT_FLOAT) // on leader, timecheck (clock drift check) interval (seconds) +OPTION(mon_timecheck_skew_interval, OPT_FLOAT) // on leader, timecheck (clock drift check) interval when in presence of a skew (seconds) +OPTION(mon_pg_stuck_threshold, OPT_INT) // number of seconds after which pgs can be considered stuck inactive, unclean, etc (see doc/control.rst under dump_stuck for more info) +OPTION(mon_pg_min_inactive, OPT_U64) // the number of PGs which have to be inactive longer than 'mon_pg_stuck_threshold' before health goes into ERR. 0 means disabled, never go into ERR. +OPTION(mon_pg_warn_min_per_osd, OPT_INT) // min # pgs per (in) osd before we warn the admin +OPTION(mon_pg_warn_max_per_osd, OPT_INT) // max # pgs per (in) osd before we warn the admin +OPTION(mon_pg_warn_max_object_skew, OPT_FLOAT) // max skew few average in objects per pg +OPTION(mon_pg_warn_min_objects, OPT_INT) // do not warn below this object # +OPTION(mon_pg_warn_min_pool_objects, OPT_INT) // do not warn on pools below this object # +OPTION(mon_pg_check_down_all_threshold, OPT_FLOAT) // threshold of down osds after which we check all pgs +OPTION(mon_cache_target_full_warn_ratio, OPT_FLOAT) // position between pool cache_target_full and max where we start warning +OPTION(mon_osd_full_ratio, OPT_FLOAT) // what % full makes an OSD "full" +OPTION(mon_osd_backfillfull_ratio, OPT_FLOAT) // what % full makes an OSD backfill full (backfill halted) +OPTION(mon_osd_nearfull_ratio, OPT_FLOAT) // what % full makes an OSD near full +OPTION(mon_osd_initial_require_min_compat_client, OPT_STR) +OPTION(mon_allow_pool_delete, OPT_BOOL) // allow pool deletion +OPTION(mon_fake_pool_delete, OPT_BOOL) // fake pool deletion (add _DELETED suffix) +OPTION(mon_globalid_prealloc, OPT_U32) // how many globalids to prealloc +OPTION(mon_osd_report_timeout, OPT_INT) // grace period before declaring unresponsive OSDs dead +OPTION(mon_force_standby_active, OPT_BOOL) // should mons force standby-replay mds to be active +OPTION(mon_warn_on_legacy_crush_tunables, OPT_BOOL) // warn if crush tunables are too old (older than mon_min_crush_required_version) +OPTION(mon_crush_min_required_version, OPT_STR) +OPTION(mon_warn_on_crush_straw_calc_version_zero, OPT_BOOL) // warn if crush straw_calc_version==0 +OPTION(mon_warn_on_osd_down_out_interval_zero, OPT_BOOL) // warn if 'mon_osd_down_out_interval == 0' +OPTION(mon_warn_on_cache_pools_without_hit_sets, OPT_BOOL) +OPTION(mon_min_osdmap_epochs, OPT_INT) +OPTION(mon_max_pgmap_epochs, OPT_INT) +OPTION(mon_max_log_epochs, OPT_INT) +OPTION(mon_max_mdsmap_epochs, OPT_INT) +OPTION(mon_max_osd, OPT_INT) +OPTION(mon_probe_timeout, OPT_DOUBLE) +OPTION(mon_client_bytes, OPT_U64) // client msg data allowed in memory (in bytes) +OPTION(mon_mgr_proxy_client_bytes_ratio, OPT_FLOAT) // ratio of mon_client_bytes that can be consumed by proxied mgr commands before we error out to client +OPTION(mon_log_max_summary, OPT_U64) +OPTION(mon_daemon_bytes, OPT_U64) // mds, osd message memory cap (in bytes) +OPTION(mon_max_log_entries_per_event, OPT_INT) +OPTION(mon_reweight_min_pgs_per_osd, OPT_U64) // min pgs per osd for reweight-by-pg command +OPTION(mon_reweight_min_bytes_per_osd, OPT_U64) // min bytes per osd for reweight-by-utilization command +OPTION(mon_reweight_max_osds, OPT_INT) // max osds to change per reweight-by-* command +OPTION(mon_reweight_max_change, OPT_DOUBLE) +OPTION(mon_health_data_update_interval, OPT_FLOAT) +OPTION(mon_health_to_clog, OPT_BOOL) +OPTION(mon_health_to_clog_interval, OPT_INT) +OPTION(mon_health_to_clog_tick_interval, OPT_DOUBLE) +OPTION(mon_health_preluminous_compat, OPT_BOOL) +OPTION(mon_health_max_detail, OPT_INT) // max detailed pgs to report in health detail +OPTION(mon_data_avail_crit, OPT_INT) +OPTION(mon_data_avail_warn, OPT_INT) +OPTION(mon_data_size_warn, OPT_U64) // issue a warning when the monitor's data store goes over 15GB (in bytes) +OPTION(mon_warn_not_scrubbed, OPT_INT) +OPTION(mon_warn_not_deep_scrubbed, OPT_INT) +OPTION(mon_scrub_interval, OPT_INT) // once a day +OPTION(mon_scrub_timeout, OPT_INT) // let's give it 5 minutes; why not. +OPTION(mon_scrub_max_keys, OPT_INT) // max number of keys to scrub each time +OPTION(mon_scrub_inject_crc_mismatch, OPT_DOUBLE) // probability of injected crc mismatch [0.0, 1.0] +OPTION(mon_scrub_inject_missing_keys, OPT_DOUBLE) // probability of injected missing keys [0.0, 1.0] +OPTION(mon_config_key_max_entry_size, OPT_INT) // max num bytes per config-key entry +OPTION(mon_sync_timeout, OPT_DOUBLE) +OPTION(mon_sync_max_payload_size, OPT_U32) // max size for a sync chunk payload (say) +OPTION(mon_sync_debug, OPT_BOOL) // enable sync-specific debug +OPTION(mon_inject_sync_get_chunk_delay, OPT_DOUBLE) // inject N second delay on each get_chunk request +OPTION(mon_osd_min_down_reporters, OPT_INT) // number of OSDs from different subtrees who need to report a down OSD for it to count +OPTION(mon_osd_reporter_subtree_level , OPT_STR) // in which level of parent bucket the reporters are counted +OPTION(mon_osd_force_trim_to, OPT_INT) // force mon to trim maps to this point, regardless of min_last_epoch_clean (dangerous) +OPTION(mon_mds_force_trim_to, OPT_INT) // force mon to trim mdsmaps to this point (dangerous) +OPTION(mon_mds_skip_sanity, OPT_BOOL) // skip safety assertions on FSMap (in case of bugs where we want to continue anyway) // monitor debug options -OPTION(mon_debug_deprecated_as_obsolete, OPT_BOOL, false) // consider deprecated commands as obsolete +OPTION(mon_debug_deprecated_as_obsolete, OPT_BOOL) // consider deprecated commands as obsolete // dump transactions -OPTION(mon_debug_dump_transactions, OPT_BOOL, false) -OPTION(mon_debug_dump_json, OPT_BOOL, false) -OPTION(mon_debug_dump_location, OPT_STR, "/var/log/ceph/$cluster-$name.tdump") -OPTION(mon_debug_no_require_luminous, OPT_BOOL, false) -OPTION(mon_debug_no_require_bluestore_for_ec_overwrites, OPT_BOOL, false) -OPTION(mon_debug_no_initial_persistent_features, OPT_BOOL, false) -OPTION(mon_inject_transaction_delay_max, OPT_DOUBLE, 10.0) // seconds -OPTION(mon_inject_transaction_delay_probability, OPT_DOUBLE, 0) // range [0, 1] - -OPTION(mon_sync_provider_kill_at, OPT_INT, 0) // kill the sync provider at a specific point in the work flow -OPTION(mon_sync_requester_kill_at, OPT_INT, 0) // kill the sync requester at a specific point in the work flow -OPTION(mon_force_quorum_join, OPT_BOOL, false) // force monitor to join quorum even if it has been previously removed from the map -OPTION(mon_keyvaluedb, OPT_STR, "rocksdb") // type of keyvaluedb backend +OPTION(mon_debug_dump_transactions, OPT_BOOL) +OPTION(mon_debug_dump_json, OPT_BOOL) +OPTION(mon_debug_dump_location, OPT_STR) +OPTION(mon_debug_no_require_luminous, OPT_BOOL) +OPTION(mon_debug_no_require_bluestore_for_ec_overwrites, OPT_BOOL) +OPTION(mon_debug_no_initial_persistent_features, OPT_BOOL) +OPTION(mon_inject_transaction_delay_max, OPT_DOUBLE) // seconds +OPTION(mon_inject_transaction_delay_probability, OPT_DOUBLE) // range [0, 1] + +OPTION(mon_sync_provider_kill_at, OPT_INT) // kill the sync provider at a specific point in the work flow +OPTION(mon_sync_requester_kill_at, OPT_INT) // kill the sync requester at a specific point in the work flow +OPTION(mon_force_quorum_join, OPT_BOOL) // force monitor to join quorum even if it has been previously removed from the map +OPTION(mon_keyvaluedb, OPT_STR) // type of keyvaluedb backend // UNSAFE -- TESTING ONLY! Allows addition of a cache tier with preexisting snaps -OPTION(mon_debug_unsafe_allow_tier_with_nonempty_snaps, OPT_BOOL, false) -OPTION(mon_osd_blacklist_default_expire, OPT_DOUBLE, 60*60) // default one hour -OPTION(mon_osd_crush_smoke_test, OPT_BOOL, true) - -OPTION(paxos_stash_full_interval, OPT_INT, 25) // how often (in commits) to stash a full copy of the PaxosService state -OPTION(paxos_max_join_drift, OPT_INT, 10) // max paxos iterations before we must first sync the monitor stores -OPTION(paxos_propose_interval, OPT_DOUBLE, 1.0) // gather updates for this long before proposing a map update -OPTION(paxos_min_wait, OPT_DOUBLE, 0.05) // min time to gather updates for after period of inactivity -OPTION(paxos_min, OPT_INT, 500) // minimum number of paxos states to keep around -OPTION(paxos_trim_min, OPT_INT, 250) // number of extra proposals tolerated before trimming -OPTION(paxos_trim_max, OPT_INT, 500) // max number of extra proposals to trim at a time -OPTION(paxos_service_trim_min, OPT_INT, 250) // minimum amount of versions to trigger a trim (0 disables it) -OPTION(paxos_service_trim_max, OPT_INT, 500) // maximum amount of versions to trim during a single proposal (0 disables it) -OPTION(paxos_kill_at, OPT_INT, 0) -OPTION(auth_cluster_required, OPT_STR, "cephx") // required of mon, mds, osd daemons -OPTION(auth_service_required, OPT_STR, "cephx") // required by daemons of clients -OPTION(auth_client_required, OPT_STR, "cephx, none") // what clients require of daemons -OPTION(auth_supported, OPT_STR, "") // deprecated; default value for above if they are not defined. -OPTION(max_rotating_auth_attempts, OPT_INT, 10) -OPTION(cephx_require_signatures, OPT_BOOL, false) // If true, don't talk to Cephx partners if they don't support message signing; off by default -OPTION(cephx_cluster_require_signatures, OPT_BOOL, false) -OPTION(cephx_service_require_signatures, OPT_BOOL, false) -OPTION(cephx_sign_messages, OPT_BOOL, true) // Default to signing session messages if supported -OPTION(auth_mon_ticket_ttl, OPT_DOUBLE, 60*60*12) -OPTION(auth_service_ticket_ttl, OPT_DOUBLE, 60*60) -OPTION(auth_debug, OPT_BOOL, false) // if true, assert when weird things happen -OPTION(mon_client_hunt_parallel, OPT_U32, 2) // how many mons to try to connect to in parallel during hunt -OPTION(mon_client_hunt_interval, OPT_DOUBLE, 3.0) // try new mon every N seconds until we connect -OPTION(mon_client_ping_interval, OPT_DOUBLE, 10.0) // ping every N seconds -OPTION(mon_client_ping_timeout, OPT_DOUBLE, 30.0) // fail if we don't hear back -OPTION(mon_client_hunt_interval_backoff, OPT_DOUBLE, 2.0) // each time we reconnect to a monitor, double our timeout -OPTION(mon_client_hunt_interval_max_multiple, OPT_DOUBLE, 10.0) // up to a max of 10*default (30 seconds) -OPTION(mon_client_max_log_entries_per_message, OPT_INT, 1000) -OPTION(mon_max_pool_pg_num, OPT_INT, 65536) -OPTION(mon_pool_quota_warn_threshold, OPT_INT, 0) // percent of quota at which to issue warnings -OPTION(mon_pool_quota_crit_threshold, OPT_INT, 0) // percent of quota at which to issue errors -OPTION(client_cache_size, OPT_INT, 16384) -OPTION(client_cache_mid, OPT_FLOAT, .75) -OPTION(client_use_random_mds, OPT_BOOL, false) -OPTION(client_mount_timeout, OPT_DOUBLE, 300.0) -OPTION(client_tick_interval, OPT_DOUBLE, 1.0) -OPTION(client_trace, OPT_STR, "") -OPTION(client_readahead_min, OPT_LONGLONG, 128*1024) // readahead at _least_ this much. -OPTION(client_readahead_max_bytes, OPT_LONGLONG, 0) // default unlimited -OPTION(client_readahead_max_periods, OPT_LONGLONG, 4) // as multiple of file layout period (object size * num stripes) -OPTION(client_reconnect_stale, OPT_BOOL, false) // automatically reconnect stale session -OPTION(client_snapdir, OPT_STR, ".snap") -OPTION(client_mountpoint, OPT_STR, "/") -OPTION(client_mount_uid, OPT_INT, -1) -OPTION(client_mount_gid, OPT_INT, -1) -OPTION(client_notify_timeout, OPT_INT, 10) // in seconds -OPTION(osd_client_watch_timeout, OPT_INT, 30) // in seconds -OPTION(client_caps_release_delay, OPT_INT, 5) // in seconds -OPTION(client_quota_df, OPT_BOOL, true) // use quota for df on subdir mounts -OPTION(client_oc, OPT_BOOL, true) -OPTION(client_oc_size, OPT_INT, 1024*1024* 200) // MB * n -OPTION(client_oc_max_dirty, OPT_INT, 1024*1024* 100) // MB * n (dirty OR tx.. bigish) -OPTION(client_oc_target_dirty, OPT_INT, 1024*1024* 8) // target dirty (keep this smallish) -OPTION(client_oc_max_dirty_age, OPT_DOUBLE, 5.0) // max age in cache before writeback -OPTION(client_oc_max_objects, OPT_INT, 1000) // max objects in cache -OPTION(client_debug_getattr_caps, OPT_BOOL, false) // check if MDS reply contains wanted caps -OPTION(client_debug_force_sync_read, OPT_BOOL, false) // always read synchronously (go to osds) -OPTION(client_debug_inject_tick_delay, OPT_INT, 0) // delay the client tick for a number of seconds -OPTION(client_max_inline_size, OPT_U64, 4096) -OPTION(client_inject_release_failure, OPT_BOOL, false) // synthetic client bug for testing -OPTION(client_inject_fixed_oldest_tid, OPT_BOOL, false) // synthetic client bug for testing -OPTION(client_metadata, OPT_STR, "") -OPTION(client_acl_type, OPT_STR, "") -OPTION(client_permissions, OPT_BOOL, true) -OPTION(client_dirsize_rbytes, OPT_BOOL, true) +OPTION(mon_debug_unsafe_allow_tier_with_nonempty_snaps, OPT_BOOL) +OPTION(mon_osd_blacklist_default_expire, OPT_DOUBLE) // default one hour +OPTION(mon_osd_crush_smoke_test, OPT_BOOL) + +OPTION(paxos_stash_full_interval, OPT_INT) // how often (in commits) to stash a full copy of the PaxosService state +OPTION(paxos_max_join_drift, OPT_INT) // max paxos iterations before we must first sync the monitor stores +OPTION(paxos_propose_interval, OPT_DOUBLE) // gather updates for this long before proposing a map update +OPTION(paxos_min_wait, OPT_DOUBLE) // min time to gather updates for after period of inactivity +OPTION(paxos_min, OPT_INT) // minimum number of paxos states to keep around +OPTION(paxos_trim_min, OPT_INT) // number of extra proposals tolerated before trimming +OPTION(paxos_trim_max, OPT_INT) // max number of extra proposals to trim at a time +OPTION(paxos_service_trim_min, OPT_INT) // minimum amount of versions to trigger a trim (0 disables it) +OPTION(paxos_service_trim_max, OPT_INT) // maximum amount of versions to trim during a single proposal (0 disables it) +OPTION(paxos_kill_at, OPT_INT) +OPTION(auth_cluster_required, OPT_STR) // required of mon, mds, osd daemons +OPTION(auth_service_required, OPT_STR) // required by daemons of clients +OPTION(auth_client_required, OPT_STR) // what clients require of daemons +OPTION(auth_supported, OPT_STR) // deprecated; default value for above if they are not defined. +OPTION(max_rotating_auth_attempts, OPT_INT) +OPTION(cephx_require_signatures, OPT_BOOL) // If true, don't talk to Cephx partners if they don't support message signing; off by default +OPTION(cephx_cluster_require_signatures, OPT_BOOL) +OPTION(cephx_service_require_signatures, OPT_BOOL) +OPTION(cephx_sign_messages, OPT_BOOL) // Default to signing session messages if supported +OPTION(auth_mon_ticket_ttl, OPT_DOUBLE) +OPTION(auth_service_ticket_ttl, OPT_DOUBLE) +OPTION(auth_debug, OPT_BOOL) // if true, assert when weird things happen +OPTION(mon_client_hunt_parallel, OPT_U32) // how many mons to try to connect to in parallel during hunt +OPTION(mon_client_hunt_interval, OPT_DOUBLE) // try new mon every N seconds until we connect +OPTION(mon_client_ping_interval, OPT_DOUBLE) // ping every N seconds +OPTION(mon_client_ping_timeout, OPT_DOUBLE) // fail if we don't hear back +OPTION(mon_client_hunt_interval_backoff, OPT_DOUBLE) // each time we reconnect to a monitor, double our timeout +OPTION(mon_client_hunt_interval_max_multiple, OPT_DOUBLE) // up to a max of 10*default (30 seconds) +OPTION(mon_client_max_log_entries_per_message, OPT_INT) +OPTION(mon_max_pool_pg_num, OPT_INT) +OPTION(mon_pool_quota_warn_threshold, OPT_INT) // percent of quota at which to issue warnings +OPTION(mon_pool_quota_crit_threshold, OPT_INT) // percent of quota at which to issue errors +OPTION(client_cache_size, OPT_INT) +OPTION(client_cache_mid, OPT_FLOAT) +OPTION(client_use_random_mds, OPT_BOOL) +OPTION(client_mount_timeout, OPT_DOUBLE) +OPTION(client_tick_interval, OPT_DOUBLE) +OPTION(client_trace, OPT_STR) +OPTION(client_readahead_min, OPT_LONGLONG) // readahead at _least_ this much. +OPTION(client_readahead_max_bytes, OPT_LONGLONG) // default unlimited +OPTION(client_readahead_max_periods, OPT_LONGLONG) // as multiple of file layout period (object size * num stripes) +OPTION(client_reconnect_stale, OPT_BOOL) // automatically reconnect stale session +OPTION(client_snapdir, OPT_STR) +OPTION(client_mountpoint, OPT_STR) +OPTION(client_mount_uid, OPT_INT) +OPTION(client_mount_gid, OPT_INT) +OPTION(client_notify_timeout, OPT_INT) // in seconds +OPTION(osd_client_watch_timeout, OPT_INT) // in seconds +OPTION(client_caps_release_delay, OPT_INT) // in seconds +OPTION(client_quota_df, OPT_BOOL) // use quota for df on subdir mounts +OPTION(client_oc, OPT_BOOL) +OPTION(client_oc_size, OPT_INT) // MB * n +OPTION(client_oc_max_dirty, OPT_INT) // MB * n (dirty OR tx.. bigish) +OPTION(client_oc_target_dirty, OPT_INT) // target dirty (keep this smallish) +OPTION(client_oc_max_dirty_age, OPT_DOUBLE) // max age in cache before writeback +OPTION(client_oc_max_objects, OPT_INT) // max objects in cache +OPTION(client_debug_getattr_caps, OPT_BOOL) // check if MDS reply contains wanted caps +OPTION(client_debug_force_sync_read, OPT_BOOL) // always read synchronously (go to osds) +OPTION(client_debug_inject_tick_delay, OPT_INT) // delay the client tick for a number of seconds +OPTION(client_max_inline_size, OPT_U64) +OPTION(client_inject_release_failure, OPT_BOOL) // synthetic client bug for testing +OPTION(client_inject_fixed_oldest_tid, OPT_BOOL) // synthetic client bug for testing +OPTION(client_metadata, OPT_STR) +OPTION(client_acl_type, OPT_STR) +OPTION(client_permissions, OPT_BOOL) +OPTION(client_dirsize_rbytes, OPT_BOOL) // note: the max amount of "in flight" dirty data is roughly (max - target) -OPTION(fuse_use_invalidate_cb, OPT_BOOL, true) // use fuse 2.8+ invalidate callback to keep page cache consistent -OPTION(fuse_disable_pagecache, OPT_BOOL, false) -OPTION(fuse_allow_other, OPT_BOOL, true) -OPTION(fuse_default_permissions, OPT_BOOL, false) -OPTION(fuse_big_writes, OPT_BOOL, true) -OPTION(fuse_atomic_o_trunc, OPT_BOOL, true) -OPTION(fuse_debug, OPT_BOOL, false) -OPTION(fuse_multithreaded, OPT_BOOL, true) -OPTION(fuse_require_active_mds, OPT_BOOL, true) // if ceph_fuse requires active mds server -OPTION(fuse_syncfs_on_mksnap, OPT_BOOL, true) -OPTION(fuse_set_user_groups, OPT_BOOL, false) // if ceph_fuse fills in group lists or not - -OPTION(client_try_dentry_invalidate, OPT_BOOL, true) // the client should try to use dentry invaldation instead of remounting, on kernels it believes that will work for -OPTION(client_die_on_failed_remount, OPT_BOOL, true) -OPTION(client_check_pool_perm, OPT_BOOL, true) -OPTION(client_use_faked_inos, OPT_BOOL, false) -OPTION(client_mds_namespace, OPT_STR, "") - -OPTION(crush_location, OPT_STR, "") // whitespace-separated list of key=value pairs describing crush location -OPTION(crush_location_hook, OPT_STR, "") -OPTION(crush_location_hook_timeout, OPT_INT, 10) - -OPTION(objecter_tick_interval, OPT_DOUBLE, 5.0) -OPTION(objecter_timeout, OPT_DOUBLE, 10.0) // before we ask for a map -OPTION(objecter_inflight_op_bytes, OPT_U64, 1024*1024*100) // max in-flight data (both directions) -OPTION(objecter_inflight_ops, OPT_U64, 1024) // max in-flight ios -OPTION(objecter_completion_locks_per_session, OPT_U64, 32) // num of completion locks per each session, for serializing same object responses -OPTION(objecter_inject_no_watch_ping, OPT_BOOL, false) // suppress watch pings -OPTION(objecter_retry_writes_after_first_reply, OPT_BOOL, false) // ignore the first reply for each write, and resend the osd op instead -OPTION(objecter_debug_inject_relock_delay, OPT_BOOL, false) +OPTION(fuse_use_invalidate_cb, OPT_BOOL) // use fuse 2.8+ invalidate callback to keep page cache consistent +OPTION(fuse_disable_pagecache, OPT_BOOL) +OPTION(fuse_allow_other, OPT_BOOL) +OPTION(fuse_default_permissions, OPT_BOOL) +OPTION(fuse_big_writes, OPT_BOOL) +OPTION(fuse_atomic_o_trunc, OPT_BOOL) +OPTION(fuse_debug, OPT_BOOL) +OPTION(fuse_multithreaded, OPT_BOOL) +OPTION(fuse_require_active_mds, OPT_BOOL) // if ceph_fuse requires active mds server +OPTION(fuse_syncfs_on_mksnap, OPT_BOOL) +OPTION(fuse_set_user_groups, OPT_BOOL) // if ceph_fuse fills in group lists or not + +OPTION(client_try_dentry_invalidate, OPT_BOOL) // the client should try to use dentry invaldation instead of remounting, on kernels it believes that will work for +OPTION(client_die_on_failed_remount, OPT_BOOL) +OPTION(client_check_pool_perm, OPT_BOOL) +OPTION(client_use_faked_inos, OPT_BOOL) +OPTION(client_mds_namespace, OPT_STR) + +OPTION(crush_location, OPT_STR) // whitespace-separated list of key=value pairs describing crush location +OPTION(crush_location_hook, OPT_STR) +OPTION(crush_location_hook_timeout, OPT_INT) + +OPTION(objecter_tick_interval, OPT_DOUBLE) +OPTION(objecter_timeout, OPT_DOUBLE) // before we ask for a map +OPTION(objecter_inflight_op_bytes, OPT_U64) // max in-flight data (both directions) +OPTION(objecter_inflight_ops, OPT_U64) // max in-flight ios +OPTION(objecter_completion_locks_per_session, OPT_U64) // num of completion locks per each session, for serializing same object responses +OPTION(objecter_inject_no_watch_ping, OPT_BOOL) // suppress watch pings +OPTION(objecter_retry_writes_after_first_reply, OPT_BOOL) // ignore the first reply for each write, and resend the osd op instead +OPTION(objecter_debug_inject_relock_delay, OPT_BOOL) // Max number of deletes at once in a single Filer::purge call -OPTION(filer_max_purge_ops, OPT_U32, 10) +OPTION(filer_max_purge_ops, OPT_U32) // Max number of truncate at once in a single Filer::truncate call -OPTION(filer_max_truncate_ops, OPT_U32, 128) +OPTION(filer_max_truncate_ops, OPT_U32) -OPTION(journaler_write_head_interval, OPT_INT, 15) -OPTION(journaler_prefetch_periods, OPT_INT, 10) // * journal object size -OPTION(journaler_prezero_periods, OPT_INT, 5) // * journal object size -OPTION(mds_data, OPT_STR, "/var/lib/ceph/mds/$cluster-$id") -OPTION(mds_max_file_size, OPT_U64, 1ULL << 40) // Used when creating new CephFS. Change with 'ceph mds set max_file_size ' afterwards +OPTION(journaler_write_head_interval, OPT_INT) +OPTION(journaler_prefetch_periods, OPT_INT) // * journal object size +OPTION(journaler_prezero_periods, OPT_INT) // * journal object size +OPTION(mds_data, OPT_STR) +OPTION(mds_max_file_size, OPT_U64) // Used when creating new CephFS. Change with 'ceph mds set max_file_size ' afterwards // max xattr kv pairs size for each dir/file -OPTION(mds_max_xattr_pairs_size, OPT_U32, 64 << 10) -OPTION(mds_cache_size, OPT_INT, 100000) -OPTION(mds_cache_mid, OPT_FLOAT, .7) -OPTION(mds_max_file_recover, OPT_U32, 32) -OPTION(mds_dir_max_commit_size, OPT_INT, 10) // MB -OPTION(mds_dir_keys_per_op, OPT_INT, 16384) -OPTION(mds_decay_halflife, OPT_FLOAT, 5) -OPTION(mds_beacon_interval, OPT_FLOAT, 4) -OPTION(mds_beacon_grace, OPT_FLOAT, 15) -OPTION(mds_enforce_unique_name, OPT_BOOL, true) -OPTION(mds_blacklist_interval, OPT_FLOAT, 24.0*60.0) // how long to blacklist failed nodes - -OPTION(mds_session_timeout, OPT_FLOAT, 60) // cap bits and leases time out if client idle -OPTION(mds_session_blacklist_on_timeout, OPT_BOOL, true) // whether to blacklist clients whose sessions are dropped due to timeout -OPTION(mds_session_blacklist_on_evict, OPT_BOOL, true) // whether to blacklist clients whose sessions are dropped via admin commands - -OPTION(mds_sessionmap_keys_per_op, OPT_U32, 1024) // how many sessions should I try to load/store in a single OMAP operation? -OPTION(mds_revoke_cap_timeout, OPT_FLOAT, 60) // detect clients which aren't revoking caps -OPTION(mds_recall_state_timeout, OPT_FLOAT, 60) // detect clients which aren't trimming caps -OPTION(mds_freeze_tree_timeout, OPT_FLOAT, 30) // detecting freeze tree deadlock -OPTION(mds_session_autoclose, OPT_FLOAT, 300) // autoclose idle session -OPTION(mds_health_summarize_threshold, OPT_INT, 10) // collapse N-client health metrics to a single 'many' -OPTION(mds_health_cache_threshold, OPT_FLOAT, 1.5) // warn on cache size if it exceeds mds_cache_size by this factor -OPTION(mds_reconnect_timeout, OPT_FLOAT, 45) // seconds to wait for clients during mds restart +OPTION(mds_max_xattr_pairs_size, OPT_U32) +OPTION(mds_cache_size, OPT_INT) +OPTION(mds_cache_mid, OPT_FLOAT) +OPTION(mds_max_file_recover, OPT_U32) +OPTION(mds_dir_max_commit_size, OPT_INT) // MB +OPTION(mds_dir_keys_per_op, OPT_INT) +OPTION(mds_decay_halflife, OPT_FLOAT) +OPTION(mds_beacon_interval, OPT_FLOAT) +OPTION(mds_beacon_grace, OPT_FLOAT) +OPTION(mds_enforce_unique_name, OPT_BOOL) +OPTION(mds_blacklist_interval, OPT_FLOAT) // how long to blacklist failed nodes + +OPTION(mds_session_timeout, OPT_FLOAT) // cap bits and leases time out if client idle +OPTION(mds_session_blacklist_on_timeout, OPT_BOOL) // whether to blacklist clients whose sessions are dropped due to timeout +OPTION(mds_session_blacklist_on_evict, OPT_BOOL) // whether to blacklist clients whose sessions are dropped via admin commands + +OPTION(mds_sessionmap_keys_per_op, OPT_U32) // how many sessions should I try to load/store in a single OMAP operation? +OPTION(mds_revoke_cap_timeout, OPT_FLOAT) // detect clients which aren't revoking caps +OPTION(mds_recall_state_timeout, OPT_FLOAT) // detect clients which aren't trimming caps +OPTION(mds_freeze_tree_timeout, OPT_FLOAT) // detecting freeze tree deadlock +OPTION(mds_session_autoclose, OPT_FLOAT) // autoclose idle session +OPTION(mds_health_summarize_threshold, OPT_INT) // collapse N-client health metrics to a single 'many' +OPTION(mds_health_cache_threshold, OPT_FLOAT) // warn on cache size if it exceeds mds_cache_size by this factor +OPTION(mds_reconnect_timeout, OPT_FLOAT) // seconds to wait for clients during mds restart // make it (mds_session_timeout - mds_beacon_grace) -OPTION(mds_tick_interval, OPT_FLOAT, 5) -OPTION(mds_dirstat_min_interval, OPT_FLOAT, 1) // try to avoid propagating more often than this -OPTION(mds_scatter_nudge_interval, OPT_FLOAT, 5) // how quickly dirstat changes propagate up the hierarchy -OPTION(mds_client_prealloc_inos, OPT_INT, 1000) -OPTION(mds_early_reply, OPT_BOOL, true) -OPTION(mds_default_dir_hash, OPT_INT, CEPH_STR_HASH_RJENKINS) -OPTION(mds_log_pause, OPT_BOOL, false) -OPTION(mds_log_skip_corrupt_events, OPT_BOOL, false) -OPTION(mds_log_max_events, OPT_INT, -1) -OPTION(mds_log_events_per_segment, OPT_INT, 1024) -OPTION(mds_log_segment_size, OPT_INT, 0) // segment size for mds log, default to default file_layout_t -OPTION(mds_log_max_segments, OPT_U32, 30) -OPTION(mds_log_max_expiring, OPT_INT, 20) -OPTION(mds_bal_export_pin, OPT_BOOL, true) // allow clients to pin directory trees to ranks -OPTION(mds_bal_sample_interval, OPT_DOUBLE, 3.0) // every 3 seconds -OPTION(mds_bal_replicate_threshold, OPT_FLOAT, 8000) -OPTION(mds_bal_unreplicate_threshold, OPT_FLOAT, 0) -OPTION(mds_bal_frag, OPT_BOOL, true) -OPTION(mds_bal_split_size, OPT_INT, 10000) -OPTION(mds_bal_split_rd, OPT_FLOAT, 25000) -OPTION(mds_bal_split_wr, OPT_FLOAT, 10000) -OPTION(mds_bal_split_bits, OPT_INT, 3) -OPTION(mds_bal_merge_size, OPT_INT, 50) -OPTION(mds_bal_interval, OPT_INT, 10) // seconds -OPTION(mds_bal_fragment_interval, OPT_INT, 5) // seconds -OPTION(mds_bal_fragment_size_max, OPT_INT, 10000*10) // order of magnitude higher than split size -OPTION(mds_bal_fragment_fast_factor, OPT_FLOAT, 1.5) // multiple of size_max that triggers immediate split -OPTION(mds_bal_idle_threshold, OPT_FLOAT, 0) -OPTION(mds_bal_max, OPT_INT, -1) -OPTION(mds_bal_max_until, OPT_INT, -1) -OPTION(mds_bal_mode, OPT_INT, 0) -OPTION(mds_bal_min_rebalance, OPT_FLOAT, .1) // must be this much above average before we export anything -OPTION(mds_bal_min_start, OPT_FLOAT, .2) // if we need less than this, we don't do anything -OPTION(mds_bal_need_min, OPT_FLOAT, .8) // take within this range of what we need -OPTION(mds_bal_need_max, OPT_FLOAT, 1.2) -OPTION(mds_bal_midchunk, OPT_FLOAT, .3) // any sub bigger than this taken in full -OPTION(mds_bal_minchunk, OPT_FLOAT, .001) // never take anything smaller than this -OPTION(mds_bal_target_decay, OPT_DOUBLE, 10.0) // target decay half-life in MDSMap (2x larger is approx. 2x slower) -OPTION(mds_replay_interval, OPT_FLOAT, 1.0) // time to wait before starting replay again -OPTION(mds_shutdown_check, OPT_INT, 0) -OPTION(mds_thrash_exports, OPT_INT, 0) -OPTION(mds_thrash_fragments, OPT_INT, 0) -OPTION(mds_dump_cache_on_map, OPT_BOOL, false) -OPTION(mds_dump_cache_after_rejoin, OPT_BOOL, false) -OPTION(mds_verify_scatter, OPT_BOOL, false) -OPTION(mds_debug_scatterstat, OPT_BOOL, false) -OPTION(mds_debug_frag, OPT_BOOL, false) -OPTION(mds_debug_auth_pins, OPT_BOOL, false) -OPTION(mds_debug_subtrees, OPT_BOOL, false) -OPTION(mds_kill_mdstable_at, OPT_INT, 0) -OPTION(mds_kill_export_at, OPT_INT, 0) -OPTION(mds_kill_import_at, OPT_INT, 0) -OPTION(mds_kill_link_at, OPT_INT, 0) -OPTION(mds_kill_rename_at, OPT_INT, 0) -OPTION(mds_kill_openc_at, OPT_INT, 0) -OPTION(mds_kill_journal_expire_at, OPT_INT, 0) -OPTION(mds_kill_journal_replay_at, OPT_INT, 0) -OPTION(mds_journal_format, OPT_U32, 1) // Default to most recent JOURNAL_FORMAT_* -OPTION(mds_kill_create_at, OPT_INT, 0) -OPTION(mds_inject_traceless_reply_probability, OPT_DOUBLE, 0) /* percentage +OPTION(mds_tick_interval, OPT_FLOAT) +OPTION(mds_dirstat_min_interval, OPT_FLOAT) // try to avoid propagating more often than this +OPTION(mds_scatter_nudge_interval, OPT_FLOAT) // how quickly dirstat changes propagate up the hierarchy +OPTION(mds_client_prealloc_inos, OPT_INT) +OPTION(mds_early_reply, OPT_BOOL) +OPTION(mds_default_dir_hash, OPT_INT) +OPTION(mds_log_pause, OPT_BOOL) +OPTION(mds_log_skip_corrupt_events, OPT_BOOL) +OPTION(mds_log_max_events, OPT_INT) +OPTION(mds_log_events_per_segment, OPT_INT) +OPTION(mds_log_segment_size, OPT_INT) // segment size for mds log, default to default file_layout_t +OPTION(mds_log_max_segments, OPT_U32) +OPTION(mds_log_max_expiring, OPT_INT) +OPTION(mds_bal_export_pin, OPT_BOOL) // allow clients to pin directory trees to ranks +OPTION(mds_bal_sample_interval, OPT_DOUBLE) // every 3 seconds +OPTION(mds_bal_replicate_threshold, OPT_FLOAT) +OPTION(mds_bal_unreplicate_threshold, OPT_FLOAT) +OPTION(mds_bal_frag, OPT_BOOL) +OPTION(mds_bal_split_size, OPT_INT) +OPTION(mds_bal_split_rd, OPT_FLOAT) +OPTION(mds_bal_split_wr, OPT_FLOAT) +OPTION(mds_bal_split_bits, OPT_INT) +OPTION(mds_bal_merge_size, OPT_INT) +OPTION(mds_bal_interval, OPT_INT) // seconds +OPTION(mds_bal_fragment_interval, OPT_INT) // seconds +OPTION(mds_bal_fragment_size_max, OPT_INT) // order of magnitude higher than split size +OPTION(mds_bal_fragment_fast_factor, OPT_FLOAT) // multiple of size_max that triggers immediate split +OPTION(mds_bal_idle_threshold, OPT_FLOAT) +OPTION(mds_bal_max, OPT_INT) +OPTION(mds_bal_max_until, OPT_INT) +OPTION(mds_bal_mode, OPT_INT) +OPTION(mds_bal_min_rebalance, OPT_FLOAT) // must be this much above average before we export anything +OPTION(mds_bal_min_start, OPT_FLOAT) // if we need less than this, we don't do anything +OPTION(mds_bal_need_min, OPT_FLOAT) // take within this range of what we need +OPTION(mds_bal_need_max, OPT_FLOAT) +OPTION(mds_bal_midchunk, OPT_FLOAT) // any sub bigger than this taken in full +OPTION(mds_bal_minchunk, OPT_FLOAT) // never take anything smaller than this +OPTION(mds_bal_target_decay, OPT_DOUBLE) // target decay half-life in MDSMap (2x larger is approx. 2x slower) +OPTION(mds_replay_interval, OPT_FLOAT) // time to wait before starting replay again +OPTION(mds_shutdown_check, OPT_INT) +OPTION(mds_thrash_exports, OPT_INT) +OPTION(mds_thrash_fragments, OPT_INT) +OPTION(mds_dump_cache_on_map, OPT_BOOL) +OPTION(mds_dump_cache_after_rejoin, OPT_BOOL) +OPTION(mds_verify_scatter, OPT_BOOL) +OPTION(mds_debug_scatterstat, OPT_BOOL) +OPTION(mds_debug_frag, OPT_BOOL) +OPTION(mds_debug_auth_pins, OPT_BOOL) +OPTION(mds_debug_subtrees, OPT_BOOL) +OPTION(mds_kill_mdstable_at, OPT_INT) +OPTION(mds_kill_export_at, OPT_INT) +OPTION(mds_kill_import_at, OPT_INT) +OPTION(mds_kill_link_at, OPT_INT) +OPTION(mds_kill_rename_at, OPT_INT) +OPTION(mds_kill_openc_at, OPT_INT) +OPTION(mds_kill_journal_expire_at, OPT_INT) +OPTION(mds_kill_journal_replay_at, OPT_INT) +OPTION(mds_journal_format, OPT_U32) // Default to most recent JOURNAL_FORMAT_* +OPTION(mds_kill_create_at, OPT_INT) +OPTION(mds_inject_traceless_reply_probability, OPT_DOUBLE) /* percentage of MDS modify replies to skip sending the client a trace on [0-1]*/ -OPTION(mds_wipe_sessions, OPT_BOOL, 0) -OPTION(mds_wipe_ino_prealloc, OPT_BOOL, 0) -OPTION(mds_skip_ino, OPT_INT, 0) -OPTION(mds_standby_for_name, OPT_STR, "") -OPTION(mds_standby_for_rank, OPT_INT, -1) -OPTION(mds_standby_for_fscid, OPT_INT, -1) -OPTION(mds_standby_replay, OPT_BOOL, false) -OPTION(mds_enable_op_tracker, OPT_BOOL, true) // enable/disable MDS op tracking -OPTION(mds_op_history_size, OPT_U32, 20) // Max number of completed ops to track -OPTION(mds_op_history_duration, OPT_U32, 600) // Oldest completed op to track -OPTION(mds_op_complaint_time, OPT_FLOAT, 30) // how many seconds old makes an op complaint-worthy -OPTION(mds_op_log_threshold, OPT_INT, 5) // how many op log messages to show in one go -OPTION(mds_snap_min_uid, OPT_U32, 0) // The minimum UID required to create a snapshot -OPTION(mds_snap_max_uid, OPT_U32, 4294967294) // The maximum UID allowed to create a snapshot -OPTION(mds_snap_rstat, OPT_BOOL, false) // enable/disbale nested stat for snapshot -OPTION(mds_verify_backtrace, OPT_U32, 1) +OPTION(mds_wipe_sessions, OPT_BOOL) +OPTION(mds_wipe_ino_prealloc, OPT_BOOL) +OPTION(mds_skip_ino, OPT_INT) +OPTION(mds_standby_for_name, OPT_STR) +OPTION(mds_standby_for_rank, OPT_INT) +OPTION(mds_standby_for_fscid, OPT_INT) +OPTION(mds_standby_replay, OPT_BOOL) +OPTION(mds_enable_op_tracker, OPT_BOOL) // enable/disable MDS op tracking +OPTION(mds_op_history_size, OPT_U32) // Max number of completed ops to track +OPTION(mds_op_history_duration, OPT_U32) // Oldest completed op to track +OPTION(mds_op_complaint_time, OPT_FLOAT) // how many seconds old makes an op complaint-worthy +OPTION(mds_op_log_threshold, OPT_INT) // how many op log messages to show in one go +OPTION(mds_snap_min_uid, OPT_U32) // The minimum UID required to create a snapshot +OPTION(mds_snap_max_uid, OPT_U32) // The maximum UID allowed to create a snapshot +OPTION(mds_snap_rstat, OPT_BOOL) // enable/disbale nested stat for snapshot +OPTION(mds_verify_backtrace, OPT_U32) // detect clients which aren't trimming completed requests -OPTION(mds_max_completed_flushes, OPT_U32, 100000) -OPTION(mds_max_completed_requests, OPT_U32, 100000) +OPTION(mds_max_completed_flushes, OPT_U32) +OPTION(mds_max_completed_requests, OPT_U32) -OPTION(mds_action_on_write_error, OPT_U32, 1) // 0: ignore; 1: force readonly; 2: crash -OPTION(mds_mon_shutdown_timeout, OPT_DOUBLE, 5) +OPTION(mds_action_on_write_error, OPT_U32) // 0: ignore; 1: force readonly; 2: crash +OPTION(mds_mon_shutdown_timeout, OPT_DOUBLE) // Maximum number of concurrent stray files to purge -OPTION(mds_max_purge_files, OPT_U32, 64) +OPTION(mds_max_purge_files, OPT_U32) // Maximum number of concurrent RADOS ops to issue in purging -OPTION(mds_max_purge_ops, OPT_U32, 8192) +OPTION(mds_max_purge_ops, OPT_U32) // Maximum number of concurrent RADOS ops to issue in purging, scaled by PG count -OPTION(mds_max_purge_ops_per_pg, OPT_FLOAT, 0.5) +OPTION(mds_max_purge_ops_per_pg, OPT_FLOAT) -OPTION(mds_purge_queue_busy_flush_period, OPT_FLOAT, 1.0) +OPTION(mds_purge_queue_busy_flush_period, OPT_FLOAT) -OPTION(mds_root_ino_uid, OPT_INT, 0) // The UID of / on new filesystems -OPTION(mds_root_ino_gid, OPT_INT, 0) // The GID of / on new filesystems +OPTION(mds_root_ino_uid, OPT_INT) // The UID of / on new filesystems +OPTION(mds_root_ino_gid, OPT_INT) // The GID of / on new filesystems -OPTION(mds_max_scrub_ops_in_progress, OPT_INT, 5) // the number of simultaneous scrubs allowed +OPTION(mds_max_scrub_ops_in_progress, OPT_INT) // the number of simultaneous scrubs allowed // Maximum number of damaged frags/dentries before whole MDS rank goes damaged -OPTION(mds_damage_table_max_entries, OPT_INT, 10000) +OPTION(mds_damage_table_max_entries, OPT_INT) // Maximum increment for client writable range, counted by number of objects -OPTION(mds_client_writeable_range_max_inc_objs, OPT_U32, 1024) +OPTION(mds_client_writeable_range_max_inc_objs, OPT_U32) // verify backend can support configured max object name length -OPTION(osd_check_max_object_name_len_on_startup, OPT_BOOL, true) +OPTION(osd_check_max_object_name_len_on_startup, OPT_BOOL) // Maximum number of backfills to or from a single osd -OPTION(osd_max_backfills, OPT_U64, 1) +OPTION(osd_max_backfills, OPT_U64) // Minimum recovery priority (255 = max, smaller = lower) -OPTION(osd_min_recovery_priority, OPT_INT, 0) +OPTION(osd_min_recovery_priority, OPT_INT) // Seconds to wait before retrying refused backfills -OPTION(osd_backfill_retry_interval, OPT_DOUBLE, 30.0) +OPTION(osd_backfill_retry_interval, OPT_DOUBLE) // Seconds to wait before retrying refused recovery -OPTION(osd_recovery_retry_interval, OPT_DOUBLE, 30.0) +OPTION(osd_recovery_retry_interval, OPT_DOUBLE) // max agent flush ops -OPTION(osd_agent_max_ops, OPT_INT, 4) -OPTION(osd_agent_max_low_ops, OPT_INT, 2) -OPTION(osd_agent_min_evict_effort, OPT_FLOAT, .1) -OPTION(osd_agent_quantize_effort, OPT_FLOAT, .1) -OPTION(osd_agent_delay_time, OPT_FLOAT, 5.0) +OPTION(osd_agent_max_ops, OPT_INT) +OPTION(osd_agent_max_low_ops, OPT_INT) +OPTION(osd_agent_min_evict_effort, OPT_FLOAT) +OPTION(osd_agent_quantize_effort, OPT_FLOAT) +OPTION(osd_agent_delay_time, OPT_FLOAT) // osd ignore history.last_epoch_started in find_best_info -OPTION(osd_find_best_info_ignore_history_les, OPT_BOOL, false) +OPTION(osd_find_best_info_ignore_history_les, OPT_BOOL) // decay atime and hist histograms after how many objects go by -OPTION(osd_agent_hist_halflife, OPT_INT, 1000) +OPTION(osd_agent_hist_halflife, OPT_INT) // must be this amount over the threshold to enable, // this amount below the threshold to disable. -OPTION(osd_agent_slop, OPT_FLOAT, .02) +OPTION(osd_agent_slop, OPT_FLOAT) -OPTION(osd_uuid, OPT_UUID, uuid_d()) -OPTION(osd_data, OPT_STR, "/var/lib/ceph/osd/$cluster-$id") -OPTION(osd_journal, OPT_STR, "/var/lib/ceph/osd/$cluster-$id/journal") -OPTION(osd_journal_size, OPT_INT, 5120) // in mb -OPTION(osd_journal_flush_on_shutdown, OPT_BOOL, true) // Flush journal to data store on shutdown +OPTION(osd_uuid, OPT_UUID) +OPTION(osd_data, OPT_STR) +OPTION(osd_journal, OPT_STR) +OPTION(osd_journal_size, OPT_INT) // in mb +OPTION(osd_journal_flush_on_shutdown, OPT_BOOL) // Flush journal to data store on shutdown // flags for specific control purpose during osd mount() process. // e.g., can be 1 to skip over replaying journal // or 2 to skip over mounting omap or 3 to skip over both. // This might be helpful in case the journal is totally corrupted // and we still want to bring the osd daemon back normally, etc. -OPTION(osd_os_flags, OPT_U32, 0) -OPTION(osd_max_write_size, OPT_INT, 90) -OPTION(osd_max_pgls, OPT_U64, 1024) // max number of pgls entries to return -OPTION(osd_client_message_size_cap, OPT_U64, 500*1024L*1024L) // client data allowed in-memory (in bytes) -OPTION(osd_client_message_cap, OPT_U64, 100) // num client messages allowed in-memory -OPTION(osd_pg_bits, OPT_INT, 6) // bits per osd -OPTION(osd_pgp_bits, OPT_INT, 6) // bits per osd -OPTION(osd_crush_update_weight_set, OPT_BOOL, true) // update weight set while updating weights -OPTION(osd_crush_chooseleaf_type, OPT_INT, 1) // 1 = host -OPTION(osd_pool_use_gmt_hitset, OPT_BOOL, true) // try to use gmt for hitset archive names if all osds in cluster support it. -OPTION(osd_crush_update_on_start, OPT_BOOL, true) -OPTION(osd_class_update_on_start, OPT_BOOL, true) // automatically set device class on start -OPTION(osd_crush_initial_weight, OPT_DOUBLE, -1) // if >=0, the initial weight is for newly added osds. -OPTION(osd_pool_default_crush_rule, OPT_INT, -1) -OPTION(osd_pool_erasure_code_stripe_unit, OPT_U32, 4096) // in bytes -OPTION(osd_pool_default_size, OPT_INT, 3) -OPTION(osd_pool_default_min_size, OPT_INT, 0) // 0 means no specific default; ceph will use size-size/2 -OPTION(osd_pool_default_pg_num, OPT_INT, 8) // number of PGs for new pools. Configure in global or mon section of ceph.conf -OPTION(osd_pool_default_pgp_num, OPT_INT, 8) // number of PGs for placement purposes. Should be equal to pg_num -OPTION(osd_pool_default_type, OPT_STR, "replicated") -OPTION(osd_pool_default_erasure_code_profile, - OPT_STR, - "plugin=jerasure " - "technique=reed_sol_van " - "k=2 " - "m=1 " - ) // default properties of osd pool create -OPTION(osd_erasure_code_plugins, OPT_STR, - "jerasure" - " lrc" -#ifdef HAVE_BETTER_YASM_ELF64 - " isa" -#endif - ) // list of erasure code plugins +OPTION(osd_os_flags, OPT_U32) +OPTION(osd_max_write_size, OPT_INT) +OPTION(osd_max_pgls, OPT_U64) // max number of pgls entries to return +OPTION(osd_client_message_size_cap, OPT_U64) // client data allowed in-memory (in bytes) +OPTION(osd_client_message_cap, OPT_U64) // num client messages allowed in-memory +OPTION(osd_pg_bits, OPT_INT) // bits per osd +OPTION(osd_pgp_bits, OPT_INT) // bits per osd +OPTION(osd_crush_update_weight_set, OPT_BOOL) // update weight set while updating weights +OPTION(osd_crush_chooseleaf_type, OPT_INT) // 1 = host +OPTION(osd_pool_use_gmt_hitset, OPT_BOOL) // try to use gmt for hitset archive names if all osds in cluster support it. +OPTION(osd_crush_update_on_start, OPT_BOOL) +OPTION(osd_class_update_on_start, OPT_BOOL) // automatically set device class on start +OPTION(osd_crush_initial_weight, OPT_DOUBLE) // if >=0, the initial weight is for newly added osds. +OPTION(osd_pool_default_crush_rule, OPT_INT) +OPTION(osd_pool_erasure_code_stripe_unit, OPT_U32) // in bytes +OPTION(osd_pool_default_size, OPT_INT) +OPTION(osd_pool_default_min_size, OPT_INT) // 0 means no specific default; ceph will use size-size/2 +OPTION(osd_pool_default_pg_num, OPT_INT) // number of PGs for new pools. Configure in global or mon section of ceph.conf +OPTION(osd_pool_default_pgp_num, OPT_INT) // number of PGs for placement purposes. Should be equal to pg_num +OPTION(osd_pool_default_type, OPT_STR) +OPTION(osd_pool_default_erasure_code_profile, OPT_STR) // default properties of osd pool create +OPTION(osd_erasure_code_plugins, OPT_STR) // list of erasure code plugins // Allows the "peered" state for recovery and backfill below min_size -OPTION(osd_allow_recovery_below_min_size, OPT_BOOL, true) - -OPTION(osd_pool_default_flags, OPT_INT, 0) // default flags for new pools -OPTION(osd_pool_default_flag_hashpspool, OPT_BOOL, true) // use new pg hashing to prevent pool/pg overlap -OPTION(osd_pool_default_flag_nodelete, OPT_BOOL, false) // pool can't be deleted -OPTION(osd_pool_default_flag_nopgchange, OPT_BOOL, false) // pool's pg and pgp num can't be changed -OPTION(osd_pool_default_flag_nosizechange, OPT_BOOL, false) // pool's size and min size can't be changed -OPTION(osd_pool_default_hit_set_bloom_fpp, OPT_FLOAT, .05) -OPTION(osd_pool_default_cache_target_dirty_ratio, OPT_FLOAT, .4) -OPTION(osd_pool_default_cache_target_dirty_high_ratio, OPT_FLOAT, .6) -OPTION(osd_pool_default_cache_target_full_ratio, OPT_FLOAT, .8) -OPTION(osd_pool_default_cache_min_flush_age, OPT_INT, 0) // seconds -OPTION(osd_pool_default_cache_min_evict_age, OPT_INT, 0) // seconds -OPTION(osd_pool_default_cache_max_evict_check_size, OPT_INT, 10) // max size to check for eviction -OPTION(osd_hit_set_min_size, OPT_INT, 1000) // min target size for a HitSet -OPTION(osd_hit_set_max_size, OPT_INT, 100000) // max target size for a HitSet -OPTION(osd_hit_set_namespace, OPT_STR, ".ceph-internal") // rados namespace for hit_set tracking +OPTION(osd_allow_recovery_below_min_size, OPT_BOOL) + +OPTION(osd_pool_default_flags, OPT_INT) // default flags for new pools +OPTION(osd_pool_default_flag_hashpspool, OPT_BOOL) // use new pg hashing to prevent pool/pg overlap +OPTION(osd_pool_default_flag_nodelete, OPT_BOOL) // pool can't be deleted +OPTION(osd_pool_default_flag_nopgchange, OPT_BOOL) // pool's pg and pgp num can't be changed +OPTION(osd_pool_default_flag_nosizechange, OPT_BOOL) // pool's size and min size can't be changed +OPTION(osd_pool_default_hit_set_bloom_fpp, OPT_FLOAT) +OPTION(osd_pool_default_cache_target_dirty_ratio, OPT_FLOAT) +OPTION(osd_pool_default_cache_target_dirty_high_ratio, OPT_FLOAT) +OPTION(osd_pool_default_cache_target_full_ratio, OPT_FLOAT) +OPTION(osd_pool_default_cache_min_flush_age, OPT_INT) // seconds +OPTION(osd_pool_default_cache_min_evict_age, OPT_INT) // seconds +OPTION(osd_pool_default_cache_max_evict_check_size, OPT_INT) // max size to check for eviction +OPTION(osd_hit_set_min_size, OPT_INT) // min target size for a HitSet +OPTION(osd_hit_set_max_size, OPT_INT) // max target size for a HitSet +OPTION(osd_hit_set_namespace, OPT_STR) // rados namespace for hit_set tracking // conservative default throttling values -OPTION(osd_tier_promote_max_objects_sec, OPT_U64, 25) -OPTION(osd_tier_promote_max_bytes_sec, OPT_U64, 5 * 1024*1024) - -OPTION(osd_tier_default_cache_mode, OPT_STR, "writeback") -OPTION(osd_tier_default_cache_hit_set_count, OPT_INT, 4) -OPTION(osd_tier_default_cache_hit_set_period, OPT_INT, 1200) -OPTION(osd_tier_default_cache_hit_set_type, OPT_STR, "bloom") -OPTION(osd_tier_default_cache_min_read_recency_for_promote, OPT_INT, 1) // number of recent HitSets the object must appear in to be promoted (on read) -OPTION(osd_tier_default_cache_min_write_recency_for_promote, OPT_INT, 1) // number of recent HitSets the object must appear in to be promoted (on write) -OPTION(osd_tier_default_cache_hit_set_grade_decay_rate, OPT_INT, 20) -OPTION(osd_tier_default_cache_hit_set_search_last_n, OPT_INT, 1) - -OPTION(osd_map_dedup, OPT_BOOL, true) -OPTION(osd_map_max_advance, OPT_INT, 40) // make this < cache_size! -OPTION(osd_map_cache_size, OPT_INT, 50) -OPTION(osd_map_message_max, OPT_INT, 40) // max maps per MOSDMap message -OPTION(osd_map_share_max_epochs, OPT_INT, 40) // cap on # of inc maps we send to peers, clients -OPTION(osd_inject_bad_map_crc_probability, OPT_FLOAT, 0) -OPTION(osd_inject_failure_on_pg_removal, OPT_BOOL, false) +OPTION(osd_tier_promote_max_objects_sec, OPT_U64) +OPTION(osd_tier_promote_max_bytes_sec, OPT_U64) + +OPTION(osd_tier_default_cache_mode, OPT_STR) +OPTION(osd_tier_default_cache_hit_set_count, OPT_INT) +OPTION(osd_tier_default_cache_hit_set_period, OPT_INT) +OPTION(osd_tier_default_cache_hit_set_type, OPT_STR) +OPTION(osd_tier_default_cache_min_read_recency_for_promote, OPT_INT) // number of recent HitSets the object must appear in to be promoted (on read) +OPTION(osd_tier_default_cache_min_write_recency_for_promote, OPT_INT) // number of recent HitSets the object must appear in to be promoted (on write) +OPTION(osd_tier_default_cache_hit_set_grade_decay_rate, OPT_INT) +OPTION(osd_tier_default_cache_hit_set_search_last_n, OPT_INT) + +OPTION(osd_map_dedup, OPT_BOOL) +OPTION(osd_map_max_advance, OPT_INT) // make this < cache_size! +OPTION(osd_map_cache_size, OPT_INT) +OPTION(osd_map_message_max, OPT_INT) // max maps per MOSDMap message +OPTION(osd_map_share_max_epochs, OPT_INT) // cap on # of inc maps we send to peers, clients +OPTION(osd_inject_bad_map_crc_probability, OPT_FLOAT) +OPTION(osd_inject_failure_on_pg_removal, OPT_BOOL) // shutdown the OSD if stuatus flipping more than max_markdown_count times in recent max_markdown_period seconds -OPTION(osd_max_markdown_period , OPT_INT, 600) -OPTION(osd_max_markdown_count, OPT_INT, 5) - -OPTION(osd_peering_wq_threads, OPT_INT, 2) -OPTION(osd_peering_wq_batch_size, OPT_U64, 20) -OPTION(osd_op_pq_max_tokens_per_priority, OPT_U64, 4194304) -OPTION(osd_op_pq_min_cost, OPT_U64, 65536) -OPTION(osd_disk_threads, OPT_INT, 1) -OPTION(osd_disk_thread_ioprio_class, OPT_STR, "") // rt realtime be best effort idle -OPTION(osd_disk_thread_ioprio_priority, OPT_INT, -1) // 0-7 -OPTION(osd_recover_clone_overlap, OPT_BOOL, true) // preserve clone_overlap during recovery/migration -OPTION(osd_op_num_threads_per_shard, OPT_INT, 0) -OPTION(osd_op_num_threads_per_shard_hdd, OPT_INT, 1) -OPTION(osd_op_num_threads_per_shard_ssd, OPT_INT, 2) -OPTION(osd_op_num_shards, OPT_INT, 0) -OPTION(osd_op_num_shards_hdd, OPT_INT, 5) -OPTION(osd_op_num_shards_ssd, OPT_INT, 8) +OPTION(osd_max_markdown_period , OPT_INT) +OPTION(osd_max_markdown_count, OPT_INT) + +OPTION(osd_peering_wq_threads, OPT_INT) +OPTION(osd_peering_wq_batch_size, OPT_U64) +OPTION(osd_op_pq_max_tokens_per_priority, OPT_U64) +OPTION(osd_op_pq_min_cost, OPT_U64) +OPTION(osd_disk_threads, OPT_INT) +OPTION(osd_disk_thread_ioprio_class, OPT_STR) // rt realtime be best effort idle +OPTION(osd_disk_thread_ioprio_priority, OPT_INT) // 0-7 +OPTION(osd_recover_clone_overlap, OPT_BOOL) // preserve clone_overlap during recovery/migration +OPTION(osd_op_num_threads_per_shard, OPT_INT) +OPTION(osd_op_num_threads_per_shard_hdd, OPT_INT) +OPTION(osd_op_num_threads_per_shard_ssd, OPT_INT) +OPTION(osd_op_num_shards, OPT_INT) +OPTION(osd_op_num_shards_hdd, OPT_INT) +OPTION(osd_op_num_shards_ssd, OPT_INT) // PrioritzedQueue (prio), Weighted Priority Queue (wpq ; default), // mclock_opclass, mclock_client, or debug_random. "mclock_opclass" @@ -720,216 +694,214 @@ OPTION(osd_op_num_shards_ssd, OPT_INT, 8) // class the operation belongs to. "mclock_client" does the same but // also works to ienforce fairness between clients. "debug_random" // chooses among all four with equal probability. -OPTION(osd_op_queue, OPT_STR, "wpq") +OPTION(osd_op_queue, OPT_STR) -OPTION(osd_op_queue_cut_off, OPT_STR, "low") // Min priority to go to strict queue. (low, high, debug_random) +OPTION(osd_op_queue_cut_off, OPT_STR) // Min priority to go to strict queue. (low, high) // mClock priority queue parameters for five types of ops -OPTION(osd_op_queue_mclock_client_op_res, OPT_DOUBLE, 1000.0) -OPTION(osd_op_queue_mclock_client_op_wgt, OPT_DOUBLE, 500.0) -OPTION(osd_op_queue_mclock_client_op_lim, OPT_DOUBLE, 0.0) -OPTION(osd_op_queue_mclock_osd_subop_res, OPT_DOUBLE, 1000.0) -OPTION(osd_op_queue_mclock_osd_subop_wgt, OPT_DOUBLE, 500.0) -OPTION(osd_op_queue_mclock_osd_subop_lim, OPT_DOUBLE, 0.0) -OPTION(osd_op_queue_mclock_snap_res, OPT_DOUBLE, 0.0) -OPTION(osd_op_queue_mclock_snap_wgt, OPT_DOUBLE, 1.0) -OPTION(osd_op_queue_mclock_snap_lim, OPT_DOUBLE, 0.001) -OPTION(osd_op_queue_mclock_recov_res, OPT_DOUBLE, 0.0) -OPTION(osd_op_queue_mclock_recov_wgt, OPT_DOUBLE, 1.0) -OPTION(osd_op_queue_mclock_recov_lim, OPT_DOUBLE, 0.001) -OPTION(osd_op_queue_mclock_scrub_res, OPT_DOUBLE, 0.0) -OPTION(osd_op_queue_mclock_scrub_wgt, OPT_DOUBLE, 1.0) -OPTION(osd_op_queue_mclock_scrub_lim, OPT_DOUBLE, 0.001) - -OPTION(osd_ignore_stale_divergent_priors, OPT_BOOL, false) // do not assert on divergent_prior entries which aren't in the log and whose on-disk objects are newer +OPTION(osd_op_queue_mclock_client_op_res, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_client_op_wgt, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_client_op_lim, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_osd_subop_res, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_osd_subop_wgt, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_osd_subop_lim, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_snap_res, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_snap_wgt, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_snap_lim, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_recov_res, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_recov_wgt, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_recov_lim, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_scrub_res, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_scrub_wgt, OPT_DOUBLE) +OPTION(osd_op_queue_mclock_scrub_lim, OPT_DOUBLE) + +OPTION(osd_ignore_stale_divergent_priors, OPT_BOOL) // do not assert on divergent_prior entries which aren't in the log and whose on-disk objects are newer // Set to true for testing. Users should NOT set this. // If set to true even after reading enough shards to // decode the object, any error will be reported. -OPTION(osd_read_ec_check_for_errors, OPT_BOOL, false) // return error if any ec shard has an error +OPTION(osd_read_ec_check_for_errors, OPT_BOOL) // return error if any ec shard has an error // Only use clone_overlap for recovery if there are fewer than // osd_recover_clone_overlap_limit entries in the overlap set -OPTION(osd_recover_clone_overlap_limit, OPT_INT, 10) - -OPTION(osd_backfill_scan_min, OPT_INT, 64) -OPTION(osd_backfill_scan_max, OPT_INT, 512) -OPTION(osd_op_thread_timeout, OPT_INT, 15) -OPTION(osd_op_thread_suicide_timeout, OPT_INT, 150) -OPTION(osd_recovery_thread_timeout, OPT_INT, 30) -OPTION(osd_recovery_thread_suicide_timeout, OPT_INT, 300) -OPTION(osd_recovery_sleep, OPT_FLOAT, 0) // seconds to sleep between recovery ops -OPTION(osd_recovery_sleep_hdd, OPT_FLOAT, 0.1) -OPTION(osd_recovery_sleep_ssd, OPT_FLOAT, 0) -OPTION(osd_snap_trim_sleep, OPT_DOUBLE, 0) -OPTION(osd_scrub_invalid_stats, OPT_BOOL, true) -OPTION(osd_remove_thread_timeout, OPT_INT, 60*60) -OPTION(osd_remove_thread_suicide_timeout, OPT_INT, 10*60*60) -OPTION(osd_command_thread_timeout, OPT_INT, 10*60) -OPTION(osd_command_thread_suicide_timeout, OPT_INT, 15*60) -OPTION(osd_heartbeat_addr, OPT_ADDR, entity_addr_t()) -OPTION(osd_heartbeat_interval, OPT_INT, 6) // (seconds) how often we ping peers +OPTION(osd_recover_clone_overlap_limit, OPT_INT) + +OPTION(osd_backfill_scan_min, OPT_INT) +OPTION(osd_backfill_scan_max, OPT_INT) +OPTION(osd_op_thread_timeout, OPT_INT) +OPTION(osd_op_thread_suicide_timeout, OPT_INT) +OPTION(osd_recovery_thread_timeout, OPT_INT) +OPTION(osd_recovery_thread_suicide_timeout, OPT_INT) +OPTION(osd_recovery_sleep, OPT_FLOAT) // seconds to sleep between recovery ops +OPTION(osd_recovery_sleep_hdd, OPT_FLOAT) +OPTION(osd_recovery_sleep_ssd, OPT_FLOAT) +OPTION(osd_snap_trim_sleep, OPT_DOUBLE) +OPTION(osd_scrub_invalid_stats, OPT_BOOL) +OPTION(osd_remove_thread_timeout, OPT_INT) +OPTION(osd_remove_thread_suicide_timeout, OPT_INT) +OPTION(osd_command_thread_timeout, OPT_INT) +OPTION(osd_command_thread_suicide_timeout, OPT_INT) +OPTION(osd_heartbeat_addr, OPT_ADDR) +OPTION(osd_heartbeat_interval, OPT_INT) // (seconds) how often we ping peers // (seconds) how long before we decide a peer has failed // This setting is read by the MONs and OSDs and has to be set to a equal value in both settings of the configuration -OPTION(osd_heartbeat_grace, OPT_INT, 20) -OPTION(osd_heartbeat_min_peers, OPT_INT, 10) // minimum number of peers -OPTION(osd_heartbeat_use_min_delay_socket, OPT_BOOL, false) // prio the heartbeat tcp socket and set dscp as CS6 on it if true -OPTION(osd_heartbeat_min_size, OPT_INT, 2000) // the minimum size of OSD heartbeat messages to send +OPTION(osd_heartbeat_grace, OPT_INT) +OPTION(osd_heartbeat_min_peers, OPT_INT) // minimum number of peers +OPTION(osd_heartbeat_use_min_delay_socket, OPT_BOOL) // prio the heartbeat tcp socket and set dscp as CS6 on it if true +OPTION(osd_heartbeat_min_size, OPT_INT) // the minimum size of OSD heartbeat messages to send // max number of parallel snap trims/pg -OPTION(osd_pg_max_concurrent_snap_trims, OPT_U64, 2) +OPTION(osd_pg_max_concurrent_snap_trims, OPT_U64) // max number of trimming pgs -OPTION(osd_max_trimming_pgs, OPT_U64, 2) +OPTION(osd_max_trimming_pgs, OPT_U64) // minimum number of peers that must be reachable to mark ourselves // back up after being wrongly marked down. -OPTION(osd_heartbeat_min_healthy_ratio, OPT_FLOAT, .33) - -OPTION(osd_mon_heartbeat_interval, OPT_INT, 30) // (seconds) how often to ping monitor if no peers -OPTION(osd_mon_report_interval_max, OPT_INT, 600) -OPTION(osd_mon_report_interval_min, OPT_INT, 5) // pg stats, failures, up_thru, boot. -OPTION(osd_mon_report_max_in_flight, OPT_INT, 2) // max updates in flight -OPTION(osd_beacon_report_interval, OPT_INT, 300) // (second) how often to send beacon message to monitor -OPTION(osd_pg_stat_report_interval_max, OPT_INT, 500) // report pg stats for any given pg at least this often -OPTION(osd_mon_ack_timeout, OPT_DOUBLE, 30.0) // time out a mon if it doesn't ack stats -OPTION(osd_stats_ack_timeout_factor, OPT_DOUBLE, 2.0) // multiples of mon_ack_timeout -OPTION(osd_stats_ack_timeout_decay, OPT_DOUBLE, .9) -OPTION(osd_default_data_pool_replay_window, OPT_INT, 45) -OPTION(osd_auto_mark_unfound_lost, OPT_BOOL, false) -OPTION(osd_recovery_delay_start, OPT_FLOAT, 0) -OPTION(osd_recovery_max_active, OPT_U64, 3) -OPTION(osd_recovery_max_single_start, OPT_U64, 1) -OPTION(osd_recovery_max_chunk, OPT_U64, 8<<20) // max size of push chunk -OPTION(osd_recovery_max_omap_entries_per_chunk, OPT_U64, 64000) // max number of omap entries per chunk; 0 to disable limit -OPTION(osd_copyfrom_max_chunk, OPT_U64, 8<<20) // max size of a COPYFROM chunk -OPTION(osd_push_per_object_cost, OPT_U64, 1000) // push cost per object -OPTION(osd_max_push_cost, OPT_U64, 8<<20) // max size of push message -OPTION(osd_max_push_objects, OPT_U64, 10) // max objects in single push op -OPTION(osd_recovery_forget_lost_objects, OPT_BOOL, false) // off for now -OPTION(osd_max_scrubs, OPT_INT, 1) -OPTION(osd_scrub_during_recovery, OPT_BOOL, false) // Allow new scrubs to start while recovery is active on the OSD -OPTION(osd_scrub_begin_hour, OPT_INT, 0) -OPTION(osd_scrub_end_hour, OPT_INT, 24) -OPTION(osd_scrub_load_threshold, OPT_FLOAT, 0.5) -OPTION(osd_scrub_min_interval, OPT_FLOAT, 60*60*24) // if load is low -OPTION(osd_scrub_max_interval, OPT_FLOAT, 7*60*60*24) // regardless of load -OPTION(osd_scrub_interval_randomize_ratio, OPT_FLOAT, 0.5) // randomize the scheduled scrub in the span of [min,min*(1+randomize_ratio)) -OPTION(osd_scrub_backoff_ratio, OPT_DOUBLE, .66) // the probability to back off the scheduled scrub -OPTION(osd_scrub_chunk_min, OPT_INT, 5) -OPTION(osd_scrub_chunk_max, OPT_INT, 25) -OPTION(osd_scrub_sleep, OPT_FLOAT, 0) // sleep between [deep]scrub ops -OPTION(osd_scrub_auto_repair, OPT_BOOL, false) // whether auto-repair inconsistencies upon deep-scrubbing -OPTION(osd_scrub_auto_repair_num_errors, OPT_U32, 5) // only auto-repair when number of errors is below this threshold -OPTION(osd_deep_scrub_interval, OPT_FLOAT, 60*60*24*7) // once a week -OPTION(osd_deep_scrub_randomize_ratio, OPT_FLOAT, 0.15) // scrubs will randomly become deep scrubs at this rate (0.15 -> 15% of scrubs are deep) -OPTION(osd_deep_scrub_stride, OPT_INT, 524288) -OPTION(osd_deep_scrub_update_digest_min_age, OPT_INT, 2*60*60) // objects must be this old (seconds) before we update the whole-object digest on scrub -OPTION(osd_class_dir, OPT_STR, CEPH_LIBDIR "/rados-classes") // where rados plugins are stored -OPTION(osd_open_classes_on_start, OPT_BOOL, true) -OPTION(osd_class_load_list, OPT_STR, "cephfs hello journal lock log numops " - "rbd refcount replica_log rgw statelog timeindex user version") // list of object classes allowed to be loaded (allow all: *) -OPTION(osd_class_default_list, OPT_STR, "cephfs hello journal lock log numops " - "rbd refcount replica_log rgw statelog timeindex user version") // list of object classes with default execute perm (allow all: *) -OPTION(osd_check_for_log_corruption, OPT_BOOL, false) -OPTION(osd_use_stale_snap, OPT_BOOL, false) -OPTION(osd_rollback_to_cluster_snap, OPT_STR, "") -OPTION(osd_default_notify_timeout, OPT_U32, 30) // default notify timeout in seconds -OPTION(osd_kill_backfill_at, OPT_INT, 0) +OPTION(osd_heartbeat_min_healthy_ratio, OPT_FLOAT) + +OPTION(osd_mon_heartbeat_interval, OPT_INT) // (seconds) how often to ping monitor if no peers +OPTION(osd_mon_report_interval_max, OPT_INT) +OPTION(osd_mon_report_interval_min, OPT_INT) // pg stats, failures, up_thru, boot. +OPTION(osd_mon_report_max_in_flight, OPT_INT) // max updates in flight +OPTION(osd_beacon_report_interval, OPT_INT) // (second) how often to send beacon message to monitor +OPTION(osd_pg_stat_report_interval_max, OPT_INT) // report pg stats for any given pg at least this often +OPTION(osd_mon_ack_timeout, OPT_DOUBLE) // time out a mon if it doesn't ack stats +OPTION(osd_stats_ack_timeout_factor, OPT_DOUBLE) // multiples of mon_ack_timeout +OPTION(osd_stats_ack_timeout_decay, OPT_DOUBLE) +OPTION(osd_default_data_pool_replay_window, OPT_INT) +OPTION(osd_auto_mark_unfound_lost, OPT_BOOL) +OPTION(osd_recovery_delay_start, OPT_FLOAT) +OPTION(osd_recovery_max_active, OPT_U64) +OPTION(osd_recovery_max_single_start, OPT_U64) +OPTION(osd_recovery_max_chunk, OPT_U64) // max size of push chunk +OPTION(osd_recovery_max_omap_entries_per_chunk, OPT_U64) // max number of omap entries per chunk; 0 to disable limit +OPTION(osd_copyfrom_max_chunk, OPT_U64) // max size of a COPYFROM chunk +OPTION(osd_push_per_object_cost, OPT_U64) // push cost per object +OPTION(osd_max_push_cost, OPT_U64) // max size of push message +OPTION(osd_max_push_objects, OPT_U64) // max objects in single push op +OPTION(osd_recovery_forget_lost_objects, OPT_BOOL) // off for now +OPTION(osd_max_scrubs, OPT_INT) +OPTION(osd_scrub_during_recovery, OPT_BOOL) // Allow new scrubs to start while recovery is active on the OSD +OPTION(osd_scrub_begin_hour, OPT_INT) +OPTION(osd_scrub_end_hour, OPT_INT) +OPTION(osd_scrub_load_threshold, OPT_FLOAT) +OPTION(osd_scrub_min_interval, OPT_FLOAT) // if load is low +OPTION(osd_scrub_max_interval, OPT_FLOAT) // regardless of load +OPTION(osd_scrub_interval_randomize_ratio, OPT_FLOAT) // randomize the scheduled scrub in the span of [min,min*(1+randomize_ratio)) +OPTION(osd_scrub_backoff_ratio, OPT_DOUBLE) // the probability to back off the scheduled scrub +OPTION(osd_scrub_chunk_min, OPT_INT) +OPTION(osd_scrub_chunk_max, OPT_INT) +OPTION(osd_scrub_sleep, OPT_FLOAT) // sleep between [deep]scrub ops +OPTION(osd_scrub_auto_repair, OPT_BOOL) // whether auto-repair inconsistencies upon deep-scrubbing +OPTION(osd_scrub_auto_repair_num_errors, OPT_U32) // only auto-repair when number of errors is below this threshold +OPTION(osd_deep_scrub_interval, OPT_FLOAT) // once a week +OPTION(osd_deep_scrub_randomize_ratio, OPT_FLOAT) // scrubs will randomly become deep scrubs at this rate (0.15 -> 15% of scrubs are deep) +OPTION(osd_deep_scrub_stride, OPT_INT) +OPTION(osd_deep_scrub_update_digest_min_age, OPT_INT) // objects must be this old (seconds) before we update the whole-object digest on scrub +OPTION(osd_class_dir, OPT_STR) // where rados plugins are stored +OPTION(osd_open_classes_on_start, OPT_BOOL) +OPTION(osd_class_load_list, OPT_STR) // list of object classes allowed to be loaded (allow all: *) +OPTION(osd_class_default_list, OPT_STR) // list of object classes with default execute perm (allow all: *) +OPTION(osd_check_for_log_corruption, OPT_BOOL) +OPTION(osd_use_stale_snap, OPT_BOOL) +OPTION(osd_rollback_to_cluster_snap, OPT_STR) +OPTION(osd_default_notify_timeout, OPT_U32) // default notify timeout in seconds +OPTION(osd_kill_backfill_at, OPT_INT) // Bounds how infrequently a new map epoch will be persisted for a pg -OPTION(osd_pg_epoch_persisted_max_stale, OPT_U32, 40) // make this < map_cache_size! - -OPTION(osd_min_pg_log_entries, OPT_U32, 3000) // number of entries to keep in the pg log when trimming it -OPTION(osd_max_pg_log_entries, OPT_U32, 10000) // max entries, say when degraded, before we trim -OPTION(osd_force_recovery_pg_log_entries_factor, OPT_FLOAT, 1.3) // max entries factor before force recovery -OPTION(osd_pg_log_trim_min, OPT_U32, 100) -OPTION(osd_op_complaint_time, OPT_FLOAT, 30) // how many seconds old makes an op complaint-worthy -OPTION(osd_command_max_records, OPT_INT, 256) -OPTION(osd_max_pg_blocked_by, OPT_U32, 16) // max peer osds to report that are blocking our progress -OPTION(osd_op_log_threshold, OPT_INT, 5) // how many op log messages to show in one go -OPTION(osd_verify_sparse_read_holes, OPT_BOOL, false) // read fiemap-reported holes and verify they are zeros -OPTION(osd_backoff_on_unfound, OPT_BOOL, true) // object unfound -OPTION(osd_backoff_on_degraded, OPT_BOOL, false) // [mainly for debug?] object unreadable/writeable -OPTION(osd_backoff_on_down, OPT_BOOL, true) // pg in down/incomplete state -OPTION(osd_backoff_on_peering, OPT_BOOL, false) // [debug] pg peering -OPTION(osd_debug_crash_on_ignored_backoff, OPT_BOOL, false) // crash osd if client ignores a backoff; useful for debugging -OPTION(osd_debug_inject_dispatch_delay_probability, OPT_DOUBLE, 0) -OPTION(osd_debug_inject_dispatch_delay_duration, OPT_DOUBLE, .1) -OPTION(osd_debug_drop_ping_probability, OPT_DOUBLE, 0) -OPTION(osd_debug_drop_ping_duration, OPT_INT, 0) -OPTION(osd_debug_op_order, OPT_BOOL, false) -OPTION(osd_debug_verify_missing_on_start, OPT_BOOL, false) -OPTION(osd_debug_scrub_chance_rewrite_digest, OPT_U64, 0) -OPTION(osd_debug_verify_snaps_on_info, OPT_BOOL, false) -OPTION(osd_debug_verify_stray_on_activate, OPT_BOOL, false) -OPTION(osd_debug_skip_full_check_in_backfill_reservation, OPT_BOOL, false) -OPTION(osd_debug_reject_backfill_probability, OPT_DOUBLE, 0) -OPTION(osd_debug_inject_copyfrom_error, OPT_BOOL, false) // inject failure during copyfrom completion -OPTION(osd_debug_misdirected_ops, OPT_BOOL, false) -OPTION(osd_debug_skip_full_check_in_recovery, OPT_BOOL, false) -OPTION(osd_debug_random_push_read_error, OPT_DOUBLE, 0) -OPTION(osd_debug_verify_cached_snaps, OPT_BOOL, false) -OPTION(osd_enable_op_tracker, OPT_BOOL, true) // enable/disable OSD op tracking -OPTION(osd_num_op_tracker_shard, OPT_U32, 32) // The number of shards for holding the ops -OPTION(osd_op_history_size, OPT_U32, 20) // Max number of completed ops to track -OPTION(osd_op_history_duration, OPT_U32, 600) // Oldest completed op to track -OPTION(osd_op_history_slow_op_size, OPT_U32, 20) // Max number of slow ops to track -OPTION(osd_op_history_slow_op_threshold, OPT_DOUBLE, 10.0) // track the op if over this threshold -OPTION(osd_target_transaction_size, OPT_INT, 30) // to adjust various transactions that batch smaller items -OPTION(osd_failsafe_full_ratio, OPT_FLOAT, .97) // what % full makes an OSD "full" (failsafe) -OPTION(osd_fast_fail_on_connection_refused, OPT_BOOL, true) // immediately mark OSDs as down once they refuse to accept connections - -OPTION(osd_pg_object_context_cache_count, OPT_INT, 64) -OPTION(osd_tracing, OPT_BOOL, false) // true if LTTng-UST tracepoints should be enabled -OPTION(osd_function_tracing, OPT_BOOL, false) // true if function instrumentation should use LTTng - -OPTION(osd_fast_info, OPT_BOOL, true) // use fast info attr, if we can +OPTION(osd_pg_epoch_persisted_max_stale, OPT_U32) // make this < map_cache_size! + +OPTION(osd_min_pg_log_entries, OPT_U32) // number of entries to keep in the pg log when trimming it +OPTION(osd_max_pg_log_entries, OPT_U32) // max entries, say when degraded, before we trim +OPTION(osd_force_recovery_pg_log_entries_factor, OPT_FLOAT) // max entries factor before force recovery +OPTION(osd_pg_log_trim_min, OPT_U32) +OPTION(osd_op_complaint_time, OPT_FLOAT) // how many seconds old makes an op complaint-worthy +OPTION(osd_command_max_records, OPT_INT) +OPTION(osd_max_pg_blocked_by, OPT_U32) // max peer osds to report that are blocking our progress +OPTION(osd_op_log_threshold, OPT_INT) // how many op log messages to show in one go +OPTION(osd_verify_sparse_read_holes, OPT_BOOL) // read fiemap-reported holes and verify they are zeros +OPTION(osd_backoff_on_unfound, OPT_BOOL) // object unfound +OPTION(osd_backoff_on_degraded, OPT_BOOL) // [mainly for debug?] object unreadable/writeable +OPTION(osd_backoff_on_down, OPT_BOOL) // pg in down/incomplete state +OPTION(osd_backoff_on_peering, OPT_BOOL) // [debug] pg peering +OPTION(osd_debug_crash_on_ignored_backoff, OPT_BOOL) // crash osd if client ignores a backoff; useful for debugging +OPTION(osd_debug_inject_dispatch_delay_probability, OPT_DOUBLE) +OPTION(osd_debug_inject_dispatch_delay_duration, OPT_DOUBLE) +OPTION(osd_debug_drop_ping_probability, OPT_DOUBLE) +OPTION(osd_debug_drop_ping_duration, OPT_INT) +OPTION(osd_debug_op_order, OPT_BOOL) +OPTION(osd_debug_verify_missing_on_start, OPT_BOOL) +OPTION(osd_debug_scrub_chance_rewrite_digest, OPT_U64) +OPTION(osd_debug_verify_snaps_on_info, OPT_BOOL) +OPTION(osd_debug_verify_stray_on_activate, OPT_BOOL) +OPTION(osd_debug_skip_full_check_in_backfill_reservation, OPT_BOOL) +OPTION(osd_debug_reject_backfill_probability, OPT_DOUBLE) +OPTION(osd_debug_inject_copyfrom_error, OPT_BOOL) // inject failure during copyfrom completion +OPTION(osd_debug_misdirected_ops, OPT_BOOL) +OPTION(osd_debug_skip_full_check_in_recovery, OPT_BOOL) +OPTION(osd_debug_random_push_read_error, OPT_DOUBLE) +OPTION(osd_debug_verify_cached_snaps, OPT_BOOL) +OPTION(osd_enable_op_tracker, OPT_BOOL) // enable/disable OSD op tracking +OPTION(osd_num_op_tracker_shard, OPT_U32) // The number of shards for holding the ops +OPTION(osd_op_history_size, OPT_U32) // Max number of completed ops to track +OPTION(osd_op_history_duration, OPT_U32) // Oldest completed op to track +OPTION(osd_op_history_slow_op_size, OPT_U32) // Max number of slow ops to track +OPTION(osd_op_history_slow_op_threshold, OPT_DOUBLE) // track the op if over this threshold +OPTION(osd_target_transaction_size, OPT_INT) // to adjust various transactions that batch smaller items +OPTION(osd_failsafe_full_ratio, OPT_FLOAT) // what % full makes an OSD "full" (failsafe) +OPTION(osd_fast_fail_on_connection_refused, OPT_BOOL) // immediately mark OSDs as down once they refuse to accept connections + +OPTION(osd_pg_object_context_cache_count, OPT_INT) +OPTION(osd_tracing, OPT_BOOL) // true if LTTng-UST tracepoints should be enabled +OPTION(osd_function_tracing, OPT_BOOL) // true if function instrumentation should use LTTng + +OPTION(osd_fast_info, OPT_BOOL) // use fast info attr, if we can // determines whether PGLog::check() compares written out log to stored log -OPTION(osd_debug_pg_log_writeout, OPT_BOOL, false) -OPTION(osd_loop_before_reset_tphandle, OPT_U32, 64) // Max number of loop before we reset thread-pool's handle +OPTION(osd_debug_pg_log_writeout, OPT_BOOL) +OPTION(osd_loop_before_reset_tphandle, OPT_U32) // Max number of loop before we reset thread-pool's handle // default timeout while caling WaitInterval on an empty queue -OPTION(threadpool_default_timeout, OPT_INT, 60) +OPTION(threadpool_default_timeout, OPT_INT) // default wait time for an empty queue before pinging the hb timeout -OPTION(threadpool_empty_queue_max_wait, OPT_INT, 2) - -OPTION(leveldb_log_to_ceph_log, OPT_BOOL, true) -OPTION(leveldb_write_buffer_size, OPT_U64, 8 *1024*1024) // leveldb write buffer size -OPTION(leveldb_cache_size, OPT_U64, 128 *1024*1024) // leveldb cache size -OPTION(leveldb_block_size, OPT_U64, 0) // leveldb block size -OPTION(leveldb_bloom_size, OPT_INT, 0) // leveldb bloom bits per entry -OPTION(leveldb_max_open_files, OPT_INT, 0) // leveldb max open files -OPTION(leveldb_compression, OPT_BOOL, true) // leveldb uses compression -OPTION(leveldb_paranoid, OPT_BOOL, false) // leveldb paranoid flag -OPTION(leveldb_log, OPT_STR, "/dev/null") // enable leveldb log file -OPTION(leveldb_compact_on_mount, OPT_BOOL, false) - -OPTION(kinetic_host, OPT_STR, "") // hostname or ip address of a kinetic drive to use -OPTION(kinetic_port, OPT_INT, 8123) // port number of the kinetic drive -OPTION(kinetic_user_id, OPT_INT, 1) // kinetic user to authenticate as -OPTION(kinetic_hmac_key, OPT_STR, "asdfasdf") // kinetic key to authenticate with -OPTION(kinetic_use_ssl, OPT_BOOL, false) // whether to secure kinetic traffic with TLS - - -OPTION(rocksdb_separate_wal_dir, OPT_BOOL, false) // use $path.wal for wal -SAFE_OPTION(rocksdb_db_paths, OPT_STR, "") // path,size( path,size)* -OPTION(rocksdb_log_to_ceph_log, OPT_BOOL, true) // log to ceph log -OPTION(rocksdb_cache_size, OPT_U64, 128*1024*1024) // rocksdb cache size (unless set by bluestore/etc) -OPTION(rocksdb_cache_row_ratio, OPT_FLOAT, 0) // ratio of cache for row (vs block) -OPTION(rocksdb_cache_shard_bits, OPT_INT, 4) // rocksdb block cache shard bits, 4 bit -> 16 shards -OPTION(rocksdb_cache_type, OPT_STR, "lru") // 'lru' or 'clock' -OPTION(rocksdb_block_size, OPT_INT, 4*1024) // default rocksdb block size -OPTION(rocksdb_perf, OPT_BOOL, false) // Enabling this will have 5-10% impact on performance for the stats collection -OPTION(rocksdb_collect_compaction_stats, OPT_BOOL, false) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. -OPTION(rocksdb_collect_extended_stats, OPT_BOOL, false) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. -OPTION(rocksdb_collect_memory_stats, OPT_BOOL, false) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. -OPTION(rocksdb_enable_rmrange, OPT_BOOL, false) // see https://github.com/facebook/rocksdb/blob/master/include/rocksdb/db.h#L253 +OPTION(threadpool_empty_queue_max_wait, OPT_INT) + +OPTION(leveldb_log_to_ceph_log, OPT_BOOL) +OPTION(leveldb_write_buffer_size, OPT_U64) // leveldb write buffer size +OPTION(leveldb_cache_size, OPT_U64) // leveldb cache size +OPTION(leveldb_block_size, OPT_U64) // leveldb block size +OPTION(leveldb_bloom_size, OPT_INT) // leveldb bloom bits per entry +OPTION(leveldb_max_open_files, OPT_INT) // leveldb max open files +OPTION(leveldb_compression, OPT_BOOL) // leveldb uses compression +OPTION(leveldb_paranoid, OPT_BOOL) // leveldb paranoid flag +OPTION(leveldb_log, OPT_STR) // enable leveldb log file +OPTION(leveldb_compact_on_mount, OPT_BOOL) + +OPTION(kinetic_host, OPT_STR) // hostname or ip address of a kinetic drive to use +OPTION(kinetic_port, OPT_INT) // port number of the kinetic drive +OPTION(kinetic_user_id, OPT_INT) // kinetic user to authenticate as +OPTION(kinetic_hmac_key, OPT_STR) // kinetic key to authenticate with +OPTION(kinetic_use_ssl, OPT_BOOL) // whether to secure kinetic traffic with TLS + + +OPTION(rocksdb_separate_wal_dir, OPT_BOOL) // use $path.wal for wal +SAFE_OPTION(rocksdb_db_paths, OPT_STR) // path,size( path,size)* +OPTION(rocksdb_log_to_ceph_log, OPT_BOOL) // log to ceph log +OPTION(rocksdb_cache_size, OPT_U64) // rocksdb cache size (unless set by bluestore/etc) +OPTION(rocksdb_cache_row_ratio, OPT_FLOAT) // ratio of cache for row (vs block) +OPTION(rocksdb_cache_shard_bits, OPT_INT) // rocksdb block cache shard bits, 4 bit -> 16 shards +OPTION(rocksdb_cache_type, OPT_STR) // 'lru' or 'clock' +OPTION(rocksdb_block_size, OPT_INT) // default rocksdb block size +OPTION(rocksdb_perf, OPT_BOOL) // Enabling this will have 5-10% impact on performance for the stats collection +OPTION(rocksdb_collect_compaction_stats, OPT_BOOL) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. +OPTION(rocksdb_collect_extended_stats, OPT_BOOL) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. +OPTION(rocksdb_collect_memory_stats, OPT_BOOL) //For rocksdb, this behavior will be an overhead of 5%~10%, collected only rocksdb_perf is enabled. +OPTION(rocksdb_enable_rmrange, OPT_BOOL) // see https://github.com/facebook/rocksdb/blob/master/include/rocksdb/db.h#L253 // rocksdb options that will be used for omap(if omap_backend is rocksdb) -OPTION(filestore_rocksdb_options, OPT_STR, "") +OPTION(filestore_rocksdb_options, OPT_STR) // rocksdb options that will be used in monstore -OPTION(mon_rocksdb_options, OPT_STR, "write_buffer_size=33554432,compression=kNoCompression") +OPTION(mon_rocksdb_options, OPT_STR) /** * osd_*_priority adjust the relative priority of client io, recovery io, @@ -939,100 +911,100 @@ OPTION(mon_rocksdb_options, OPT_STR, "write_buffer_size=33554432,compression=kNo * recovery. Each option may be set between * 1..63. */ -OPTION(osd_client_op_priority, OPT_U32, 63) -OPTION(osd_recovery_op_priority, OPT_U32, 3) +OPTION(osd_client_op_priority, OPT_U32) +OPTION(osd_recovery_op_priority, OPT_U32) -OPTION(osd_snap_trim_priority, OPT_U32, 5) -OPTION(osd_snap_trim_cost, OPT_U32, 1<<20) // set default cost equal to 1MB io +OPTION(osd_snap_trim_priority, OPT_U32) +OPTION(osd_snap_trim_cost, OPT_U32) // set default cost equal to 1MB io -OPTION(osd_scrub_priority, OPT_U32, 5) +OPTION(osd_scrub_priority, OPT_U32) // set default cost equal to 50MB io -OPTION(osd_scrub_cost, OPT_U32, 50<<20) +OPTION(osd_scrub_cost, OPT_U32) // set requested scrub priority higher than scrub priority to make the // requested scrubs jump the queue of scheduled scrubs -OPTION(osd_requested_scrub_priority, OPT_U32, 120) +OPTION(osd_requested_scrub_priority, OPT_U32) -OPTION(osd_recovery_priority, OPT_U32, 5) +OPTION(osd_recovery_priority, OPT_U32) // set default cost equal to 20MB io -OPTION(osd_recovery_cost, OPT_U32, 20<<20) +OPTION(osd_recovery_cost, OPT_U32) /** * osd_recovery_op_warn_multiple scales the normal warning threshhold, * osd_op_complaint_time, so that slow recovery ops won't cause noise */ -OPTION(osd_recovery_op_warn_multiple, OPT_U32, 16) +OPTION(osd_recovery_op_warn_multiple, OPT_U32) // Max time to wait between notifying mon of shutdown and shutting down -OPTION(osd_mon_shutdown_timeout, OPT_DOUBLE, 5) -OPTION(osd_shutdown_pgref_assert, OPT_BOOL, false) // crash if the OSD has stray PG refs on shutdown - -OPTION(osd_max_object_size, OPT_U64, 128*1024L*1024L) // OSD's maximum object size -OPTION(osd_max_object_name_len, OPT_U32, 2048) // max rados object name len -OPTION(osd_max_object_namespace_len, OPT_U32, 256) // max rados object namespace len -OPTION(osd_max_attr_name_len, OPT_U32, 100) // max rados attr name len; cannot go higher than 100 chars for file system backends -OPTION(osd_max_attr_size, OPT_U64, 0) - -OPTION(osd_max_omap_entries_per_request, OPT_U64, 131072) -OPTION(osd_max_omap_bytes_per_request, OPT_U64, 1<<30) - -OPTION(osd_objectstore, OPT_STR, "filestore") // ObjectStore backend type -OPTION(osd_objectstore_tracing, OPT_BOOL, false) // true if LTTng-UST tracepoints should be enabled -OPTION(osd_objectstore_fuse, OPT_BOOL, false) - -OPTION(osd_bench_small_size_max_iops, OPT_U32, 100) // 100 IOPS -OPTION(osd_bench_large_size_max_throughput, OPT_U64, 100 << 20) // 100 MB/s -OPTION(osd_bench_max_block_size, OPT_U64, 64 << 20) // cap the block size at 64MB -OPTION(osd_bench_duration, OPT_U32, 30) // duration of 'osd bench', capped at 30s to avoid triggering timeouts - -OPTION(osd_blkin_trace_all, OPT_BOOL, false) // create a blkin trace for all osd requests -OPTION(osdc_blkin_trace_all, OPT_BOOL, false) // create a blkin trace for all objecter requests - -OPTION(osd_discard_disconnected_ops, OPT_BOOL, true) - -OPTION(memstore_device_bytes, OPT_U64, 1024*1024*1024) -OPTION(memstore_page_set, OPT_BOOL, true) -OPTION(memstore_page_size, OPT_U64, 64 << 10) - -OPTION(bdev_debug_inflight_ios, OPT_BOOL, false) -OPTION(bdev_inject_crash, OPT_INT, 0) // if N>0, then ~ 1/N IOs will complete before we crash on flush. -OPTION(bdev_inject_crash_flush_delay, OPT_INT, 2) // wait N more seconds on flush -OPTION(bdev_aio, OPT_BOOL, true) -OPTION(bdev_aio_poll_ms, OPT_INT, 250) // milliseconds -OPTION(bdev_aio_max_queue_depth, OPT_INT, 1024) -OPTION(bdev_aio_reap_max, OPT_INT, 16) -OPTION(bdev_block_size, OPT_INT, 4096) -OPTION(bdev_debug_aio, OPT_BOOL, false) -OPTION(bdev_debug_aio_suicide_timeout, OPT_FLOAT, 60.0) +OPTION(osd_mon_shutdown_timeout, OPT_DOUBLE) +OPTION(osd_shutdown_pgref_assert, OPT_BOOL) // crash if the OSD has stray PG refs on shutdown + +OPTION(osd_max_object_size, OPT_U64) // OSD's maximum object size +OPTION(osd_max_object_name_len, OPT_U32) // max rados object name len +OPTION(osd_max_object_namespace_len, OPT_U32) // max rados object namespace len +OPTION(osd_max_attr_name_len, OPT_U32) // max rados attr name len; cannot go higher than 100 chars for file system backends +OPTION(osd_max_attr_size, OPT_U64) + +OPTION(osd_max_omap_entries_per_request, OPT_U64) +OPTION(osd_max_omap_bytes_per_request, OPT_U64) + +OPTION(osd_objectstore, OPT_STR) // ObjectStore backend type +OPTION(osd_objectstore_tracing, OPT_BOOL) // true if LTTng-UST tracepoints should be enabled +OPTION(osd_objectstore_fuse, OPT_BOOL) + +OPTION(osd_bench_small_size_max_iops, OPT_U32) // 100 IOPS +OPTION(osd_bench_large_size_max_throughput, OPT_U64) // 100 MB/s +OPTION(osd_bench_max_block_size, OPT_U64) // cap the block size at 64MB +OPTION(osd_bench_duration, OPT_U32) // duration of 'osd bench', capped at 30s to avoid triggering timeouts + +OPTION(osd_blkin_trace_all, OPT_BOOL) // create a blkin trace for all osd requests +OPTION(osdc_blkin_trace_all, OPT_BOOL) // create a blkin trace for all objecter requests + +OPTION(osd_discard_disconnected_ops, OPT_BOOL) + +OPTION(memstore_device_bytes, OPT_U64) +OPTION(memstore_page_set, OPT_BOOL) +OPTION(memstore_page_size, OPT_U64) + +OPTION(bdev_debug_inflight_ios, OPT_BOOL) +OPTION(bdev_inject_crash, OPT_INT) // if N>0, then ~ 1/N IOs will complete before we crash on flush. +OPTION(bdev_inject_crash_flush_delay, OPT_INT) // wait N more seconds on flush +OPTION(bdev_aio, OPT_BOOL) +OPTION(bdev_aio_poll_ms, OPT_INT) // milliseconds +OPTION(bdev_aio_max_queue_depth, OPT_INT) +OPTION(bdev_aio_reap_max, OPT_INT) +OPTION(bdev_block_size, OPT_INT) +OPTION(bdev_debug_aio, OPT_BOOL) +OPTION(bdev_debug_aio_suicide_timeout, OPT_FLOAT) // if yes, osd will unbind all NVMe devices from kernel driver and bind them // to the uio_pci_generic driver. The purpose is to prevent the case where // NVMe driver is loaded while osd is running. -OPTION(bdev_nvme_unbind_from_kernel, OPT_BOOL, false) -OPTION(bdev_nvme_retry_count, OPT_INT, -1) // -1 means by default which is 4 - -OPTION(objectstore_blackhole, OPT_BOOL, false) - -OPTION(bluefs_alloc_size, OPT_U64, 1048576) -OPTION(bluefs_max_prefetch, OPT_U64, 1048576) -OPTION(bluefs_min_log_runway, OPT_U64, 1048576) // alloc when we get this low -OPTION(bluefs_max_log_runway, OPT_U64, 4194304) // alloc this much at a time -OPTION(bluefs_log_compact_min_ratio, OPT_FLOAT, 5.0) // before we consider -OPTION(bluefs_log_compact_min_size, OPT_U64, 16*1048576) // before we consider -OPTION(bluefs_min_flush_size, OPT_U64, 524288) // ignore flush until its this big -OPTION(bluefs_compact_log_sync, OPT_BOOL, false) // sync or async log compaction? -OPTION(bluefs_buffered_io, OPT_BOOL, false) -OPTION(bluefs_sync_write, OPT_BOOL, false) -OPTION(bluefs_allocator, OPT_STR, "bitmap") // stupid | bitmap -OPTION(bluefs_preextend_wal_files, OPT_BOOL, false) // this *requires* that rocksdb has recycling enabled - -OPTION(bluestore_bluefs, OPT_BOOL, true) -OPTION(bluestore_bluefs_env_mirror, OPT_BOOL, false) // mirror to normal Env for debug -OPTION(bluestore_bluefs_min, OPT_U64, 1*1024*1024*1024) // 1gb -OPTION(bluestore_bluefs_min_ratio, OPT_FLOAT, .02) // min fs free / total free -OPTION(bluestore_bluefs_max_ratio, OPT_FLOAT, .90) // max fs free / total free -OPTION(bluestore_bluefs_gift_ratio, OPT_FLOAT, .02) // how much to add at a time -OPTION(bluestore_bluefs_reclaim_ratio, OPT_FLOAT, .20) // how much to reclaim at a time -OPTION(bluestore_bluefs_balance_interval, OPT_FLOAT, 1) // how often (sec) to balance free space between bluefs and bluestore +OPTION(bdev_nvme_unbind_from_kernel, OPT_BOOL) +OPTION(bdev_nvme_retry_count, OPT_INT) // -1 means by default which is 4 + +OPTION(objectstore_blackhole, OPT_BOOL) + +OPTION(bluefs_alloc_size, OPT_U64) +OPTION(bluefs_max_prefetch, OPT_U64) +OPTION(bluefs_min_log_runway, OPT_U64) // alloc when we get this low +OPTION(bluefs_max_log_runway, OPT_U64) // alloc this much at a time +OPTION(bluefs_log_compact_min_ratio, OPT_FLOAT) // before we consider +OPTION(bluefs_log_compact_min_size, OPT_U64) // before we consider +OPTION(bluefs_min_flush_size, OPT_U64) // ignore flush until its this big +OPTION(bluefs_compact_log_sync, OPT_BOOL) // sync or async log compaction? +OPTION(bluefs_buffered_io, OPT_BOOL) +OPTION(bluefs_sync_write, OPT_BOOL) +OPTION(bluefs_allocator, OPT_STR) // stupid | bitmap +OPTION(bluefs_preextend_wal_files, OPT_BOOL) // this *requires* that rocksdb has recycling enabled + +OPTION(bluestore_bluefs, OPT_BOOL) +OPTION(bluestore_bluefs_env_mirror, OPT_BOOL) // mirror to normal Env for debug +OPTION(bluestore_bluefs_min, OPT_U64) // 1gb +OPTION(bluestore_bluefs_min_ratio, OPT_FLOAT) // min fs free / total free +OPTION(bluestore_bluefs_max_ratio, OPT_FLOAT) // max fs free / total free +OPTION(bluestore_bluefs_gift_ratio, OPT_FLOAT) // how much to add at a time +OPTION(bluestore_bluefs_reclaim_ratio, OPT_FLOAT) // how much to reclaim at a time +OPTION(bluestore_bluefs_balance_interval, OPT_FLOAT) // how often (sec) to balance free space between bluefs and bluestore // If you want to use spdk driver, you need to specify NVMe serial number here // with "spdk:" prefix. // Users can use 'lspci -vvv -d 8086:0953 | grep "Device Serial Number"' to @@ -1042,209 +1014,209 @@ OPTION(bluestore_bluefs_balance_interval, OPT_FLOAT, 1) // how often (sec) to ba // If you want to run multiple SPDK instances per node, you must specify the // amount of dpdk memory size in MB each instance will use, to make sure each // instance uses its own dpdk memory -OPTION(bluestore_spdk_mem, OPT_U32, 512) +OPTION(bluestore_spdk_mem, OPT_U32) // A hexadecimal bit mask of the cores to run on. Note the core numbering can change between platforms and should be determined beforehand. -OPTION(bluestore_spdk_coremask, OPT_STR, "0x3") +OPTION(bluestore_spdk_coremask, OPT_STR) // Specify the maximal I/Os to be batched completed while checking queue pair completions. // Default value 0 means that let SPDK nvme library determine the value. -OPTION(bluestore_spdk_max_io_completion, OPT_U32, 0) -OPTION(bluestore_block_path, OPT_STR, "") -OPTION(bluestore_block_size, OPT_U64, 10 * 1024*1024*1024) // 10gb for testing -OPTION(bluestore_block_create, OPT_BOOL, true) -OPTION(bluestore_block_db_path, OPT_STR, "") -OPTION(bluestore_block_db_size, OPT_U64, 0) // rocksdb ssts (hot/warm) -OPTION(bluestore_block_db_create, OPT_BOOL, false) -OPTION(bluestore_block_wal_path, OPT_STR, "") -OPTION(bluestore_block_wal_size, OPT_U64, 96 * 1024*1024) // rocksdb wal -OPTION(bluestore_block_wal_create, OPT_BOOL, false) -OPTION(bluestore_block_preallocate_file, OPT_BOOL, false) //whether preallocate space if block/db_path/wal_path is file rather that block device. -OPTION(bluestore_csum_type, OPT_STR, "crc32c") // none|xxhash32|xxhash64|crc32c|crc32c_16|crc32c_8 -OPTION(bluestore_csum_min_block, OPT_U32, 4096) -OPTION(bluestore_csum_max_block, OPT_U32, 64*1024) -OPTION(bluestore_min_alloc_size, OPT_U32, 0) -OPTION(bluestore_min_alloc_size_hdd, OPT_U32, 64*1024) -OPTION(bluestore_min_alloc_size_ssd, OPT_U32, 16*1024) -OPTION(bluestore_max_alloc_size, OPT_U32, 0) -OPTION(bluestore_prefer_deferred_size, OPT_U32, 0) -OPTION(bluestore_prefer_deferred_size_hdd, OPT_U32, 32768) -OPTION(bluestore_prefer_deferred_size_ssd, OPT_U32, 0) -OPTION(bluestore_compression_mode, OPT_STR, "none") // force|aggressive|passive|none -OPTION(bluestore_compression_algorithm, OPT_STR, "snappy") -OPTION(bluestore_compression_min_blob_size, OPT_U32, 0) -OPTION(bluestore_compression_min_blob_size_hdd, OPT_U32, 128*1024) -OPTION(bluestore_compression_min_blob_size_ssd, OPT_U32, 8*1024) -OPTION(bluestore_compression_max_blob_size, OPT_U32, 0) -OPTION(bluestore_compression_max_blob_size_hdd, OPT_U32, 512*1024) -OPTION(bluestore_compression_max_blob_size_ssd, OPT_U32, 64*1024) +OPTION(bluestore_spdk_max_io_completion, OPT_U32) +OPTION(bluestore_block_path, OPT_STR) +OPTION(bluestore_block_size, OPT_U64) // 10gb for testing +OPTION(bluestore_block_create, OPT_BOOL) +OPTION(bluestore_block_db_path, OPT_STR) +OPTION(bluestore_block_db_size, OPT_U64) // rocksdb ssts (hot/warm) +OPTION(bluestore_block_db_create, OPT_BOOL) +OPTION(bluestore_block_wal_path, OPT_STR) +OPTION(bluestore_block_wal_size, OPT_U64) // rocksdb wal +OPTION(bluestore_block_wal_create, OPT_BOOL) +OPTION(bluestore_block_preallocate_file, OPT_BOOL) //whether preallocate space if block/db_path/wal_path is file rather that block device. +OPTION(bluestore_csum_type, OPT_STR) // none|xxhash32|xxhash64|crc32c|crc32c_16|crc32c_8 +OPTION(bluestore_csum_min_block, OPT_U32) +OPTION(bluestore_csum_max_block, OPT_U32) +OPTION(bluestore_min_alloc_size, OPT_U32) +OPTION(bluestore_min_alloc_size_hdd, OPT_U32) +OPTION(bluestore_min_alloc_size_ssd, OPT_U32) +OPTION(bluestore_max_alloc_size, OPT_U32) +OPTION(bluestore_prefer_deferred_size, OPT_U32) +OPTION(bluestore_prefer_deferred_size_hdd, OPT_U32) +OPTION(bluestore_prefer_deferred_size_ssd, OPT_U32) +OPTION(bluestore_compression_mode, OPT_STR) // force|aggressive|passive|none +OPTION(bluestore_compression_algorithm, OPT_STR) +OPTION(bluestore_compression_min_blob_size, OPT_U32) +OPTION(bluestore_compression_min_blob_size_hdd, OPT_U32) +OPTION(bluestore_compression_min_blob_size_ssd, OPT_U32) +OPTION(bluestore_compression_max_blob_size, OPT_U32) +OPTION(bluestore_compression_max_blob_size_hdd, OPT_U32) +OPTION(bluestore_compression_max_blob_size_ssd, OPT_U32) /* * Specifies minimum expected amount of saved allocation units * per single blob to enable compressed blobs garbage collection * */ -OPTION(bluestore_gc_enable_blob_threshold, OPT_INT, 0) +OPTION(bluestore_gc_enable_blob_threshold, OPT_INT) /* * Specifies minimum expected amount of saved allocation units * per all blobsb to enable compressed blobs garbage collection * */ -OPTION(bluestore_gc_enable_total_threshold, OPT_INT, 0) +OPTION(bluestore_gc_enable_total_threshold, OPT_INT) -OPTION(bluestore_max_blob_size, OPT_U32, 0) -OPTION(bluestore_max_blob_size_hdd, OPT_U32, 512*1024) -OPTION(bluestore_max_blob_size_ssd, OPT_U32, 64*1024) +OPTION(bluestore_max_blob_size, OPT_U32) +OPTION(bluestore_max_blob_size_hdd, OPT_U32) +OPTION(bluestore_max_blob_size_ssd, OPT_U32) /* * Require the net gain of compression at least to be at this ratio, * otherwise we don't compress. * And ask for compressing at least 12.5%(1/8) off, by default. */ -OPTION(bluestore_compression_required_ratio, OPT_DOUBLE, .875) -OPTION(bluestore_extent_map_shard_max_size, OPT_U32, 1200) -OPTION(bluestore_extent_map_shard_target_size, OPT_U32, 500) -OPTION(bluestore_extent_map_shard_min_size, OPT_U32, 150) -OPTION(bluestore_extent_map_shard_target_size_slop, OPT_DOUBLE, .2) -OPTION(bluestore_extent_map_inline_shard_prealloc_size, OPT_U32, 256) -OPTION(bluestore_cache_trim_interval, OPT_DOUBLE, .2) -OPTION(bluestore_cache_trim_max_skip_pinned, OPT_U32, 64) // skip this many onodes pinned in cache before we give up -OPTION(bluestore_cache_type, OPT_STR, "2q") // lru, 2q -OPTION(bluestore_2q_cache_kin_ratio, OPT_DOUBLE, .5) // kin page slot size / max page slot size -OPTION(bluestore_2q_cache_kout_ratio, OPT_DOUBLE, .5) // number of kout page slot / total number of page slot -OPTION(bluestore_cache_size, OPT_U64, 0) -OPTION(bluestore_cache_size_hdd, OPT_U64, 1*1024*1024*1024) -OPTION(bluestore_cache_size_ssd, OPT_U64, 3*1024*1024*1024) -OPTION(bluestore_cache_meta_ratio, OPT_DOUBLE, .01) -OPTION(bluestore_cache_kv_ratio, OPT_DOUBLE, .99) -OPTION(bluestore_cache_kv_max, OPT_U64, 512*1024*1024) // limit the maximum amount of cache for the kv store -OPTION(bluestore_kvbackend, OPT_STR, "rocksdb") -OPTION(bluestore_allocator, OPT_STR, "bitmap") // stupid | bitmap -OPTION(bluestore_freelist_blocks_per_key, OPT_INT, 128) -OPTION(bluestore_bitmapallocator_blocks_per_zone, OPT_INT, 1024) // must be power of 2 aligned, e.g., 512, 1024, 2048... -OPTION(bluestore_bitmapallocator_span_size, OPT_INT, 1024) // must be power of 2 aligned, e.g., 512, 1024, 2048... -OPTION(bluestore_max_deferred_txc, OPT_U64, 32) -OPTION(bluestore_rocksdb_options, OPT_STR, "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") -OPTION(bluestore_fsck_on_mount, OPT_BOOL, false) -OPTION(bluestore_fsck_on_mount_deep, OPT_BOOL, true) -OPTION(bluestore_fsck_on_umount, OPT_BOOL, false) -OPTION(bluestore_fsck_on_umount_deep, OPT_BOOL, true) -OPTION(bluestore_fsck_on_mkfs, OPT_BOOL, true) -OPTION(bluestore_fsck_on_mkfs_deep, OPT_BOOL, false) -OPTION(bluestore_sync_submit_transaction, OPT_BOOL, false) // submit kv txn in queueing thread (not kv_sync_thread) -OPTION(bluestore_throttle_bytes, OPT_U64, 64*1024*1024) -OPTION(bluestore_throttle_deferred_bytes, OPT_U64, 128*1024*1024) -OPTION(bluestore_throttle_cost_per_io_hdd, OPT_U64, 670000) -OPTION(bluestore_throttle_cost_per_io_ssd, OPT_U64, 4000) -OPTION(bluestore_throttle_cost_per_io, OPT_U64, 0) -OPTION(bluestore_deferred_batch_ops, OPT_U64, 0) -OPTION(bluestore_deferred_batch_ops_hdd, OPT_U64, 64) -OPTION(bluestore_deferred_batch_ops_ssd, OPT_U64, 16) -OPTION(bluestore_nid_prealloc, OPT_INT, 1024) -OPTION(bluestore_blobid_prealloc, OPT_U64, 10240) -OPTION(bluestore_clone_cow, OPT_BOOL, true) // do copy-on-write for clones -OPTION(bluestore_default_buffered_read, OPT_BOOL, true) -OPTION(bluestore_default_buffered_write, OPT_BOOL, false) -OPTION(bluestore_debug_misc, OPT_BOOL, false) -OPTION(bluestore_debug_no_reuse_blocks, OPT_BOOL, false) -OPTION(bluestore_debug_small_allocations, OPT_INT, 0) -OPTION(bluestore_debug_freelist, OPT_BOOL, false) -OPTION(bluestore_debug_prefill, OPT_FLOAT, 0) -OPTION(bluestore_debug_prefragment_max, OPT_INT, 1048576) -OPTION(bluestore_debug_inject_read_err, OPT_BOOL, false) -OPTION(bluestore_debug_randomize_serial_transaction, OPT_INT, 0) -OPTION(bluestore_debug_omit_block_device_write, OPT_BOOL, false) -OPTION(bluestore_debug_fsck_abort, OPT_BOOL, false) -OPTION(bluestore_debug_omit_kv_commit, OPT_BOOL, false) -OPTION(bluestore_debug_permit_any_bdev_label, OPT_BOOL, false) -OPTION(bluestore_shard_finishers, OPT_BOOL, false) -OPTION(bluestore_debug_random_read_err, OPT_DOUBLE, 0) - -OPTION(kstore_max_ops, OPT_U64, 512) -OPTION(kstore_max_bytes, OPT_U64, 64*1024*1024) -OPTION(kstore_backend, OPT_STR, "rocksdb") -OPTION(kstore_rocksdb_options, OPT_STR, "compression=kNoCompression") -OPTION(kstore_rocksdb_bloom_bits_per_key, OPT_INT, 0) -OPTION(kstore_fsck_on_mount, OPT_BOOL, false) -OPTION(kstore_fsck_on_mount_deep, OPT_BOOL, true) -OPTION(kstore_nid_prealloc, OPT_U64, 1024) -OPTION(kstore_sync_transaction, OPT_BOOL, false) -OPTION(kstore_sync_submit_transaction, OPT_BOOL, false) -OPTION(kstore_onode_map_size, OPT_U64, 1024) -OPTION(kstore_default_stripe_size, OPT_INT, 65536) - -OPTION(filestore_omap_backend, OPT_STR, "rocksdb") -OPTION(filestore_omap_backend_path, OPT_STR, "") +OPTION(bluestore_compression_required_ratio, OPT_DOUBLE) +OPTION(bluestore_extent_map_shard_max_size, OPT_U32) +OPTION(bluestore_extent_map_shard_target_size, OPT_U32) +OPTION(bluestore_extent_map_shard_min_size, OPT_U32) +OPTION(bluestore_extent_map_shard_target_size_slop, OPT_DOUBLE) +OPTION(bluestore_extent_map_inline_shard_prealloc_size, OPT_U32) +OPTION(bluestore_cache_trim_interval, OPT_DOUBLE) +OPTION(bluestore_cache_trim_max_skip_pinned, OPT_U32) // skip this many onodes pinned in cache before we give up +OPTION(bluestore_cache_type, OPT_STR) // lru, 2q +OPTION(bluestore_2q_cache_kin_ratio, OPT_DOUBLE) // kin page slot size / max page slot size +OPTION(bluestore_2q_cache_kout_ratio, OPT_DOUBLE) // number of kout page slot / total number of page slot +OPTION(bluestore_cache_size, OPT_U64) +OPTION(bluestore_cache_size_hdd, OPT_U64) +OPTION(bluestore_cache_size_ssd, OPT_U64) +OPTION(bluestore_cache_meta_ratio, OPT_DOUBLE) +OPTION(bluestore_cache_kv_ratio, OPT_DOUBLE) +OPTION(bluestore_cache_kv_max, OPT_U64) // limit the maximum amount of cache for the kv store +OPTION(bluestore_kvbackend, OPT_STR) +OPTION(bluestore_allocator, OPT_STR) // stupid | bitmap +OPTION(bluestore_freelist_blocks_per_key, OPT_INT) +OPTION(bluestore_bitmapallocator_blocks_per_zone, OPT_INT) // must be power of 2 aligned, e.g., 512, 1024, 2048... +OPTION(bluestore_bitmapallocator_span_size, OPT_INT) // must be power of 2 aligned, e.g., 512, 1024, 2048... +OPTION(bluestore_max_deferred_txc, OPT_U64) +OPTION(bluestore_rocksdb_options, OPT_STR) +OPTION(bluestore_fsck_on_mount, OPT_BOOL) +OPTION(bluestore_fsck_on_mount_deep, OPT_BOOL) +OPTION(bluestore_fsck_on_umount, OPT_BOOL) +OPTION(bluestore_fsck_on_umount_deep, OPT_BOOL) +OPTION(bluestore_fsck_on_mkfs, OPT_BOOL) +OPTION(bluestore_fsck_on_mkfs_deep, OPT_BOOL) +OPTION(bluestore_sync_submit_transaction, OPT_BOOL) // submit kv txn in queueing thread (not kv_sync_thread) +OPTION(bluestore_throttle_bytes, OPT_U64) +OPTION(bluestore_throttle_deferred_bytes, OPT_U64) +OPTION(bluestore_throttle_cost_per_io_hdd, OPT_U64) +OPTION(bluestore_throttle_cost_per_io_ssd, OPT_U64) +OPTION(bluestore_throttle_cost_per_io, OPT_U64) +OPTION(bluestore_deferred_batch_ops, OPT_U64) +OPTION(bluestore_deferred_batch_ops_hdd, OPT_U64) +OPTION(bluestore_deferred_batch_ops_ssd, OPT_U64) +OPTION(bluestore_nid_prealloc, OPT_INT) +OPTION(bluestore_blobid_prealloc, OPT_U64) +OPTION(bluestore_clone_cow, OPT_BOOL) // do copy-on-write for clones +OPTION(bluestore_default_buffered_read, OPT_BOOL) +OPTION(bluestore_default_buffered_write, OPT_BOOL) +OPTION(bluestore_debug_misc, OPT_BOOL) +OPTION(bluestore_debug_no_reuse_blocks, OPT_BOOL) +OPTION(bluestore_debug_small_allocations, OPT_INT) +OPTION(bluestore_debug_freelist, OPT_BOOL) +OPTION(bluestore_debug_prefill, OPT_FLOAT) +OPTION(bluestore_debug_prefragment_max, OPT_INT) +OPTION(bluestore_debug_inject_read_err, OPT_BOOL) +OPTION(bluestore_debug_randomize_serial_transaction, OPT_INT) +OPTION(bluestore_debug_omit_block_device_write, OPT_BOOL) +OPTION(bluestore_debug_fsck_abort, OPT_BOOL) +OPTION(bluestore_debug_omit_kv_commit, OPT_BOOL) +OPTION(bluestore_debug_permit_any_bdev_label, OPT_BOOL) +OPTION(bluestore_shard_finishers, OPT_BOOL) +OPTION(bluestore_debug_random_read_err, OPT_DOUBLE) + +OPTION(kstore_max_ops, OPT_U64) +OPTION(kstore_max_bytes, OPT_U64) +OPTION(kstore_backend, OPT_STR) +OPTION(kstore_rocksdb_options, OPT_STR) +OPTION(kstore_rocksdb_bloom_bits_per_key, OPT_INT) +OPTION(kstore_fsck_on_mount, OPT_BOOL) +OPTION(kstore_fsck_on_mount_deep, OPT_BOOL) +OPTION(kstore_nid_prealloc, OPT_U64) +OPTION(kstore_sync_transaction, OPT_BOOL) +OPTION(kstore_sync_submit_transaction, OPT_BOOL) +OPTION(kstore_onode_map_size, OPT_U64) +OPTION(kstore_default_stripe_size, OPT_INT) + +OPTION(filestore_omap_backend, OPT_STR) +OPTION(filestore_omap_backend_path, OPT_STR) /// filestore wb throttle limits -OPTION(filestore_wbthrottle_enable, OPT_BOOL, true) -OPTION(filestore_wbthrottle_btrfs_bytes_start_flusher, OPT_U64, 41943040) -OPTION(filestore_wbthrottle_btrfs_bytes_hard_limit, OPT_U64, 419430400) -OPTION(filestore_wbthrottle_btrfs_ios_start_flusher, OPT_U64, 500) -OPTION(filestore_wbthrottle_btrfs_ios_hard_limit, OPT_U64, 5000) -OPTION(filestore_wbthrottle_btrfs_inodes_start_flusher, OPT_U64, 500) -OPTION(filestore_wbthrottle_xfs_bytes_start_flusher, OPT_U64, 41943040) -OPTION(filestore_wbthrottle_xfs_bytes_hard_limit, OPT_U64, 419430400) -OPTION(filestore_wbthrottle_xfs_ios_start_flusher, OPT_U64, 500) -OPTION(filestore_wbthrottle_xfs_ios_hard_limit, OPT_U64, 5000) -OPTION(filestore_wbthrottle_xfs_inodes_start_flusher, OPT_U64, 500) +OPTION(filestore_wbthrottle_enable, OPT_BOOL) +OPTION(filestore_wbthrottle_btrfs_bytes_start_flusher, OPT_U64) +OPTION(filestore_wbthrottle_btrfs_bytes_hard_limit, OPT_U64) +OPTION(filestore_wbthrottle_btrfs_ios_start_flusher, OPT_U64) +OPTION(filestore_wbthrottle_btrfs_ios_hard_limit, OPT_U64) +OPTION(filestore_wbthrottle_btrfs_inodes_start_flusher, OPT_U64) +OPTION(filestore_wbthrottle_xfs_bytes_start_flusher, OPT_U64) +OPTION(filestore_wbthrottle_xfs_bytes_hard_limit, OPT_U64) +OPTION(filestore_wbthrottle_xfs_ios_start_flusher, OPT_U64) +OPTION(filestore_wbthrottle_xfs_ios_hard_limit, OPT_U64) +OPTION(filestore_wbthrottle_xfs_inodes_start_flusher, OPT_U64) /// These must be less than the fd limit -OPTION(filestore_wbthrottle_btrfs_inodes_hard_limit, OPT_U64, 5000) -OPTION(filestore_wbthrottle_xfs_inodes_hard_limit, OPT_U64, 5000) +OPTION(filestore_wbthrottle_btrfs_inodes_hard_limit, OPT_U64) +OPTION(filestore_wbthrottle_xfs_inodes_hard_limit, OPT_U64) //Introduce a O_DSYNC write in the filestore -OPTION(filestore_odsync_write, OPT_BOOL, false) +OPTION(filestore_odsync_write, OPT_BOOL) // Tests index failure paths -OPTION(filestore_index_retry_probability, OPT_DOUBLE, 0) +OPTION(filestore_index_retry_probability, OPT_DOUBLE) // Allow object read error injection -OPTION(filestore_debug_inject_read_err, OPT_BOOL, false) -OPTION(filestore_debug_random_read_err, OPT_DOUBLE, 0) +OPTION(filestore_debug_inject_read_err, OPT_BOOL) +OPTION(filestore_debug_random_read_err, OPT_DOUBLE) -OPTION(filestore_debug_omap_check, OPT_BOOL, false) // Expensive debugging check on sync -OPTION(filestore_omap_header_cache_size, OPT_INT, 1024) +OPTION(filestore_debug_omap_check, OPT_BOOL) // Expensive debugging check on sync +OPTION(filestore_omap_header_cache_size, OPT_INT) // Use omap for xattrs for attrs over // filestore_max_inline_xattr_size or -OPTION(filestore_max_inline_xattr_size, OPT_U32, 0) //Override -OPTION(filestore_max_inline_xattr_size_xfs, OPT_U32, 65536) -OPTION(filestore_max_inline_xattr_size_btrfs, OPT_U32, 2048) -OPTION(filestore_max_inline_xattr_size_other, OPT_U32, 512) +OPTION(filestore_max_inline_xattr_size, OPT_U32) //Override +OPTION(filestore_max_inline_xattr_size_xfs, OPT_U32) +OPTION(filestore_max_inline_xattr_size_btrfs, OPT_U32) +OPTION(filestore_max_inline_xattr_size_other, OPT_U32) // for more than filestore_max_inline_xattrs attrs -OPTION(filestore_max_inline_xattrs, OPT_U32, 0) //Override -OPTION(filestore_max_inline_xattrs_xfs, OPT_U32, 10) -OPTION(filestore_max_inline_xattrs_btrfs, OPT_U32, 10) -OPTION(filestore_max_inline_xattrs_other, OPT_U32, 2) +OPTION(filestore_max_inline_xattrs, OPT_U32) //Override +OPTION(filestore_max_inline_xattrs_xfs, OPT_U32) +OPTION(filestore_max_inline_xattrs_btrfs, OPT_U32) +OPTION(filestore_max_inline_xattrs_other, OPT_U32) // max xattr value size -OPTION(filestore_max_xattr_value_size, OPT_U32, 0) //Override -OPTION(filestore_max_xattr_value_size_xfs, OPT_U32, 64<<10) -OPTION(filestore_max_xattr_value_size_btrfs, OPT_U32, 64<<10) +OPTION(filestore_max_xattr_value_size, OPT_U32) //Override +OPTION(filestore_max_xattr_value_size_xfs, OPT_U32) +OPTION(filestore_max_xattr_value_size_btrfs, OPT_U32) // ext4 allows 4k xattrs total including some smallish extra fields and the // keys. We're allowing 2 512 inline attrs in addition some some filestore // replay attrs. After accounting for those, we still need to fit up to // two attrs of this value. That means we need this value to be around 1k // to be safe. This is hacky, but it's not worth complicating the code // to work around ext4's total xattr limit. -OPTION(filestore_max_xattr_value_size_other, OPT_U32, 1<<10) - -OPTION(filestore_sloppy_crc, OPT_BOOL, false) // track sloppy crcs -OPTION(filestore_sloppy_crc_block_size, OPT_INT, 65536) - -OPTION(filestore_max_alloc_hint_size, OPT_U64, 1ULL << 20) // bytes - -OPTION(filestore_max_sync_interval, OPT_DOUBLE, 5) // seconds -OPTION(filestore_min_sync_interval, OPT_DOUBLE, .01) // seconds -OPTION(filestore_btrfs_snap, OPT_BOOL, true) -OPTION(filestore_btrfs_clone_range, OPT_BOOL, true) -OPTION(filestore_zfs_snap, OPT_BOOL, false) // zfsonlinux is still unstable -OPTION(filestore_fsync_flushes_journal_data, OPT_BOOL, false) -OPTION(filestore_fiemap, OPT_BOOL, false) // (try to) use fiemap -OPTION(filestore_punch_hole, OPT_BOOL, false) -OPTION(filestore_seek_data_hole, OPT_BOOL, false) // (try to) use seek_data/hole -OPTION(filestore_splice, OPT_BOOL, false) -OPTION(filestore_fadvise, OPT_BOOL, true) +OPTION(filestore_max_xattr_value_size_other, OPT_U32) + +OPTION(filestore_sloppy_crc, OPT_BOOL) // track sloppy crcs +OPTION(filestore_sloppy_crc_block_size, OPT_INT) + +OPTION(filestore_max_alloc_hint_size, OPT_U64) // bytes + +OPTION(filestore_max_sync_interval, OPT_DOUBLE) // seconds +OPTION(filestore_min_sync_interval, OPT_DOUBLE) // seconds +OPTION(filestore_btrfs_snap, OPT_BOOL) +OPTION(filestore_btrfs_clone_range, OPT_BOOL) +OPTION(filestore_zfs_snap, OPT_BOOL) // zfsonlinux is still unstable +OPTION(filestore_fsync_flushes_journal_data, OPT_BOOL) +OPTION(filestore_fiemap, OPT_BOOL) // (try to) use fiemap +OPTION(filestore_punch_hole, OPT_BOOL) +OPTION(filestore_seek_data_hole, OPT_BOOL) // (try to) use seek_data/hole +OPTION(filestore_splice, OPT_BOOL) +OPTION(filestore_fadvise, OPT_BOOL) //collect device partition information for management application to use -OPTION(filestore_collect_device_partition_information, OPT_BOOL, true) +OPTION(filestore_collect_device_partition_information, OPT_BOOL) // (try to) use extsize for alloc hint NOTE: extsize seems to trigger // data corruption in xfs prior to kernel 3.5. filestore will @@ -1253,116 +1225,116 @@ OPTION(filestore_collect_device_partition_information, OPT_BOOL, true) // NOTE: This option involves a tradeoff: When disabled, fragmentation is // worse, but large sequential writes are faster. When enabled, large // sequential writes are slower, but fragmentation is reduced. -OPTION(filestore_xfs_extsize, OPT_BOOL, false) +OPTION(filestore_xfs_extsize, OPT_BOOL) -OPTION(filestore_journal_parallel, OPT_BOOL, false) -OPTION(filestore_journal_writeahead, OPT_BOOL, false) -OPTION(filestore_journal_trailing, OPT_BOOL, false) -OPTION(filestore_queue_max_ops, OPT_U64, 50) -OPTION(filestore_queue_max_bytes, OPT_U64, 100 << 20) +OPTION(filestore_journal_parallel, OPT_BOOL) +OPTION(filestore_journal_writeahead, OPT_BOOL) +OPTION(filestore_journal_trailing, OPT_BOOL) +OPTION(filestore_queue_max_ops, OPT_U64) +OPTION(filestore_queue_max_bytes, OPT_U64) -OPTION(filestore_caller_concurrency, OPT_INT, 10) +OPTION(filestore_caller_concurrency, OPT_INT) /// Expected filestore throughput in B/s -OPTION(filestore_expected_throughput_bytes, OPT_DOUBLE, 200 << 20) +OPTION(filestore_expected_throughput_bytes, OPT_DOUBLE) /// Expected filestore throughput in ops/s -OPTION(filestore_expected_throughput_ops, OPT_DOUBLE, 200) +OPTION(filestore_expected_throughput_ops, OPT_DOUBLE) /// Filestore max delay multiple. Defaults to 0 (disabled) -OPTION(filestore_queue_max_delay_multiple, OPT_DOUBLE, 0) +OPTION(filestore_queue_max_delay_multiple, OPT_DOUBLE) /// Filestore high delay multiple. Defaults to 0 (disabled) -OPTION(filestore_queue_high_delay_multiple, OPT_DOUBLE, 0) +OPTION(filestore_queue_high_delay_multiple, OPT_DOUBLE) /// Use above to inject delays intended to keep the op queue between low and high -OPTION(filestore_queue_low_threshhold, OPT_DOUBLE, 0.3) -OPTION(filestore_queue_high_threshhold, OPT_DOUBLE, 0.9) - -OPTION(filestore_op_threads, OPT_INT, 2) -OPTION(filestore_op_thread_timeout, OPT_INT, 60) -OPTION(filestore_op_thread_suicide_timeout, OPT_INT, 180) -OPTION(filestore_commit_timeout, OPT_FLOAT, 600) -OPTION(filestore_fiemap_threshold, OPT_INT, 4096) -OPTION(filestore_merge_threshold, OPT_INT, 10) -OPTION(filestore_split_multiple, OPT_INT, 2) -OPTION(filestore_split_rand_factor, OPT_U32, 20) // randomize the split threshold by adding 16 * [0, rand_factor) -OPTION(filestore_update_to, OPT_INT, 1000) -OPTION(filestore_blackhole, OPT_BOOL, false) // drop any new transactions on the floor -OPTION(filestore_fd_cache_size, OPT_INT, 128) // FD lru size -OPTION(filestore_fd_cache_shards, OPT_INT, 16) // FD number of shards -OPTION(filestore_ondisk_finisher_threads, OPT_INT, 1) -OPTION(filestore_apply_finisher_threads, OPT_INT, 1) -OPTION(filestore_dump_file, OPT_STR, "") // file onto which store transaction dumps -OPTION(filestore_kill_at, OPT_INT, 0) // inject a failure at the n'th opportunity -OPTION(filestore_inject_stall, OPT_INT, 0) // artificially stall for N seconds in op queue thread -OPTION(filestore_fail_eio, OPT_BOOL, true) // fail/crash on EIO -OPTION(filestore_debug_verify_split, OPT_BOOL, false) -OPTION(journal_dio, OPT_BOOL, true) -OPTION(journal_aio, OPT_BOOL, true) -OPTION(journal_force_aio, OPT_BOOL, false) -OPTION(journal_block_size, OPT_INT, 4096) +OPTION(filestore_queue_low_threshhold, OPT_DOUBLE) +OPTION(filestore_queue_high_threshhold, OPT_DOUBLE) + +OPTION(filestore_op_threads, OPT_INT) +OPTION(filestore_op_thread_timeout, OPT_INT) +OPTION(filestore_op_thread_suicide_timeout, OPT_INT) +OPTION(filestore_commit_timeout, OPT_FLOAT) +OPTION(filestore_fiemap_threshold, OPT_INT) +OPTION(filestore_merge_threshold, OPT_INT) +OPTION(filestore_split_multiple, OPT_INT) +OPTION(filestore_split_rand_factor, OPT_U32) // randomize the split threshold by adding 16 * [0) +OPTION(filestore_update_to, OPT_INT) +OPTION(filestore_blackhole, OPT_BOOL) // drop any new transactions on the floor +OPTION(filestore_fd_cache_size, OPT_INT) // FD lru size +OPTION(filestore_fd_cache_shards, OPT_INT) // FD number of shards +OPTION(filestore_ondisk_finisher_threads, OPT_INT) +OPTION(filestore_apply_finisher_threads, OPT_INT) +OPTION(filestore_dump_file, OPT_STR) // file onto which store transaction dumps +OPTION(filestore_kill_at, OPT_INT) // inject a failure at the n'th opportunity +OPTION(filestore_inject_stall, OPT_INT) // artificially stall for N seconds in op queue thread +OPTION(filestore_fail_eio, OPT_BOOL) // fail/crash on EIO +OPTION(filestore_debug_verify_split, OPT_BOOL) +OPTION(journal_dio, OPT_BOOL) +OPTION(journal_aio, OPT_BOOL) +OPTION(journal_force_aio, OPT_BOOL) +OPTION(journal_block_size, OPT_INT) // max bytes to search ahead in journal searching for corruption -OPTION(journal_max_corrupt_search, OPT_U64, 10<<20) -OPTION(journal_block_align, OPT_BOOL, true) -OPTION(journal_write_header_frequency, OPT_U64, 0) -OPTION(journal_max_write_bytes, OPT_INT, 10 << 20) -OPTION(journal_max_write_entries, OPT_INT, 100) +OPTION(journal_max_corrupt_search, OPT_U64) +OPTION(journal_block_align, OPT_BOOL) +OPTION(journal_write_header_frequency, OPT_U64) +OPTION(journal_max_write_bytes, OPT_INT) +OPTION(journal_max_write_entries, OPT_INT) /// Target range for journal fullness -OPTION(journal_throttle_low_threshhold, OPT_DOUBLE, 0.6) -OPTION(journal_throttle_high_threshhold, OPT_DOUBLE, 0.9) +OPTION(journal_throttle_low_threshhold, OPT_DOUBLE) +OPTION(journal_throttle_high_threshhold, OPT_DOUBLE) /// Multiple over expected at high_threshhold. Defaults to 0 (disabled). -OPTION(journal_throttle_high_multiple, OPT_DOUBLE, 0) +OPTION(journal_throttle_high_multiple, OPT_DOUBLE) /// Multiple over expected at max. Defaults to 0 (disabled). -OPTION(journal_throttle_max_multiple, OPT_DOUBLE, 0) - -OPTION(journal_align_min_size, OPT_INT, 64 << 10) // align data payloads >= this. -OPTION(journal_replay_from, OPT_INT, 0) -OPTION(journal_zero_on_create, OPT_BOOL, false) -OPTION(journal_ignore_corruption, OPT_BOOL, false) // assume journal is not corrupt -OPTION(journal_discard, OPT_BOOL, false) //using ssd disk as journal, whether support discard nouse journal-data. - -OPTION(fio_dir, OPT_STR, "/tmp/fio") // fio data directory for fio-objectstore - -OPTION(rados_mon_op_timeout, OPT_DOUBLE, 0) // how many seconds to wait for a response from the monitor before returning an error from a rados operation. 0 means no limit. -OPTION(rados_osd_op_timeout, OPT_DOUBLE, 0) // how many seconds to wait for a response from osds before returning an error from a rados operation. 0 means no limit. -OPTION(rados_tracing, OPT_BOOL, false) // true if LTTng-UST tracepoints should be enabled - -OPTION(rbd_op_threads, OPT_INT, 1) -OPTION(rbd_op_thread_timeout, OPT_INT, 60) -OPTION(rbd_non_blocking_aio, OPT_BOOL, true) // process AIO ops from a worker thread to prevent blocking -OPTION(rbd_cache, OPT_BOOL, true) // whether to enable caching (writeback unless rbd_cache_max_dirty is 0) -OPTION(rbd_cache_writethrough_until_flush, OPT_BOOL, true) // whether to make writeback caching writethrough until flush is called, to be sure the user of librbd will send flushs so that writeback is safe -OPTION(rbd_cache_size, OPT_LONGLONG, 32<<20) // cache size in bytes -OPTION(rbd_cache_max_dirty, OPT_LONGLONG, 24<<20) // dirty limit in bytes - set to 0 for write-through caching -OPTION(rbd_cache_target_dirty, OPT_LONGLONG, 16<<20) // target dirty limit in bytes -OPTION(rbd_cache_max_dirty_age, OPT_FLOAT, 1.0) // seconds in cache before writeback starts -OPTION(rbd_cache_max_dirty_object, OPT_INT, 0) // dirty limit for objects - set to 0 for auto calculate from rbd_cache_size -OPTION(rbd_cache_block_writes_upfront, OPT_BOOL, false) // whether to block writes to the cache before the aio_write call completes (true), or block before the aio completion is called (false) -OPTION(rbd_concurrent_management_ops, OPT_INT, 10) // how many operations can be in flight for a management operation like deleting or resizing an image -OPTION(rbd_balance_snap_reads, OPT_BOOL, false) -OPTION(rbd_localize_snap_reads, OPT_BOOL, false) -OPTION(rbd_balance_parent_reads, OPT_BOOL, false) -OPTION(rbd_localize_parent_reads, OPT_BOOL, true) -OPTION(rbd_readahead_trigger_requests, OPT_INT, 10) // number of sequential requests necessary to trigger readahead -OPTION(rbd_readahead_max_bytes, OPT_LONGLONG, 512 * 1024) // set to 0 to disable readahead -OPTION(rbd_readahead_disable_after_bytes, OPT_LONGLONG, 50 * 1024 * 1024) // how many bytes are read in total before readahead is disabled -OPTION(rbd_clone_copy_on_read, OPT_BOOL, false) -OPTION(rbd_blacklist_on_break_lock, OPT_BOOL, true) // whether to blacklist clients whose lock was broken -OPTION(rbd_blacklist_expire_seconds, OPT_INT, 0) // number of seconds to blacklist - set to 0 for OSD default -OPTION(rbd_request_timed_out_seconds, OPT_INT, 30) // number of seconds before maint request times out -OPTION(rbd_skip_partial_discard, OPT_BOOL, false) // when trying to discard a range inside an object, set to true to skip zeroing the range. -OPTION(rbd_enable_alloc_hint, OPT_BOOL, true) // when writing a object, it will issue a hint to osd backend to indicate the expected size object need -OPTION(rbd_tracing, OPT_BOOL, false) // true if LTTng-UST tracepoints should be enabled -OPTION(rbd_blkin_trace_all, OPT_BOOL, false) // create a blkin trace for all RBD requests -OPTION(rbd_validate_pool, OPT_BOOL, true) // true if empty pools should be validated for RBD compatibility -OPTION(rbd_validate_names, OPT_BOOL, true) // true if image specs should be validated -OPTION(rbd_auto_exclusive_lock_until_manual_request, OPT_BOOL, true) // whether to automatically acquire/release exclusive lock until it is explicitly requested, i.e. before we know the user of librbd is properly using the lock API -OPTION(rbd_mirroring_resync_after_disconnect, OPT_BOOL, false) // automatically start image resync after mirroring is disconnected due to being laggy -OPTION(rbd_mirroring_replay_delay, OPT_INT, 0) // time-delay in seconds for rbd-mirror asynchronous replication - -OPTION(rbd_default_pool, OPT_STR, "rbd") // default pool for storing images +OPTION(journal_throttle_max_multiple, OPT_DOUBLE) + +OPTION(journal_align_min_size, OPT_INT) // align data payloads >= this. +OPTION(journal_replay_from, OPT_INT) +OPTION(journal_zero_on_create, OPT_BOOL) +OPTION(journal_ignore_corruption, OPT_BOOL) // assume journal is not corrupt +OPTION(journal_discard, OPT_BOOL) //using ssd disk as journal, whether support discard nouse journal-data. + +OPTION(fio_dir, OPT_STR) // fio data directory for fio-objectstore + +OPTION(rados_mon_op_timeout, OPT_DOUBLE) // how many seconds to wait for a response from the monitor before returning an error from a rados operation. 0 means no limit. +OPTION(rados_osd_op_timeout, OPT_DOUBLE) // how many seconds to wait for a response from osds before returning an error from a rados operation. 0 means no limit. +OPTION(rados_tracing, OPT_BOOL) // true if LTTng-UST tracepoints should be enabled + +OPTION(rbd_op_threads, OPT_INT) +OPTION(rbd_op_thread_timeout, OPT_INT) +OPTION(rbd_non_blocking_aio, OPT_BOOL) // process AIO ops from a worker thread to prevent blocking +OPTION(rbd_cache, OPT_BOOL) // whether to enable caching (writeback unless rbd_cache_max_dirty is 0) +OPTION(rbd_cache_writethrough_until_flush, OPT_BOOL) // whether to make writeback caching writethrough until flush is called, to be sure the user of librbd will send flushs so that writeback is safe +OPTION(rbd_cache_size, OPT_LONGLONG) // cache size in bytes +OPTION(rbd_cache_max_dirty, OPT_LONGLONG) // dirty limit in bytes - set to 0 for write-through caching +OPTION(rbd_cache_target_dirty, OPT_LONGLONG) // target dirty limit in bytes +OPTION(rbd_cache_max_dirty_age, OPT_FLOAT) // seconds in cache before writeback starts +OPTION(rbd_cache_max_dirty_object, OPT_INT) // dirty limit for objects - set to 0 for auto calculate from rbd_cache_size +OPTION(rbd_cache_block_writes_upfront, OPT_BOOL) // whether to block writes to the cache before the aio_write call completes (true)) +OPTION(rbd_concurrent_management_ops, OPT_INT) // how many operations can be in flight for a management operation like deleting or resizing an image +OPTION(rbd_balance_snap_reads, OPT_BOOL) +OPTION(rbd_localize_snap_reads, OPT_BOOL) +OPTION(rbd_balance_parent_reads, OPT_BOOL) +OPTION(rbd_localize_parent_reads, OPT_BOOL) +OPTION(rbd_readahead_trigger_requests, OPT_INT) // number of sequential requests necessary to trigger readahead +OPTION(rbd_readahead_max_bytes, OPT_LONGLONG) // set to 0 to disable readahead +OPTION(rbd_readahead_disable_after_bytes, OPT_LONGLONG) // how many bytes are read in total before readahead is disabled +OPTION(rbd_clone_copy_on_read, OPT_BOOL) +OPTION(rbd_blacklist_on_break_lock, OPT_BOOL) // whether to blacklist clients whose lock was broken +OPTION(rbd_blacklist_expire_seconds, OPT_INT) // number of seconds to blacklist - set to 0 for OSD default +OPTION(rbd_request_timed_out_seconds, OPT_INT) // number of seconds before maint request times out +OPTION(rbd_skip_partial_discard, OPT_BOOL) // when trying to discard a range inside an object, set to true to skip zeroing the range. +OPTION(rbd_enable_alloc_hint, OPT_BOOL) // when writing a object, it will issue a hint to osd backend to indicate the expected size object need +OPTION(rbd_tracing, OPT_BOOL) // true if LTTng-UST tracepoints should be enabled +OPTION(rbd_blkin_trace_all, OPT_BOOL) // create a blkin trace for all RBD requests +OPTION(rbd_validate_pool, OPT_BOOL) // true if empty pools should be validated for RBD compatibility +OPTION(rbd_validate_names, OPT_BOOL) // true if image specs should be validated +OPTION(rbd_auto_exclusive_lock_until_manual_request, OPT_BOOL) // whether to automatically acquire/release exclusive lock until it is explicitly requested, i.e. before we know the user of librbd is properly using the lock API +OPTION(rbd_mirroring_resync_after_disconnect, OPT_BOOL) // automatically start image resync after mirroring is disconnected due to being laggy +OPTION(rbd_mirroring_replay_delay, OPT_INT) // time-delay in seconds for rbd-mirror asynchronous replication + +OPTION(rbd_default_pool, OPT_STR) // default pool for storing images /* * The following options change the behavior for librbd's image creation methods that @@ -1380,11 +1352,11 @@ OPTION(rbd_default_pool, OPT_STR, "rbd") // default pool for storing images * rbd_create3()/RBD::create3() and rbd_clone2/RBD::clone2() are only * affected by rbd_default_order. */ -OPTION(rbd_default_format, OPT_INT, 2) -OPTION(rbd_default_order, OPT_INT, 22) -OPTION(rbd_default_stripe_count, OPT_U64, 0) // changing requires stripingv2 feature -OPTION(rbd_default_stripe_unit, OPT_U64, 0) // changing to non-object size requires stripingv2 feature -OPTION(rbd_default_data_pool, OPT_STR, "") // optional default pool for storing image data blocks +OPTION(rbd_default_format, OPT_INT) +OPTION(rbd_default_order, OPT_INT) +OPTION(rbd_default_stripe_count, OPT_U64) // changing requires stripingv2 feature +OPTION(rbd_default_stripe_unit, OPT_U64) // changing to non-object size requires stripingv2 feature +OPTION(rbd_default_data_pool, OPT_STR) // optional default pool for storing image data blocks /** * RBD features are only applicable for v2 images. This setting accepts either @@ -1401,46 +1373,46 @@ OPTION(rbd_default_data_pool, OPT_STR, "") // optional default pool for storing * +64 -> journaling * +128 -> data-pool */ -SAFE_OPTION(rbd_default_features, OPT_STR, "layering,exclusive-lock,object-map,fast-diff,deep-flatten") +SAFE_OPTION(rbd_default_features, OPT_STR) -OPTION(rbd_default_map_options, OPT_STR, "") // default rbd map -o / --options +OPTION(rbd_default_map_options, OPT_STR) // default rbd map -o / --options /** * RBD journal options. */ -OPTION(rbd_journal_order, OPT_U32, 24) // bits to shift to compute journal object max size, between 12 and 64 -OPTION(rbd_journal_splay_width, OPT_U32, 4) // number of active journal objects -OPTION(rbd_journal_commit_age, OPT_DOUBLE, 5) // commit time interval, seconds -OPTION(rbd_journal_object_flush_interval, OPT_INT, 0) // maximum number of pending commits per journal object -OPTION(rbd_journal_object_flush_bytes, OPT_INT, 0) // maximum number of pending bytes per journal object -OPTION(rbd_journal_object_flush_age, OPT_DOUBLE, 0) // maximum age (in seconds) for pending commits -OPTION(rbd_journal_pool, OPT_STR, "") // pool for journal objects -OPTION(rbd_journal_max_payload_bytes, OPT_U32, 16384) // maximum journal payload size before splitting -OPTION(rbd_journal_max_concurrent_object_sets, OPT_INT, 0) // maximum number of object sets a journal client can be behind before it is automatically unregistered +OPTION(rbd_journal_order, OPT_U32) // bits to shift to compute journal object max size, between 12 and 64 +OPTION(rbd_journal_splay_width, OPT_U32) // number of active journal objects +OPTION(rbd_journal_commit_age, OPT_DOUBLE) // commit time interval, seconds +OPTION(rbd_journal_object_flush_interval, OPT_INT) // maximum number of pending commits per journal object +OPTION(rbd_journal_object_flush_bytes, OPT_INT) // maximum number of pending bytes per journal object +OPTION(rbd_journal_object_flush_age, OPT_DOUBLE) // maximum age (in seconds) for pending commits +OPTION(rbd_journal_pool, OPT_STR) // pool for journal objects +OPTION(rbd_journal_max_payload_bytes, OPT_U32) // maximum journal payload size before splitting +OPTION(rbd_journal_max_concurrent_object_sets, OPT_INT) // maximum number of object sets a journal client can be behind before it is automatically unregistered /** * RBD Mirror options */ -OPTION(rbd_mirror_journal_commit_age, OPT_DOUBLE, 5) // commit time interval, seconds -OPTION(rbd_mirror_journal_poll_age, OPT_DOUBLE, 5) // maximum age (in seconds) between successive journal polls -OPTION(rbd_mirror_journal_max_fetch_bytes, OPT_U32, 32768) // maximum bytes to read from each journal data object per fetch -OPTION(rbd_mirror_sync_point_update_age, OPT_DOUBLE, 30) // number of seconds between each update of the image sync point object number -OPTION(rbd_mirror_concurrent_image_syncs, OPT_U32, 5) // maximum number of image syncs in parallel -OPTION(rbd_mirror_pool_replayers_refresh_interval, OPT_INT, 30) // interval to refresh peers in rbd-mirror daemon -OPTION(rbd_mirror_delete_retry_interval, OPT_DOUBLE, 30) // interval to check and retry the failed requests in deleter -OPTION(rbd_mirror_image_state_check_interval, OPT_INT, 30) // interval to get images from pool watcher and set sources in replayer -OPTION(rbd_mirror_leader_heartbeat_interval, OPT_INT, 5) // interval (in seconds) between mirror leader heartbeats -OPTION(rbd_mirror_leader_max_missed_heartbeats, OPT_INT, 2) // number of missed heartbeats for non-lock owner to attempt to acquire lock -OPTION(rbd_mirror_leader_max_acquire_attempts_before_break, OPT_INT, 3) // number of failed attempts to acquire lock after missing heartbeats before breaking lock - -OPTION(nss_db_path, OPT_STR, "") // path to nss db - - -OPTION(rgw_max_chunk_size, OPT_INT, 4 * 1024 * 1024) -OPTION(rgw_put_obj_min_window_size, OPT_INT, 16 * 1024 * 1024) -OPTION(rgw_put_obj_max_window_size, OPT_INT, 64 * 1024 * 1024) -OPTION(rgw_max_put_size, OPT_U64, 5ULL*1024*1024*1024) -OPTION(rgw_max_put_param_size, OPT_U64, 1 * 1024 * 1024) // max input size for PUT requests accepting json/xml params +OPTION(rbd_mirror_journal_commit_age, OPT_DOUBLE) // commit time interval, seconds +OPTION(rbd_mirror_journal_poll_age, OPT_DOUBLE) // maximum age (in seconds) between successive journal polls +OPTION(rbd_mirror_journal_max_fetch_bytes, OPT_U32) // maximum bytes to read from each journal data object per fetch +OPTION(rbd_mirror_sync_point_update_age, OPT_DOUBLE) // number of seconds between each update of the image sync point object number +OPTION(rbd_mirror_concurrent_image_syncs, OPT_U32) // maximum number of image syncs in parallel +OPTION(rbd_mirror_pool_replayers_refresh_interval, OPT_INT) // interval to refresh peers in rbd-mirror daemon +OPTION(rbd_mirror_delete_retry_interval, OPT_DOUBLE) // interval to check and retry the failed requests in deleter +OPTION(rbd_mirror_image_state_check_interval, OPT_INT) // interval to get images from pool watcher and set sources in replayer +OPTION(rbd_mirror_leader_heartbeat_interval, OPT_INT) // interval (in seconds) between mirror leader heartbeats +OPTION(rbd_mirror_leader_max_missed_heartbeats, OPT_INT) // number of missed heartbeats for non-lock owner to attempt to acquire lock +OPTION(rbd_mirror_leader_max_acquire_attempts_before_break, OPT_INT) // number of failed attempts to acquire lock after missing heartbeats before breaking lock + +OPTION(nss_db_path, OPT_STR) // path to nss db + + +OPTION(rgw_max_chunk_size, OPT_INT) +OPTION(rgw_put_obj_min_window_size, OPT_INT) +OPTION(rgw_put_obj_max_window_size, OPT_INT) +OPTION(rgw_max_put_size, OPT_U64) +OPTION(rgw_max_put_param_size, OPT_U64) // max input size for PUT requests accepting json/xml params /** * override max bucket index shards in zone configuration (if not zero) @@ -1451,98 +1423,98 @@ OPTION(rgw_max_put_param_size, OPT_U64, 1 * 1024 * 1024) // max input size for P * sharding_id is zero-based value. It is not recommended to set a too large value * (e.g. thousand) as it increases the cost for bucket listing. */ -OPTION(rgw_override_bucket_index_max_shards, OPT_U32, 0) +OPTION(rgw_override_bucket_index_max_shards, OPT_U32) /** * Represents the maximum AIO pending requests for the bucket index object shards. */ -OPTION(rgw_bucket_index_max_aio, OPT_U32, 8) +OPTION(rgw_bucket_index_max_aio, OPT_U32) /** * whether or not the quota/gc threads should be started */ -OPTION(rgw_enable_quota_threads, OPT_BOOL, true) -OPTION(rgw_enable_gc_threads, OPT_BOOL, true) -OPTION(rgw_enable_lc_threads, OPT_BOOL, true) - - -OPTION(rgw_data, OPT_STR, "/var/lib/ceph/radosgw/$cluster-$id") -OPTION(rgw_enable_apis, OPT_STR, "s3, s3website, swift, swift_auth, admin") -OPTION(rgw_cache_enabled, OPT_BOOL, true) // rgw cache enabled -OPTION(rgw_cache_lru_size, OPT_INT, 10000) // num of entries in rgw cache -OPTION(rgw_socket_path, OPT_STR, "") // path to unix domain socket, if not specified, rgw will not run as external fcgi -OPTION(rgw_host, OPT_STR, "") // host for radosgw, can be an IP, default is 0.0.0.0 -OPTION(rgw_port, OPT_STR, "") // port to listen, format as "8080" "5000", if not specified, rgw will not run external fcgi -OPTION(rgw_dns_name, OPT_STR, "") // hostname suffix on buckets -OPTION(rgw_dns_s3website_name, OPT_STR, "") // hostname suffix on buckets for s3-website endpoint -OPTION(rgw_content_length_compat, OPT_BOOL, false) // Check both HTTP_CONTENT_LENGTH and CONTENT_LENGTH in fcgi env -OPTION(rgw_lifecycle_work_time, OPT_STR, "00:00-06:00") //job process lc at 00:00-06:00s -OPTION(rgw_lc_lock_max_time, OPT_INT, 60) // total run time for a single lc processor work -OPTION(rgw_lc_max_objs, OPT_INT, 32) -OPTION(rgw_lc_debug_interval, OPT_INT, -1) // Debug run interval, in seconds -OPTION(rgw_script_uri, OPT_STR, "") // alternative value for SCRIPT_URI if not set in request -OPTION(rgw_request_uri, OPT_STR, "") // alternative value for REQUEST_URI if not set in request -OPTION(rgw_swift_url, OPT_STR, "") // the swift url, being published by the internal swift auth -OPTION(rgw_swift_url_prefix, OPT_STR, "swift") // entry point for which a url is considered a swift url -OPTION(rgw_swift_auth_url, OPT_STR, "") // default URL to go and verify tokens for v1 auth (if not using internal swift auth) -OPTION(rgw_swift_auth_entry, OPT_STR, "auth") // entry point for which a url is considered a swift auth url -OPTION(rgw_swift_tenant_name, OPT_STR, "") // tenant name to use for swift access -OPTION(rgw_swift_account_in_url, OPT_BOOL, false) // assume that URL always contain the account (aka tenant) part -OPTION(rgw_swift_enforce_content_length, OPT_BOOL, false) // enforce generation of Content-Length even in cost of performance or scalability -OPTION(rgw_keystone_url, OPT_STR, "") // url for keystone server -OPTION(rgw_keystone_admin_token, OPT_STR, "") // keystone admin token (shared secret) -OPTION(rgw_keystone_admin_user, OPT_STR, "") // keystone admin user name -OPTION(rgw_keystone_admin_password, OPT_STR, "") // keystone admin user password -OPTION(rgw_keystone_admin_tenant, OPT_STR, "") // keystone admin user tenant (for keystone v2.0) -OPTION(rgw_keystone_admin_project, OPT_STR, "") // keystone admin user project (for keystone v3) -OPTION(rgw_keystone_admin_domain, OPT_STR, "") // keystone admin user domain -OPTION(rgw_keystone_barbican_user, OPT_STR, "") // keystone user to access barbican secrets -OPTION(rgw_keystone_barbican_password, OPT_STR, "") // keystone password for barbican user -OPTION(rgw_keystone_barbican_tenant, OPT_STR, "") // keystone barbican user tenant (for keystone v2.0) -OPTION(rgw_keystone_barbican_project, OPT_STR, "") // keystone barbican user project (for keystone v3) -OPTION(rgw_keystone_barbican_domain, OPT_STR, "") // keystone barbican user domain -OPTION(rgw_keystone_api_version, OPT_INT, 2) // Version of Keystone API to use (2 or 3) -OPTION(rgw_keystone_accepted_roles, OPT_STR, "Member, admin") // roles required to serve requests -OPTION(rgw_keystone_accepted_admin_roles, OPT_STR, "") // list of roles allowing an user to gain admin privileges -OPTION(rgw_keystone_token_cache_size, OPT_INT, 10000) // max number of entries in keystone token cache -OPTION(rgw_keystone_revocation_interval, OPT_INT, 15 * 60) // seconds between tokens revocation check -OPTION(rgw_keystone_verify_ssl, OPT_BOOL, true) // should we try to verify keystone's ssl -OPTION(rgw_keystone_implicit_tenants, OPT_BOOL, false) // create new users in their own tenants of the same name -OPTION(rgw_cross_domain_policy, OPT_STR, "") -OPTION(rgw_healthcheck_disabling_path, OPT_STR, "") // path that existence causes the healthcheck to respond 503 -OPTION(rgw_s3_auth_use_rados, OPT_BOOL, true) // should we try to use the internal credentials for s3? -OPTION(rgw_s3_auth_use_keystone, OPT_BOOL, false) // should we try to use keystone for s3? -OPTION(rgw_s3_auth_aws4_force_boto2_compat, OPT_BOOL, true) // force aws4 auth boto2 compatibility -OPTION(rgw_barbican_url, OPT_STR, "") // url for barbican server +OPTION(rgw_enable_quota_threads, OPT_BOOL) +OPTION(rgw_enable_gc_threads, OPT_BOOL) +OPTION(rgw_enable_lc_threads, OPT_BOOL) + + +OPTION(rgw_data, OPT_STR) +OPTION(rgw_enable_apis, OPT_STR) +OPTION(rgw_cache_enabled, OPT_BOOL) // rgw cache enabled +OPTION(rgw_cache_lru_size, OPT_INT) // num of entries in rgw cache +OPTION(rgw_socket_path, OPT_STR) // path to unix domain socket, if not specified, rgw will not run as external fcgi +OPTION(rgw_host, OPT_STR) // host for radosgw, can be an IP, default is 0.0.0.0 +OPTION(rgw_port, OPT_STR) // port to listen, format as "8080" "5000", if not specified, rgw will not run external fcgi +OPTION(rgw_dns_name, OPT_STR) // hostname suffix on buckets +OPTION(rgw_dns_s3website_name, OPT_STR) // hostname suffix on buckets for s3-website endpoint +OPTION(rgw_content_length_compat, OPT_BOOL) // Check both HTTP_CONTENT_LENGTH and CONTENT_LENGTH in fcgi env +OPTION(rgw_lifecycle_work_time, OPT_STR) //job process lc at 00:00-06:00s +OPTION(rgw_lc_lock_max_time, OPT_INT) // total run time for a single lc processor work +OPTION(rgw_lc_max_objs, OPT_INT) +OPTION(rgw_lc_debug_interval, OPT_INT) // Debug run interval, in seconds +OPTION(rgw_script_uri, OPT_STR) // alternative value for SCRIPT_URI if not set in request +OPTION(rgw_request_uri, OPT_STR) // alternative value for REQUEST_URI if not set in request +OPTION(rgw_swift_url, OPT_STR) // the swift url, being published by the internal swift auth +OPTION(rgw_swift_url_prefix, OPT_STR) // entry point for which a url is considered a swift url +OPTION(rgw_swift_auth_url, OPT_STR) // default URL to go and verify tokens for v1 auth (if not using internal swift auth) +OPTION(rgw_swift_auth_entry, OPT_STR) // entry point for which a url is considered a swift auth url +OPTION(rgw_swift_tenant_name, OPT_STR) // tenant name to use for swift access +OPTION(rgw_swift_account_in_url, OPT_BOOL) // assume that URL always contain the account (aka tenant) part +OPTION(rgw_swift_enforce_content_length, OPT_BOOL) // enforce generation of Content-Length even in cost of performance or scalability +OPTION(rgw_keystone_url, OPT_STR) // url for keystone server +OPTION(rgw_keystone_admin_token, OPT_STR) // keystone admin token (shared secret) +OPTION(rgw_keystone_admin_user, OPT_STR) // keystone admin user name +OPTION(rgw_keystone_admin_password, OPT_STR) // keystone admin user password +OPTION(rgw_keystone_admin_tenant, OPT_STR) // keystone admin user tenant (for keystone v2.0) +OPTION(rgw_keystone_admin_project, OPT_STR) // keystone admin user project (for keystone v3) +OPTION(rgw_keystone_admin_domain, OPT_STR) // keystone admin user domain +OPTION(rgw_keystone_barbican_user, OPT_STR) // keystone user to access barbican secrets +OPTION(rgw_keystone_barbican_password, OPT_STR) // keystone password for barbican user +OPTION(rgw_keystone_barbican_tenant, OPT_STR) // keystone barbican user tenant (for keystone v2.0) +OPTION(rgw_keystone_barbican_project, OPT_STR) // keystone barbican user project (for keystone v3) +OPTION(rgw_keystone_barbican_domain, OPT_STR) // keystone barbican user domain +OPTION(rgw_keystone_api_version, OPT_INT) // Version of Keystone API to use (2 or 3) +OPTION(rgw_keystone_accepted_roles, OPT_STR) // roles required to serve requests +OPTION(rgw_keystone_accepted_admin_roles, OPT_STR) // list of roles allowing an user to gain admin privileges +OPTION(rgw_keystone_token_cache_size, OPT_INT) // max number of entries in keystone token cache +OPTION(rgw_keystone_revocation_interval, OPT_INT) // seconds between tokens revocation check +OPTION(rgw_keystone_verify_ssl, OPT_BOOL) // should we try to verify keystone's ssl +OPTION(rgw_keystone_implicit_tenants, OPT_BOOL) // create new users in their own tenants of the same name +OPTION(rgw_cross_domain_policy, OPT_STR) +OPTION(rgw_healthcheck_disabling_path, OPT_STR) // path that existence causes the healthcheck to respond 503 +OPTION(rgw_s3_auth_use_rados, OPT_BOOL) // should we try to use the internal credentials for s3? +OPTION(rgw_s3_auth_use_keystone, OPT_BOOL) // should we try to use keystone for s3? +OPTION(rgw_s3_auth_aws4_force_boto2_compat, OPT_BOOL) // force aws4 auth boto2 compatibility +OPTION(rgw_barbican_url, OPT_STR) // url for barbican server /* OpenLDAP-style LDAP parameter strings */ /* rgw_ldap_uri space-separated list of LDAP servers in URI format */ -OPTION(rgw_ldap_uri, OPT_STR, "ldaps://") +OPTION(rgw_ldap_uri, OPT_STR) /* rgw_ldap_binddn LDAP entry RGW will bind with (user match) */ -OPTION(rgw_ldap_binddn, OPT_STR, "uid=admin,cn=users,dc=example,dc=com") +OPTION(rgw_ldap_binddn, OPT_STR) /* rgw_ldap_searchdn LDAP search base (basedn) */ -OPTION(rgw_ldap_searchdn, OPT_STR, "cn=users,cn=accounts,dc=example,dc=com") +OPTION(rgw_ldap_searchdn, OPT_STR) /* rgw_ldap_dnattr LDAP attribute containing RGW user names (to form binddns)*/ -OPTION(rgw_ldap_dnattr, OPT_STR, "uid") +OPTION(rgw_ldap_dnattr, OPT_STR) /* rgw_ldap_secret file containing credentials for rgw_ldap_binddn */ -OPTION(rgw_ldap_secret, OPT_STR, "/etc/openldap/secret") +OPTION(rgw_ldap_secret, OPT_STR) /* rgw_s3_auth_use_ldap use LDAP for RGW auth? */ -OPTION(rgw_s3_auth_use_ldap, OPT_BOOL, false) +OPTION(rgw_s3_auth_use_ldap, OPT_BOOL) /* rgw_ldap_searchfilter LDAP search filter */ -OPTION(rgw_ldap_searchfilter, OPT_STR, "") - -OPTION(rgw_admin_entry, OPT_STR, "admin") // entry point for which a url is considered an admin request -OPTION(rgw_enforce_swift_acls, OPT_BOOL, true) -OPTION(rgw_swift_token_expiration, OPT_INT, 24 * 3600) // time in seconds for swift token expiration -OPTION(rgw_print_continue, OPT_BOOL, true) // enable if 100-Continue works -OPTION(rgw_print_prohibited_content_length, OPT_BOOL, false) // violate RFC 7230 and send Content-Length in 204 and 304 -OPTION(rgw_remote_addr_param, OPT_STR, "REMOTE_ADDR") // e.g. X-Forwarded-For, if you have a reverse proxy -OPTION(rgw_op_thread_timeout, OPT_INT, 10*60) -OPTION(rgw_op_thread_suicide_timeout, OPT_INT, 0) -OPTION(rgw_thread_pool_size, OPT_INT, 100) -OPTION(rgw_num_control_oids, OPT_INT, 8) -OPTION(rgw_num_rados_handles, OPT_U32, 1) -OPTION(rgw_verify_ssl, OPT_BOOL, true) // should http_client try to verify ssl when sent https request +OPTION(rgw_ldap_searchfilter, OPT_STR) + +OPTION(rgw_admin_entry, OPT_STR) // entry point for which a url is considered an admin request +OPTION(rgw_enforce_swift_acls, OPT_BOOL) +OPTION(rgw_swift_token_expiration, OPT_INT) // time in seconds for swift token expiration +OPTION(rgw_print_continue, OPT_BOOL) // enable if 100-Continue works +OPTION(rgw_print_prohibited_content_length, OPT_BOOL) // violate RFC 7230 and send Content-Length in 204 and 304 +OPTION(rgw_remote_addr_param, OPT_STR) // e.g. X-Forwarded-For, if you have a reverse proxy +OPTION(rgw_op_thread_timeout, OPT_INT) +OPTION(rgw_op_thread_suicide_timeout, OPT_INT) +OPTION(rgw_thread_pool_size, OPT_INT) +OPTION(rgw_num_control_oids, OPT_INT) +OPTION(rgw_num_rados_handles, OPT_U32) +OPTION(rgw_verify_ssl, OPT_BOOL) // should http_client try to verify ssl when sent https request /* The following are tunables for caches of RGW NFS (and other file * client) objects. @@ -1553,188 +1525,188 @@ OPTION(rgw_verify_ssl, OPT_BOOL, true) // should http_client try to verify ssl w * prime, the cache size something larger but less than 5K, the total * size of the cache is n_part * cache_size. */ -OPTION(rgw_nfs_lru_lanes, OPT_INT, 5) -OPTION(rgw_nfs_lru_lane_hiwat, OPT_INT, 911) -OPTION(rgw_nfs_fhcache_partitions, OPT_INT, 3) -OPTION(rgw_nfs_fhcache_size, OPT_INT, 2017) /* 3*2017=6051 */ -OPTION(rgw_nfs_namespace_expire_secs, OPT_INT, 300) /* namespace invalidate +OPTION(rgw_nfs_lru_lanes, OPT_INT) +OPTION(rgw_nfs_lru_lane_hiwat, OPT_INT) +OPTION(rgw_nfs_fhcache_partitions, OPT_INT) +OPTION(rgw_nfs_fhcache_size, OPT_INT) /* 3*2017=6051 */ +OPTION(rgw_nfs_namespace_expire_secs, OPT_INT) /* namespace invalidate * timer */ -OPTION(rgw_nfs_max_gc, OPT_INT, 300) /* max gc events per cycle */ -OPTION(rgw_nfs_write_completion_interval_s, OPT_INT, 10) /* stateless (V3) +OPTION(rgw_nfs_max_gc, OPT_INT) /* max gc events per cycle */ +OPTION(rgw_nfs_write_completion_interval_s, OPT_INT) /* stateless (V3) * commit * delay */ -OPTION(rgw_zone, OPT_STR, "") // zone name -OPTION(rgw_zone_root_pool, OPT_STR, ".rgw.root") // pool where zone specific info is stored -OPTION(rgw_default_zone_info_oid, OPT_STR, "default.zone") // oid where default zone info is stored -OPTION(rgw_region, OPT_STR, "") // region name -OPTION(rgw_region_root_pool, OPT_STR, ".rgw.root") // pool where all region info is stored -OPTION(rgw_default_region_info_oid, OPT_STR, "default.region") // oid where default region info is stored -OPTION(rgw_zonegroup, OPT_STR, "") // zone group name -OPTION(rgw_zonegroup_root_pool, OPT_STR, ".rgw.root") // pool where all zone group info is stored -OPTION(rgw_default_zonegroup_info_oid, OPT_STR, "default.zonegroup") // oid where default zone group info is stored -OPTION(rgw_realm, OPT_STR, "") // realm name -OPTION(rgw_realm_root_pool, OPT_STR, ".rgw.root") // pool where all realm info is stored -OPTION(rgw_default_realm_info_oid, OPT_STR, "default.realm") // oid where default realm info is stored -OPTION(rgw_period_root_pool, OPT_STR, ".rgw.root") // pool where all period info is stored -OPTION(rgw_period_latest_epoch_info_oid, OPT_STR, ".latest_epoch") // oid where current period info is stored -OPTION(rgw_log_nonexistent_bucket, OPT_BOOL, false) -OPTION(rgw_log_object_name, OPT_STR, "%Y-%m-%d-%H-%i-%n") // man date to see codes (a subset are supported) -OPTION(rgw_log_object_name_utc, OPT_BOOL, false) -OPTION(rgw_usage_max_shards, OPT_INT, 32) -OPTION(rgw_usage_max_user_shards, OPT_INT, 1) -OPTION(rgw_enable_ops_log, OPT_BOOL, false) // enable logging every rgw operation -OPTION(rgw_enable_usage_log, OPT_BOOL, false) // enable logging bandwidth usage -OPTION(rgw_ops_log_rados, OPT_BOOL, true) // whether ops log should go to rados -OPTION(rgw_ops_log_socket_path, OPT_STR, "") // path to unix domain socket where ops log can go -OPTION(rgw_ops_log_data_backlog, OPT_INT, 5 << 20) // max data backlog for ops log -OPTION(rgw_fcgi_socket_backlog, OPT_INT, 1024) // socket backlog for fcgi -OPTION(rgw_usage_log_flush_threshold, OPT_INT, 1024) // threshold to flush pending log data -OPTION(rgw_usage_log_tick_interval, OPT_INT, 30) // flush pending log data every X seconds -OPTION(rgw_intent_log_object_name, OPT_STR, "%Y-%m-%d-%i-%n") // man date to see codes (a subset are supported) -OPTION(rgw_intent_log_object_name_utc, OPT_BOOL, false) -OPTION(rgw_init_timeout, OPT_INT, 300) // time in seconds -OPTION(rgw_mime_types_file, OPT_STR, "/etc/mime.types") -OPTION(rgw_gc_max_objs, OPT_INT, 32) -OPTION(rgw_gc_obj_min_wait, OPT_INT, 2 * 3600) // wait time before object may be handled by gc -OPTION(rgw_gc_processor_max_time, OPT_INT, 3600) // total run time for a single gc processor work -OPTION(rgw_gc_processor_period, OPT_INT, 3600) // gc processor cycle time -OPTION(rgw_s3_success_create_obj_status, OPT_INT, 0) // alternative success status response for create-obj (0 - default) -OPTION(rgw_resolve_cname, OPT_BOOL, false) // should rgw try to resolve hostname as a dns cname record -OPTION(rgw_obj_stripe_size, OPT_INT, 4 << 20) -OPTION(rgw_extended_http_attrs, OPT_STR, "") // list of extended attrs that can be set on objects (beyond the default) -OPTION(rgw_exit_timeout_secs, OPT_INT, 120) // how many seconds to wait for process to go down before exiting unconditionally -OPTION(rgw_get_obj_window_size, OPT_INT, 16 << 20) // window size in bytes for single get obj request -OPTION(rgw_get_obj_max_req_size, OPT_INT, 4 << 20) // max length of a single get obj rados op -OPTION(rgw_relaxed_s3_bucket_names, OPT_BOOL, false) // enable relaxed bucket name rules for US region buckets -OPTION(rgw_defer_to_bucket_acls, OPT_STR, "") // if the user has bucket perms, use those before key perms (recurse and full_control) -OPTION(rgw_list_buckets_max_chunk, OPT_INT, 1000) // max buckets to retrieve in a single op when listing user buckets -OPTION(rgw_md_log_max_shards, OPT_INT, 64) // max shards for metadata log -OPTION(rgw_num_zone_opstate_shards, OPT_INT, 128) // max shards for keeping inter-region copy progress info -OPTION(rgw_opstate_ratelimit_sec, OPT_INT, 30) // min time between opstate updates on a single upload (0 for disabling ratelimit) -OPTION(rgw_curl_wait_timeout_ms, OPT_INT, 1000) // timeout for certain curl calls -OPTION(rgw_copy_obj_progress, OPT_BOOL, true) // should dump progress during long copy operations? -OPTION(rgw_copy_obj_progress_every_bytes, OPT_INT, 1024 * 1024) // min bytes between copy progress output -OPTION(rgw_obj_tombstone_cache_size, OPT_INT, 1000) // how many objects in tombstone cache, which is used in multi-zone sync to keep +OPTION(rgw_zone, OPT_STR) // zone name +OPTION(rgw_zone_root_pool, OPT_STR) // pool where zone specific info is stored +OPTION(rgw_default_zone_info_oid, OPT_STR) // oid where default zone info is stored +OPTION(rgw_region, OPT_STR) // region name +OPTION(rgw_region_root_pool, OPT_STR) // pool where all region info is stored +OPTION(rgw_default_region_info_oid, OPT_STR) // oid where default region info is stored +OPTION(rgw_zonegroup, OPT_STR) // zone group name +OPTION(rgw_zonegroup_root_pool, OPT_STR) // pool where all zone group info is stored +OPTION(rgw_default_zonegroup_info_oid, OPT_STR) // oid where default zone group info is stored +OPTION(rgw_realm, OPT_STR) // realm name +OPTION(rgw_realm_root_pool, OPT_STR) // pool where all realm info is stored +OPTION(rgw_default_realm_info_oid, OPT_STR) // oid where default realm info is stored +OPTION(rgw_period_root_pool, OPT_STR) // pool where all period info is stored +OPTION(rgw_period_latest_epoch_info_oid, OPT_STR) // oid where current period info is stored +OPTION(rgw_log_nonexistent_bucket, OPT_BOOL) +OPTION(rgw_log_object_name, OPT_STR) // man date to see codes (a subset are supported) +OPTION(rgw_log_object_name_utc, OPT_BOOL) +OPTION(rgw_usage_max_shards, OPT_INT) +OPTION(rgw_usage_max_user_shards, OPT_INT) +OPTION(rgw_enable_ops_log, OPT_BOOL) // enable logging every rgw operation +OPTION(rgw_enable_usage_log, OPT_BOOL) // enable logging bandwidth usage +OPTION(rgw_ops_log_rados, OPT_BOOL) // whether ops log should go to rados +OPTION(rgw_ops_log_socket_path, OPT_STR) // path to unix domain socket where ops log can go +OPTION(rgw_ops_log_data_backlog, OPT_INT) // max data backlog for ops log +OPTION(rgw_fcgi_socket_backlog, OPT_INT) // socket backlog for fcgi +OPTION(rgw_usage_log_flush_threshold, OPT_INT) // threshold to flush pending log data +OPTION(rgw_usage_log_tick_interval, OPT_INT) // flush pending log data every X seconds +OPTION(rgw_intent_log_object_name, OPT_STR) // man date to see codes (a subset are supported) +OPTION(rgw_intent_log_object_name_utc, OPT_BOOL) +OPTION(rgw_init_timeout, OPT_INT) // time in seconds +OPTION(rgw_mime_types_file, OPT_STR) +OPTION(rgw_gc_max_objs, OPT_INT) +OPTION(rgw_gc_obj_min_wait, OPT_INT) // wait time before object may be handled by gc +OPTION(rgw_gc_processor_max_time, OPT_INT) // total run time for a single gc processor work +OPTION(rgw_gc_processor_period, OPT_INT) // gc processor cycle time +OPTION(rgw_s3_success_create_obj_status, OPT_INT) // alternative success status response for create-obj (0 - default) +OPTION(rgw_resolve_cname, OPT_BOOL) // should rgw try to resolve hostname as a dns cname record +OPTION(rgw_obj_stripe_size, OPT_INT) +OPTION(rgw_extended_http_attrs, OPT_STR) // list of extended attrs that can be set on objects (beyond the default) +OPTION(rgw_exit_timeout_secs, OPT_INT) // how many seconds to wait for process to go down before exiting unconditionally +OPTION(rgw_get_obj_window_size, OPT_INT) // window size in bytes for single get obj request +OPTION(rgw_get_obj_max_req_size, OPT_INT) // max length of a single get obj rados op +OPTION(rgw_relaxed_s3_bucket_names, OPT_BOOL) // enable relaxed bucket name rules for US region buckets +OPTION(rgw_defer_to_bucket_acls, OPT_STR) // if the user has bucket perms) +OPTION(rgw_list_buckets_max_chunk, OPT_INT) // max buckets to retrieve in a single op when listing user buckets +OPTION(rgw_md_log_max_shards, OPT_INT) // max shards for metadata log +OPTION(rgw_num_zone_opstate_shards, OPT_INT) // max shards for keeping inter-region copy progress info +OPTION(rgw_opstate_ratelimit_sec, OPT_INT) // min time between opstate updates on a single upload (0 for disabling ratelimit) +OPTION(rgw_curl_wait_timeout_ms, OPT_INT) // timeout for certain curl calls +OPTION(rgw_copy_obj_progress, OPT_BOOL) // should dump progress during long copy operations? +OPTION(rgw_copy_obj_progress_every_bytes, OPT_INT) // min bytes between copy progress output +OPTION(rgw_obj_tombstone_cache_size, OPT_INT) // how many objects in tombstone cache, which is used in multi-zone sync to keep // track of removed objects' mtime -OPTION(rgw_data_log_window, OPT_INT, 30) // data log entries window (in seconds) -OPTION(rgw_data_log_changes_size, OPT_INT, 1000) // number of in-memory entries to hold for data changes log -OPTION(rgw_data_log_num_shards, OPT_INT, 128) // number of objects to keep data changes log on -OPTION(rgw_data_log_obj_prefix, OPT_STR, "data_log") // -OPTION(rgw_replica_log_obj_prefix, OPT_STR, "replica_log") // +OPTION(rgw_data_log_window, OPT_INT) // data log entries window (in seconds) +OPTION(rgw_data_log_changes_size, OPT_INT) // number of in-memory entries to hold for data changes log +OPTION(rgw_data_log_num_shards, OPT_INT) // number of objects to keep data changes log on +OPTION(rgw_data_log_obj_prefix, OPT_STR) // +OPTION(rgw_replica_log_obj_prefix, OPT_STR) // -OPTION(rgw_bucket_quota_ttl, OPT_INT, 600) // time for cached bucket stats to be cached within rgw instance -OPTION(rgw_bucket_quota_soft_threshold, OPT_DOUBLE, 0.95) // threshold from which we don't rely on cached info for quota decisions -OPTION(rgw_bucket_quota_cache_size, OPT_INT, 10000) // number of entries in bucket quota cache -OPTION(rgw_bucket_default_quota_max_objects, OPT_INT, -1) // number of objects allowed -OPTION(rgw_bucket_default_quota_max_size, OPT_LONGLONG, -1) // Max size of object in bytes +OPTION(rgw_bucket_quota_ttl, OPT_INT) // time for cached bucket stats to be cached within rgw instance +OPTION(rgw_bucket_quota_soft_threshold, OPT_DOUBLE) // threshold from which we don't rely on cached info for quota decisions +OPTION(rgw_bucket_quota_cache_size, OPT_INT) // number of entries in bucket quota cache +OPTION(rgw_bucket_default_quota_max_objects, OPT_INT) // number of objects allowed +OPTION(rgw_bucket_default_quota_max_size, OPT_LONGLONG) // Max size of object in bytes -OPTION(rgw_expose_bucket, OPT_BOOL, false) // Return the bucket name in the 'Bucket' response header +OPTION(rgw_expose_bucket, OPT_BOOL) // Return the bucket name in the 'Bucket' response header -OPTION(rgw_frontends, OPT_STR, "civetweb port=7480") // rgw front ends +OPTION(rgw_frontends, OPT_STR) // rgw front ends -OPTION(rgw_user_quota_bucket_sync_interval, OPT_INT, 180) // time period for accumulating modified buckets before syncing stats -OPTION(rgw_user_quota_sync_interval, OPT_INT, 3600 * 24) // time period for accumulating modified buckets before syncing entire user stats -OPTION(rgw_user_quota_sync_idle_users, OPT_BOOL, false) // whether stats for idle users be fully synced -OPTION(rgw_user_quota_sync_wait_time, OPT_INT, 3600 * 24) // min time between two full stats sync for non-idle users -OPTION(rgw_user_default_quota_max_objects, OPT_INT, -1) // number of objects allowed -OPTION(rgw_user_default_quota_max_size, OPT_LONGLONG, -1) // Max size of object in bytes +OPTION(rgw_user_quota_bucket_sync_interval, OPT_INT) // time period for accumulating modified buckets before syncing stats +OPTION(rgw_user_quota_sync_interval, OPT_INT) // time period for accumulating modified buckets before syncing entire user stats +OPTION(rgw_user_quota_sync_idle_users, OPT_BOOL) // whether stats for idle users be fully synced +OPTION(rgw_user_quota_sync_wait_time, OPT_INT) // min time between two full stats sync for non-idle users +OPTION(rgw_user_default_quota_max_objects, OPT_INT) // number of objects allowed +OPTION(rgw_user_default_quota_max_size, OPT_LONGLONG) // Max size of object in bytes -OPTION(rgw_multipart_min_part_size, OPT_INT, 5 * 1024 * 1024) // min size for each part (except for last one) in multipart upload -OPTION(rgw_multipart_part_upload_limit, OPT_INT, 10000) // parts limit in multipart upload +OPTION(rgw_multipart_min_part_size, OPT_INT) // min size for each part (except for last one) in multipart upload +OPTION(rgw_multipart_part_upload_limit, OPT_INT) // parts limit in multipart upload -OPTION(rgw_max_slo_entries, OPT_INT, 1000) // default number of max entries in slo +OPTION(rgw_max_slo_entries, OPT_INT) // default number of max entries in slo -OPTION(rgw_olh_pending_timeout_sec, OPT_INT, 3600) // time until we retire a pending olh change -OPTION(rgw_user_max_buckets, OPT_INT, 1000) // global option to set max buckets count for all user +OPTION(rgw_olh_pending_timeout_sec, OPT_INT) // time until we retire a pending olh change +OPTION(rgw_user_max_buckets, OPT_INT) // global option to set max buckets count for all user -OPTION(rgw_objexp_gc_interval, OPT_U32, 60 * 10) // maximum time between round of expired objects garbage collecting -OPTION(rgw_objexp_time_step, OPT_U32, 4096) // number of seconds for rounding the timestamps -OPTION(rgw_objexp_hints_num_shards, OPT_U32, 127) // maximum number of parts in which the hint index is stored in -OPTION(rgw_objexp_chunk_size, OPT_U32, 100) // maximum number of entries in a single operation when processing objexp data +OPTION(rgw_objexp_gc_interval, OPT_U32) // maximum time between round of expired objects garbage collecting +OPTION(rgw_objexp_time_step, OPT_U32) // number of seconds for rounding the timestamps +OPTION(rgw_objexp_hints_num_shards, OPT_U32) // maximum number of parts in which the hint index is stored in +OPTION(rgw_objexp_chunk_size, OPT_U32) // maximum number of entries in a single operation when processing objexp data -OPTION(rgw_enable_static_website, OPT_BOOL, false) // enable static website feature -OPTION(rgw_log_http_headers, OPT_STR, "" ) // list of HTTP headers to log when seen, ignores case (e.g., http_x_forwarded_for +OPTION(rgw_enable_static_website, OPT_BOOL) // enable static website feature +OPTION(rgw_log_http_headers, OPT_STR) // list of HTTP headers to log when seen, ignores case (e.g., http_x_forwarded_for -OPTION(rgw_num_async_rados_threads, OPT_INT, 32) // num of threads to use for async rados operations -OPTION(rgw_md_notify_interval_msec, OPT_INT, 200) // metadata changes notification interval to followers -OPTION(rgw_run_sync_thread, OPT_BOOL, true) // whether radosgw (not radosgw-admin) spawns the sync thread -OPTION(rgw_sync_lease_period, OPT_INT, 120) // time in second for lease that rgw takes on a specific log (or log shard) -OPTION(rgw_sync_log_trim_interval, OPT_INT, 1200) // time in seconds between attempts to trim sync logs +OPTION(rgw_num_async_rados_threads, OPT_INT) // num of threads to use for async rados operations +OPTION(rgw_md_notify_interval_msec, OPT_INT) // metadata changes notification interval to followers +OPTION(rgw_run_sync_thread, OPT_BOOL) // whether radosgw (not radosgw-admin) spawns the sync thread +OPTION(rgw_sync_lease_period, OPT_INT) // time in second for lease that rgw takes on a specific log (or log shard) +OPTION(rgw_sync_log_trim_interval, OPT_INT) // time in seconds between attempts to trim sync logs -OPTION(rgw_sync_data_inject_err_probability, OPT_DOUBLE, 0) // range [0, 1] -OPTION(rgw_sync_meta_inject_err_probability, OPT_DOUBLE, 0) // range [0, 1] +OPTION(rgw_sync_data_inject_err_probability, OPT_DOUBLE) // range [0, 1] +OPTION(rgw_sync_meta_inject_err_probability, OPT_DOUBLE) // range [0, 1] -OPTION(rgw_period_push_interval, OPT_DOUBLE, 2) // seconds to wait before retrying "period push" -OPTION(rgw_period_push_interval_max, OPT_DOUBLE, 30) // maximum interval after exponential backoff +OPTION(rgw_period_push_interval, OPT_DOUBLE) // seconds to wait before retrying "period push" +OPTION(rgw_period_push_interval_max, OPT_DOUBLE) // maximum interval after exponential backoff -OPTION(rgw_safe_max_objects_per_shard, OPT_INT, 100*1024) // safe max loading -OPTION(rgw_shard_warning_threshold, OPT_DOUBLE, 90) // pct of safe max +OPTION(rgw_safe_max_objects_per_shard, OPT_INT) // safe max loading +OPTION(rgw_shard_warning_threshold, OPT_DOUBLE) // pct of safe max // at which to warn -OPTION(rgw_swift_versioning_enabled, OPT_BOOL, false) // whether swift object versioning feature is enabled - -OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr") // where to load python modules from -OPTION(mgr_initial_modules, OPT_STR, "restful status") // Which modules to load -OPTION(mgr_data, OPT_STR, "/var/lib/ceph/mgr/$cluster-$id") // where to find keyring etc -OPTION(mgr_tick_period, OPT_INT, 2) // How frequently to tick -OPTION(mgr_stats_period, OPT_INT, 5) // How frequently clients send stats -OPTION(mgr_client_bytes, OPT_U64, 128*1048576) // bytes from clients -OPTION(mgr_client_messages, OPT_U64, 512) // messages from clients -OPTION(mgr_osd_bytes, OPT_U64, 512*1048576) // bytes from osds -OPTION(mgr_osd_messages, OPT_U64, 8192) // messages from osds -OPTION(mgr_mds_bytes, OPT_U64, 128*1048576) // bytes from mdss -OPTION(mgr_mds_messages, OPT_U64, 128) // messages from mdss -OPTION(mgr_mon_bytes, OPT_U64, 128*1048576) // bytes from mons -OPTION(mgr_mon_messages, OPT_U64, 128) // messages from mons - -OPTION(mgr_connect_retry_interval, OPT_DOUBLE, 1.0) -OPTION(mgr_service_beacon_grace, OPT_DOUBLE, 60.0) - -OPTION(mon_mgr_digest_period, OPT_INT, 5) // How frequently to send digests -OPTION(mon_mgr_beacon_grace, OPT_INT, 30) // How long to wait to failover -OPTION(mon_mgr_inactive_grace, OPT_INT, 60) // How long before health WARN -> ERR -OPTION(mon_mgr_mkfs_grace, OPT_INT, 60) // How long before we complain about MGR_DOWN -OPTION(rgw_crypt_require_ssl, OPT_BOOL, true) // requests including encryption key headers must be sent over ssl -OPTION(rgw_crypt_default_encryption_key, OPT_STR, "") // base64 encoded key for encryption of rgw objects -OPTION(rgw_crypt_s3_kms_encryption_keys, OPT_STR, "") // extra keys that may be used for aws:kms +OPTION(rgw_swift_versioning_enabled, OPT_BOOL) // whether swift object versioning feature is enabled + +OPTION(mgr_module_path, OPT_STR) // where to load python modules from +OPTION(mgr_initial_modules, OPT_STR) // Which modules to load +OPTION(mgr_data, OPT_STR) // where to find keyring etc +OPTION(mgr_tick_period, OPT_INT) // How frequently to tick +OPTION(mgr_stats_period, OPT_INT) // How frequently clients send stats +OPTION(mgr_client_bytes, OPT_U64) // bytes from clients +OPTION(mgr_client_messages, OPT_U64) // messages from clients +OPTION(mgr_osd_bytes, OPT_U64) // bytes from osds +OPTION(mgr_osd_messages, OPT_U64) // messages from osds +OPTION(mgr_mds_bytes, OPT_U64) // bytes from mdss +OPTION(mgr_mds_messages, OPT_U64) // messages from mdss +OPTION(mgr_mon_bytes, OPT_U64) // bytes from mons +OPTION(mgr_mon_messages, OPT_U64) // messages from mons + +OPTION(mgr_connect_retry_interval, OPT_DOUBLE) +OPTION(mgr_service_beacon_grace, OPT_DOUBLE) + +OPTION(mon_mgr_digest_period, OPT_INT) // How frequently to send digests +OPTION(mon_mgr_beacon_grace, OPT_INT) // How long to wait to failover +OPTION(mon_mgr_inactive_grace, OPT_INT) // How long before health WARN -> ERR +OPTION(mon_mgr_mkfs_grace, OPT_INT) // How long before we complain about MGR_DOWN +OPTION(rgw_crypt_require_ssl, OPT_BOOL) // requests including encryption key headers must be sent over ssl +OPTION(rgw_crypt_default_encryption_key, OPT_STR) // base64 encoded key for encryption of rgw objects +OPTION(rgw_crypt_s3_kms_encryption_keys, OPT_STR) // extra keys that may be used for aws:kms // defined as map "key1=YmluCmJvb3N0CmJvb3N0LQ== key2=b3V0CnNyYwpUZXN0aW5nCg==" -OPTION(rgw_crypt_suppress_logs, OPT_BOOL, true) // suppress logs that might print customer key -OPTION(rgw_list_bucket_min_readahead, OPT_INT, 1000) // minimum number of entries to read from rados for bucket listing +OPTION(rgw_crypt_suppress_logs, OPT_BOOL) // suppress logs that might print customer key +OPTION(rgw_list_bucket_min_readahead, OPT_INT) // minimum number of entries to read from rados for bucket listing -OPTION(rgw_rest_getusage_op_compat, OPT_BOOL, false) // dump description of total stats for s3 GetUsage API +OPTION(rgw_rest_getusage_op_compat, OPT_BOOL) // dump description of total stats for s3 GetUsage API -OPTION(mutex_perf_counter, OPT_BOOL, false) // enable/disable mutex perf counter -OPTION(throttler_perf_counter, OPT_BOOL, true) // enable/disable throttler perf counter +OPTION(mutex_perf_counter, OPT_BOOL) // enable/disable mutex perf counter +OPTION(throttler_perf_counter, OPT_BOOL) // enable/disable throttler perf counter /* The following are tunables for torrent data */ -OPTION(rgw_torrent_flag, OPT_BOOL, false) // produce torrent function flag -OPTION(rgw_torrent_tracker, OPT_STR, "") // torrent field annouce and annouce list -OPTION(rgw_torrent_createby, OPT_STR, "") // torrent field created by -OPTION(rgw_torrent_comment, OPT_STR, "") // torrent field comment -OPTION(rgw_torrent_encoding, OPT_STR, "") // torrent field encoding -OPTION(rgw_torrent_origin, OPT_STR, "") // torrent origin -OPTION(rgw_torrent_sha_unit, OPT_INT, 512*1024) // torrent field piece length 512K +OPTION(rgw_torrent_flag, OPT_BOOL) // produce torrent function flag +OPTION(rgw_torrent_tracker, OPT_STR) // torrent field annouce and annouce list +OPTION(rgw_torrent_createby, OPT_STR) // torrent field created by +OPTION(rgw_torrent_comment, OPT_STR) // torrent field comment +OPTION(rgw_torrent_encoding, OPT_STR) // torrent field encoding +OPTION(rgw_torrent_origin, OPT_STR) // torrent origin +OPTION(rgw_torrent_sha_unit, OPT_INT) // torrent field piece length 512K -OPTION(event_tracing, OPT_BOOL, false) // true if LTTng-UST tracepoints should be enabled +OPTION(event_tracing, OPT_BOOL) // true if LTTng-UST tracepoints should be enabled // This will be set to true when it is safe to start threads. // Once it is true, it will never change. -OPTION(internal_safe_to_start_threads, OPT_BOOL, false) +OPTION(internal_safe_to_start_threads, OPT_BOOL) -OPTION(debug_deliberately_leak_memory, OPT_BOOL, false) +OPTION(debug_deliberately_leak_memory, OPT_BOOL) -OPTION(rgw_swift_custom_header, OPT_STR, "") // option to enable swift custom headers +OPTION(rgw_swift_custom_header, OPT_STR) // option to enable swift custom headers -OPTION(rgw_swift_need_stats, OPT_BOOL, true) // option to enable stats on bucket listing for swift +OPTION(rgw_swift_need_stats, OPT_BOOL) // option to enable stats on bucket listing for swift /* resharding tunables */ -OPTION(rgw_reshard_num_logs, OPT_INT, 16) -OPTION(rgw_reshard_bucket_lock_duration, OPT_INT, 120) // duration of lock on bucket obj during resharding -OPTION(rgw_dynamic_resharding, OPT_BOOL, true) -OPTION(rgw_max_objs_per_shard, OPT_INT, 100000) -OPTION(rgw_reshard_thread_interval, OPT_U32, 60 * 10) // maximum time between rounds of reshard thread processing +OPTION(rgw_reshard_num_logs, OPT_INT) +OPTION(rgw_reshard_bucket_lock_duration, OPT_INT) // duration of lock on bucket obj during resharding +OPTION(rgw_dynamic_resharding, OPT_BOOL) +OPTION(rgw_max_objs_per_shard, OPT_INT) +OPTION(rgw_reshard_thread_interval, OPT_U32) // maximum time between rounds of reshard thread processing -OPTION(rgw_acl_grants_max_num, OPT_INT, 100) // According to AWS S3(http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html), An ACL can have up to 100 grants. +OPTION(rgw_acl_grants_max_num, OPT_INT) // According to AWS S3(http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html), An ACL can have up to 100 grants. -- 2.39.5