Skip to content

Commit d78f02d

Browse files
committed
MDEV-17571 Make systemd timeout behavior more compatible with long Galera SSTs
Set an explicit start and stop timeout of 900 seconds for the MariaDB Server systemd service
1 parent 3efbb5a commit d78f02d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

support-files/mariadb.service.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ UMask=007
120120
# LOAD DATA INFILE you can enable PrivateTmp=true for a little more security.
121121
PrivateTmp=false
122122

123+
# Set an explicit Start and Stop timeout of 900 seconds (15 minutes!)
124+
# this is the same value as used in SysV init scripts in the past
125+
# Galera might need a longer timeout, check the KB if you want to change this:
126+
# https://mariadb.com/kb/en/library/systemd/#configuring-the-systemd-service-timeout
127+
TimeoutStartSec=900
128+
TimeoutStopSec=900
129+
123130
##
124131
## Options previously available to be set via [mysqld_safe]
125132
## that now needs to be set by systemd config files as mysqld_safe

support-files/mariadb@.service.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ UMask=007
141141
# LOAD DATA INFILE you can enable PrivateTmp=true for a little more security.
142142
PrivateTmp=false
143143

144+
# Set an explicit Start and Stop timeout of 900 seconds (15 minutes!)
145+
# this is the same value as used in SysV init scripts in the past
146+
# if you need a longer timeout, check the KB:
147+
# https://mariadb.com/kb/en/library/systemd/#configuring-the-systemd-service-timeout
148+
TimeoutStartSec=900
149+
TimeoutStopSec=900
150+
144151
##
145152
## Options previously available to be set via [mysqld_safe]
146153
## that now needs to be set by systemd config files as mysqld_safe

0 commit comments

Comments
 (0)