Connection Timeouts
Equalizer Installation and Administration Guide
263
The Once Only Option and HTTP / HTTPS Timeouts
The previous sections describe how the connection timeouts work when the
once only
flag is
disabled
on a cluster;
that is, when Equalizer is examining
every
set of headers received on a connection. The
once only
option, when
enabled, specifies that Equalizer will examine only the
first
set of headers received on a connection. This has the
following effects on connection timeouts:
•
If you have
once only
enabled
, as soon as the initial transaction (client request and server response) on a
connection completes, the connection goes into “streaming” mode and the
client timeout
is no longer used
for this connection. Equalizer does not parse any additional client requests received on the connection. The
server timeout
is used for the remainder of the connection, and is reset whenever data is received from
either side of the connection.
•
If you have
once only
disabled
as described in the previous sections, and multiple requests are being sent
on the same connection, the
client timeout
starts counting down again as soon as a new request is received
from the client.
Layer 4 Connection Timeouts
Connections to Layer 4 clusters are received by Equalizer and forwarded with little processing. Equalizer simply
rewrites the source and/or the destination IP addresses, as appropriate for the cluster, and sends the packet to the
server specified by the cluster’s load balancing policy. For Layer 4 TCP clusters, a
connection record
is kept for
each connection so that address translation can be done on the packets going between the servers and clients. The
Layer 4 connection timeouts specify how long a connection record is kept by Equalizer.
Layer 4 TCP clusters use the
idle timeout
and
stale timeout
parameters. The
idle timeout
can be set at the global
and cluster levels, while
stale timeout
can be set at the global level only. The parameters affect how Equalizer
manages Layer 4 connection records:
•
Connection records need to be removed in cases where the connection is not closed by the client or server,
and is left idle. If no data has been received on a connection from either the client or the server after the
time period specified by the
idle timeout
has elapsed, then Equalizer removes the connection record for
that connection. Any data received from either client or server resets the idle timer.
Note that when using Direct Server Return (DSR), the time that a connection record is maintained is
determined by adding the
idle timeout
for the cluster to the
sticky time
(see “sticky time” on page 125).
This additional time is necessary when using DSR, since no server responses are routed through Equalizer
(and therefore cannot restart the
idle timeout
to keep the connection open). For more information on DSR,
see “Configuring Direct Server Return (DSR)” on page 177.
•
In other cases, a connection may be initiated but never established, so the connection record goes “stale”
and must be removed. If a client fails to complete the TCP connection termination handshake sequence or
sends a SYN packet but does not respond to the server’s SYN/ACK, Equalizer marks the connection as
incomplete
. The
stale timeout
is the length of time that a connection record for an incomplete connection is
maintained.
When Equalizer reclaims a connection, it sends a TCP RST (reset) packet to the server, enabling the server to free
any resources associated with the connection. (Equalizer does
not
send a TCP RST to the client when reclaiming a
connection.)
Reducing the
stale timeout
can be an effective way to counter the effects of SYN flood Denial of Service attacks on
server resources. A
stale timeout
of 10.0 (see table below) would be an appropriate value for a site under SYN
flood attack
.
Parameter
Minimum
Default
Maximum
Units
idle timeout
0
0
2147483647.0
seconds
stale timeout
1.0
15.0
120.0
seconds
Содержание E350GX
Страница 18: ...Chapter Preface 18 Equalizer Installation and Administration Guide ...
Страница 38: ...Chapter 1 Equalizer Overview 38 Equalizer Installation and Administration Guide ...
Страница 50: ...Chapter 2 Installing and Configuring Equalizer Hardware 50 Equalizer Installation and Administration Guide ...
Страница 62: ...Chapter 3 Using the Administration Interface 62 Equalizer Installation and Administration Guide ...
Страница 80: ...Chapter 4 Equalizer Network Configuration 80 Equalizer Installation and Administration Guide ...
Страница 110: ...Chapter 5 Configuring Equalizer Operation 110 Equalizer Installation and Administration Guide ...
Страница 208: ...Chapter 7 Monitoring Equalizer Operation 208 Equalizer Installation and Administration Guide ...
Страница 240: ...Chapter 8 Using Match Rules 238 Equalizer Installation and Administration Guide ...
Страница 258: ...Chapter 9 Administering GeoClusters 254 Equalizer Installation and Administration Guide Envoy Configuration Worksheet ...
Страница 262: ...Appendix A Server Agent Probes 258 Equalizer Installation and Administration Guide ...
Страница 274: ...Appendix B Timeout Configuration 270 Equalizer Installation and Administration Guide ...
Страница 280: ...Appendix D Regular Expression Format 276 Equalizer Installation and Administration Guide ...
Страница 296: ...Appendix E Using Certificates in HTTPS Clusters 292 Equalizer Installation and Administration Guide ...
Страница 310: ...Appendix F Equalizer VLB 306 Equalizer Installation and Administration Guide ...
Страница 318: ...Appendix G Troubleshooting 314 Equalizer Installation and Administration Guide ...