[MDEV-17934] Make systemd timeout behavior more compatible with longer Galera recovery times Created: 2018-12-07 Updated: 2019-12-05 Resolved: 2019-12-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Packaging, wsrep |
| Affects Version/s: | 10.1, 10.2.16, 10.2.18, 10.2, 10.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Rasmus Johansson (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | galera, systemd, wsrep | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
When Galera is enabled, MariaDB's systemd service executes the "galera_recovery" script as an ExecStartPre operation. See the following: The MariaDB systemd service has a default TimeoutStartSec value of 90 seconds, so if this ExecStartPre step takes longer than that, then this can cause startup to fail. For example, see the following failure from a syslog:
galera_recovery has to perform server startup, so this step can take a while, especially if the server previously crashed, and it has to perform crash recovery. However, it looks like systemd timeouts should have been extended during server startup as part of See also |
| Comments |
| Comment by Geoff Montee (Inactive) [ 2018-12-07 ] | |||||||||||||||||||||||||||||||||||||||||||
|
I just noticed that EXTEND_TIMEOUT_USEC was added in systemd version 236: https://lists.freedesktop.org/archives/systemd-devel/2017-December/039996.html The most common OS that we tend to see for MariaDB with Galera is RHEL 7, and that still has systemd version 219:
So even if | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2018-12-07 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Since ratzpo previously assigned | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Axel Schwenke [ 2019-12-05 ] | |||||||||||||||||||||||||||||||||||||||||||
|
This is a duplicate of |