When you create an engine, the default settings of engine parameters are used. The parameters include TickTime, InitLimit, SyncLimit, MaxClientCnxns, OpenSuperAcl, Jute.Maxbuffer, and SessionTimeout. If you have special requirements, you can modify the parameter settings to improve the engine performance. This topic describes how to configure ZooKeeper engine parameters in the Microservices Engine (MSE) console.
MaxSessionTimeout parameters, take note of the following points:
If you want to configure the session timeout period for a client, we recommend that you upgrade the open source ZooKeeper version to the MSE ZooKeeper version that supports timeout settings. For more information, see Features of ZooKeeper editions.
For a ZooKeeper engine, you can configure the
MaxSessionTimeoutparameters to specify the timeout period of a client. For the server, if the client timeout period is less than the value of
MinSessionTimeout, the client timeout period is forcefully set to the value of
MinSessionTimeout. If the client timeout period is greater than the value of
MaxSessionTimeout, the client timeout period is forcefully set to the value of
MaxSessionTimeout. This ensures that the valid range of the timeout period is [MinSessionTimeout, MaxSessionTimeout].
For example, for a ZooKeeper engine,
MinSessionTimeoutis set to 3000 ms and
MaxSessionTimeoutis set to 5000 ms. For a client, the minimum session timeout period is 1,000 ms and the maximum session timeout period is 6,000 ms. After the negotiation between the server and client, the minimum session timeout period is finally set to 3,000 ms and the maximum session timeout period is finally set to 5,000 ms.
When you use a ZooKeeper engine, you can configure
MaxSessionTimeoutbased on your business requirements. You cannot set the two parameters to excessively small values. If you set the two parameters to excessively small values, the client may frequently detect connection timeouts between the client and server. As a result, the session is disconnected, and the system fails. We recommend that you use the default values of the two parameters.
Log on to the MSE console and select a region in the top navigation bar.
In the left-side navigation pane, choose .
On the Instances page, click the name of the instance.
In the left-side navigation pane, click Parameter Settings. On the page that appears, click Edit in the upper-left corner. Then, configure the parameters.
Click Save and Restart Instance.
Go back to the Parameter Settings page and check whether the parameter settings are changed.