To be careful to enable this because it may crash the old MDSes while
upgrading.
Fixes: https://tracker.ceph.com/issues/54411
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
beb9f1648101bd18f3619c9fc7e972fab34dfc85)
Conflicts:
src/common/options/mds-client.yaml.in
fuse_default_permissions = cct->_conf.get_val<bool>(
"fuse_default_permissions");
+ _collect_and_send_global_metrics = cct->_conf.get_val<bool>(
+ "client_collect_and_send_global_metrics");
+
if (cct->_conf->client_acl_type == "posix_acl")
acl_type = POSIX_ACL;
if (changed.count("client_oc_max_dirty_age")) {
objectcacher->set_max_dirty_age(cct->_conf->client_oc_max_dirty_age);
}
+ if (changed.count("client_collect_and_send_global_metrics")) {
+ _collect_and_send_global_metrics = cct->_conf.get_val<bool>(
+ "client_collect_and_send_global_metrics");
+ }
}
void intrusive_ptr_add_ref(Inode *in)
std::unique_ptr<MDSMap> mdsmap;
bool fuse_default_permissions;
+ bool _collect_and_send_global_metrics;
protected:
/* Flags for check_caps() */
.set_min(0)
.set_description("timeout for shutting down CephFS")
.set_long_description("Timeout for shutting down CephFS via unmount or shutdown.")
+ .add_tag("client"),
+
+ Option("client_collect_and_send_global_metrics", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
+ .set_flag(Option::FLAG_RUNTIME)
+ .set_default(false)
+ .set_description("to enable and force collecting and sending the global metrics to MDS")
+ .set_long_description("To be careful for this, when connecting to some old ceph "
+ "clusters it may crash the MDS daemons while upgrading")
.add_tag("client")
});
}