Commit Graph

26 Commits

Author SHA1 Message Date
b560a67e54 Merge branch '2.2' into 2.3 2019-02-07 10:45:57 +02:00
abaa228987 Add extra definitions to debug build service files
The unlimited core dumps are now only enabled for debug builds.
2019-01-31 13:14:46 +02:00
f0abe9cbdc add /bin/sh before prlimit command in service start 2019-01-30 23:31:45 +02:00
45f85a2740 add prlimit command to service start 2019-01-30 18:45:24 +02:00
aab7ab7dee add core dump configiration line to maxscale.service 2019-01-29 12:06:33 +02:00
5420bf618d Allow systemd notifications from all member processes
By default the notifications are only allowed from the main process or any
child process that systemd finds. When the main process has not yet been
detected by systemd but MaxScale sends a notification, an error is logged
into the system journal. To prevent this, notifications from all member
processes should be allowed.
2019-01-03 09:37:59 +02:00
dd27fe0c04 Enable the watchdog
As the watchdog related problems have now been dealt with, it is
safe to have it enabled by default.
2018-11-21 15:33:14 +02:00
e3ad827288 Do not enable the watchdog by default
Any administrative operation, performed using maxadmin or maxctrl,
that takes longer than the watchdog timeout will cause MaxScale to
be killed and restarted by the watchdog.
2018-11-20 10:43:59 +02:00
77f8a3b71b MXS-2057 System test 2018-11-14 16:20:42 +02:00
a84748e67f MXS-2057 Add documentation 2018-11-14 16:20:42 +02:00
32fbd59f85 Add ASAN options into systemd service files
By default ASAN only reports the errors and doesn't cause the program to
crash. By forcing a SIGABRT, the process will generate a core dump which
causes the test to fail.

Although the act of placing environment variables inside the systemd
service file might seem intrusive, they have no effect on non-ASAN
builds. This appears to be the most convenient and straightforward way of
changing ASAN behavior for testing.
2018-09-26 11:08:23 +03:00
20bfe16d11 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.
2017-09-21 09:36:50 +03:00
282ed9f8c2 Start MaxScale as the maxscale user with systemd
Systemd allows MaxScale to start as the 'maxscale' user and it should be
done to completely prevent root access for the maxscale process.
2016-10-29 11:03:15 +03:00
8be833640f Change restart type to on-abort
MaxScale should only restart if an abort is detects, i.e. MaxScale
crashes.
2016-09-12 09:35:11 +03:00
4a95439a8d Don't restart even on abnormal failures
If systemd restarts MaxScale when an abnormal exit is detected, it is
likely to happen again. This leads into a loop which causes multiple
maxscale processes on the same machine. One example of this behavior is
when systemd times MaxScale out when it is starting.
2016-09-09 16:38:27 +03:00
d5d1089d89 MXS-574: Fixed systemd script
The TimeoutStartSec is now properly capitalized.
2016-02-11 11:04:38 +02:00
4b7cec504a Changed maxscale.service restart values
The maxscale service will be restarted only if the process is down because
a signal was caught or the process times out. If the process would be restarted
when it exits with a non-zero value, this would lead to infinite loops when
there is a configuration error.
2015-12-17 10:23:47 +02:00
6ea209d13a Added a timeout for the systemd script
The fact that the maxscale process exits only after all services have been
started means that systemd will kill the maxscale process if starting the
services takes too long. Since the user authentication data is loaded on
startup and can take up a long time, there needs to be a longer than
default timeout for systems that use systemd.
2015-11-26 09:28:04 +02:00
89d8e452c5 Use install binary instead of mkdir/chown 2015-07-30 12:31:49 +02:00
c6cd8cfac9 Increase file limit to 64K based on consultant feedback 2015-07-29 18:18:13 +02:00
9a6553972a Set a higher default open file limit 2015-07-29 17:54:12 +02:00
4550a95a2e Create PID dir on service start 2015-07-29 17:53:41 +02:00
2ea7ff61a2 Fixed init.d and systemd scripts. 2015-06-16 14:20:53 +03:00
f4dee6d584 Fixed systemd service file not starting with the maxscale user. 2015-05-28 12:11:49 +03:00
2b457bf372 Updated init.d and systemd scripts. 2015-05-11 06:19:06 +03:00
71531cde3e Updated package installation and started documentation update. 2015-04-28 11:09:49 +03:00