uCosminexus Application Server, Expansion Guide

[Contents][Index][Back][Next]

7.2.2 Setting up a timeout

To use the EADs session failover functionality, you need to perform tuning of the entire system including the timeout to be set for EADs clients and EADs servers. This section describes the points for which a timeout can be set in a system on which the EADs session failover functionality is used. It also describes the guidelines for setting up a timeout.

For details on performance tuning of a system, see 7. Memory tuning of JavaVM or 8. Performance tuning (J2EE application execution infrastructure) in the uCosminexus Application Server System Design Guide.

Organization of this subsection
(1) Points for which a timeout can be set
(2) Timeout settings recommended for the EADs session failover functionality

(1) Points for which a timeout can be set

The following figure describes the points for which a timeout can be set in a system on which the EADs session failover functionality is used:

Figure 7-2 Points for which a timeout can be set (inheriting a session)

[Figure]

Table 7-5 Timeout contents to be set in setting points

Setting point Timeout setting location Timeout contents Operation when a timeout occurs
1 Redirector Timeout for the time from the moment redirector sends a request to a J2EE server until it is received. Execution threads and connections of the Web server are released and an error is reported to the Web browser. However, processing on the J2EE server continues.
2 Web application Timeout for the time from the moment a method in a servlet or a JSP is invoked until it ends. Methods running on the J2EE server are forcefully canceled. If cancellation is successful, an exception is thrown to the servlet or the JSP. However, EADs client processing is not targeted for method cancellation.
3 EADs client Specifying in the webserver.eadssfo.eads.connection.timeout property (Easy Setup definition file) Timeout for the time of confirming connection to the EADs server. The EADs client throws an exception to the EADs session failover functionality.
4 Specifying in the webserver.eadssfo.eads.connection.timeout property (Easy Setup definition file)# Timeout for the time from the moment a request is sent to the EADs server until it is received. The EADs client throws an exception to the EADs session failover functionality. However, processing on the EADs server continues.
5 EADs server Specifying in the eads.connection.timeout parameter (EADs server definition file) Timeout for the time of confirming connection to other EADs servers existing in the EADs cluster. An exception is thrown to the EADs session failover functionality through the EADs client.
6 Specifying in the eads.connection.timeout parameter# (EADs server definition file) Timeout for the time from the moment a request is sent to other EADs server existing in the EADs cluster until it is received. An exception is thrown to the EADs session failover functionality through the EADs client. However, processing on the other EADs server continues.

# Set a timeout for the time of confirming connection and a timeout for the time from the moment a request is sent until it is received, in the same property or parameter. However, separate timeouts are set for the time of confirming connection and for the time from the moment a request is sent until it is received. A timeout is not set for the total time of confirming connection and from the moment a request is sent until it is received.


(2) Timeout settings recommended for the EADs session failover functionality

We recommend that you set timeout values depending on your closeness to the invocation source (Web browser side) (the closer you are, the higher the value), in the same way as when you do not use the EADs session failover functionality. The following table describes the timeout settings recommended in the case of Figure 7-2:

Table 7-6 Recommended timeout settings

Setting point Recommended timeout setting Impact if you do not set the recommended timeout setting
1 A value larger than point 2 + (point 3 + point 4) [Figure] 2 If you specify a value that is smaller than the recommended value, a timeout might occur on redirector before processing of the request. This is stored in the J2EE server queue, and ends.
2 A value smaller than point 1, and larger than point 3 + point 4 If you specify a value that is smaller than the recommended value, the method might be canceled before processing of the servlet or JSP ends.
3 - 6 # --

Legend:
--: Not applicable

#
For the recommended timeout settings for setting points 3 to 6, see the Elastic Application Data store User Guide.