cephfs:
max_mds: 2
+ To change the mdsmap's default session_timeout (60 seconds), use::
+
+ tasks:
+ - ceph:
+ cephfs:
+ session_timeout: 300
+
Note, this will cause the task to check the /scratch_devs file on each node
for available devices. If no such file is found, /dev/sdb will be used.
def set_max_mds(self, max_mds):
self.set_var("max_mds", "%d" % max_mds)
+ def set_session_timeout(self, timeout):
+ self.set_var("session_timeout", "%d" % timeout)
+
def set_allow_standby_replay(self, yes):
self.set_var("allow_standby_replay", yes)
if max_mds > 1:
self.set_max_mds(max_mds)
+ # If absent will use the default value (60 seconds)
+ session_timeout = self.fs_config.get('session_timeout', 60)
+ if session_timeout != 60:
+ self.set_session_timeout(session_timeout)
+
self.getinfo(refresh = True)
def destroy(self, reset_obj_attrs=True):