From b9afe470990082cdd91c481394f4e264dbc5a63b Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Tue, 25 Sep 2018 10:01:51 -0700 Subject: Limit session relogin attempts using config value. Add new configuration value session.relogin_max, which will default to 32. The limits the session-recovery relogin attempts to about 64 seconds (2 seconds between attempts) instead of an infinite number of retries. --- etc/iscsid.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc') diff --git a/etc/iscsid.conf b/etc/iscsid.conf index fee1148..dec3857 100644 --- a/etc/iscsid.conf +++ b/etc/iscsid.conf @@ -293,6 +293,12 @@ discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768 # appropriate number of sessions is created. node.session.nr_sessions = 1 +# When iscsid starts up it recovers existing sesssions, if possible. +# If the target has gone away when this occurs, this value +# limits the number of retries to re-login. +# Retries are done every 2 seconds. +node.session.reopen_max = 32 + #************ # Workarounds #************ -- cgit v1.2.1