From a7965bc9d9f00c691161c78daa6638b85d3d3fc2 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 28 Oct 2014 12:28:30 +0100 Subject: [PATCH] Improve parameters for sshfs. --- lib/qasim/map.rb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/qasim/map.rb b/lib/qasim/map.rb index 4d6c19c..bb4df14 100644 --- a/lib/qasim/map.rb +++ b/lib/qasim/map.rb @@ -171,12 +171,17 @@ module Qasim "-o","idmap=user" , "-o","uid=%s" % Process.uid, "-o","gid=%s" % Process.gid, - "-o","reconnect", + "-o","reconnect", # auto-reconnection "-o","workaround=all", - "-o","cache_timeout=240", - "-o","ServerAliveInterval=15", + "-o","cache_timeout=900", # 15 min cache for files + "-o","cache_stat_timeout=1800", # 30 min cache for directories + "-o","cache_link_timout=1800", # 30 min cache for links + "-o","attr_timeout=1800", # 30 min attr cache + "-o","entry_timeout=1800", # 30 min entry cache + "-o","ServerAliveInterval=15", # prevent I/O hang + "-o","ServerAliveCountMax=3", # prevent I/O hang "-o","no_readahead", - "-o","Ciphers=arcfour", + #"-o","Ciphers=arcfour", # force cypher "-o","Port=%s" % @port, "%s@%s:%s" % [@user,@host,remotepath], localpath ]