MXS-2040 Increase default monitor timeouts
All three timeouts are now three seconds. This should reduce the amount of timeout errors users get during failover/switchover.
This commit is contained in:
parent
ad71655a36
commit
c04073a96c
@ -30,7 +30,9 @@ monitor_interval=2500
|
||||
|
||||
### `backend_connect_timeout`
|
||||
|
||||
This parameter controls the timeout for connecting to a monitored server. It is in seconds and the minimum value is 1 second. The default value for this parameter is 3 seconds.
|
||||
This parameter controls the timeout for connecting to a monitored server. It is
|
||||
in seconds and the minimum value is 1 second. The default value for this
|
||||
parameter is 3 seconds.
|
||||
|
||||
```
|
||||
backend_connect_timeout=6
|
||||
@ -38,7 +40,9 @@ backend_connect_timeout=6
|
||||
|
||||
### `backend_write_timeout`
|
||||
|
||||
This parameter controls the timeout for writing to a monitored server. It is in seconds and the minimum value is 1 second. The default value for this parameter is 2 seconds.
|
||||
This parameter controls the timeout for writing to a monitored server. It is in
|
||||
seconds and the minimum value is 1 second. The default value for this parameter
|
||||
is 3 seconds.
|
||||
|
||||
```
|
||||
backend_write_timeout=4
|
||||
@ -46,7 +50,9 @@ backend_write_timeout=4
|
||||
|
||||
### `backend_read_timeout`
|
||||
|
||||
This parameter controls the timeout for reading from a monitored server. It is in seconds and the minimum value is 1 second. The default value for this parameter is 1 seconds.
|
||||
This parameter controls the timeout for reading from a monitored server. It is
|
||||
in seconds and the minimum value is 1 second. The default value for this
|
||||
parameter is 3 seconds.
|
||||
|
||||
```
|
||||
backend_read_timeout=2
|
||||
|
@ -24,8 +24,8 @@ MXS_BEGIN_DECLS
|
||||
#define MON_ARG_MAX 8192
|
||||
|
||||
#define DEFAULT_CONNECT_TIMEOUT 3
|
||||
#define DEFAULT_READ_TIMEOUT 1
|
||||
#define DEFAULT_WRITE_TIMEOUT 2
|
||||
#define DEFAULT_READ_TIMEOUT 3
|
||||
#define DEFAULT_WRITE_TIMEOUT 3
|
||||
#define DEFAULT_CONNECTION_ATTEMPTS 1
|
||||
|
||||
#define DEFAULT_MONITOR_INTERVAL 2000 // in milliseconds
|
||||
|
Loading…
x
Reference in New Issue
Block a user