diff options
author | Lee Duncan <lduncan@suse.com> | 2018-09-25 10:01:51 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2018-09-26 10:55:48 -0700 |
commit | b9afe470990082cdd91c481394f4e264dbc5a63b (patch) | |
tree | 037b406e78716ce51be9d0c9fec279585234f31f /etc | |
parent | ae0b2ceb620e2bf527c06d21c110791d1e0e8bf4 (diff) | |
download | open-iscsi-b9afe470990082cdd91c481394f4e264dbc5a63b.tar.gz |
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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/iscsid.conf | 6 |
1 files changed, 6 insertions, 0 deletions
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 #************ |