Remove unnecessary sleeps
Every time MaxScale was restarted, the test waited for a total of 25 seconds. As MaxScale should start before the command returns, the sleep is not necessary. Added StartLimitBurst=0 to the systemd service file to allow rapid restarts of MaxScale.
This commit is contained in:
parent
17f6edbfc0
commit
20bfe16d11
@ -19,6 +19,7 @@ Group=maxscale
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/@MAXSCALE_BINDIR@/maxscale
|
||||
TimeoutStartSec=120
|
||||
LimitNOFILE=65535
|
||||
StartLimitBurst=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -701,19 +701,15 @@ int TestConnections::close_maxscale_connections()
|
||||
|
||||
int TestConnections::restart_maxscale()
|
||||
{
|
||||
sleep(15);
|
||||
int res = ssh_maxscale(true, "service maxscale restart");
|
||||
fflush(stdout);
|
||||
sleep(10);
|
||||
return res;
|
||||
}
|
||||
|
||||
int TestConnections::start_maxscale()
|
||||
{
|
||||
sleep(15);
|
||||
int res = ssh_maxscale(true, "service maxscale start");
|
||||
fflush(stdout);
|
||||
sleep(10);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user