Commit 10cd776d authored by Romain Courteaud's avatar Romain Courteaud 🐸

Trigger logrotation and backup later in the night.

Prevent doing logrotate and backup at the same moment or it will generate
process management conflict
parent c8a7c919
......@@ -107,5 +107,5 @@ log = $${basedirectory:log}/cron.log
<= cron
recipe = slapos.cookbook:cron.d
name = logrotate
frequency = 0 0 * * *
frequency = 45 1 * * *
command = $${logrotate:wrapper}
......@@ -156,14 +156,14 @@ log = $${basedirectory:log}/cron.log
<= cron
recipe = slapos.cookbook:cron.d
name = logrotate
frequency = 0 0 * * *
frequency = 45 1 * * *
command = $${logrotate:wrapper}
[cron-entry-mysqldump]
<= cron
recipe = slapos.cookbook:cron.d
name = mysqldump
frequency = 0 0 * * *
frequency = 0 2 * * *
command = ${mysql-tritonn-5.0:location}/bin/mysqldump -u root -S $${mariadb-instance:socket} --single-transaction --no-autocommit --opt $${mariadb-instance:database} | ${gzip:location}/bin/gzip > $${directory:mariadb-dump}/$${mariadb-instance:database}.sql.gz
[binary-link]
......
......@@ -23,7 +23,7 @@ url = mysql://$${mariadb-instance:user}:$${mariadb-instance:password}@$${mariadb
<= cron
recipe = slapos.cookbook:cron.d
name = mariadb-backup
frequency = 0 0 * * *
frequency = 0 2 * * *
command = $${mariadb-instance:backup-script}
[mariadb-instance]
......@@ -107,7 +107,7 @@ compression = true
<= cron
recipe = slapos.cookbook:cron.d
name = backup
frequency = 0 * * * *
frequency = 0 2 * * *
command = $${mydumper:wrapper}
[mydumper-import]
......@@ -158,7 +158,7 @@ log = $${basedirectory:log}/cron.log
<= cron
recipe = slapos.cookbook:cron.d
name = logrotate
frequency = 0 0 * * *
frequency = 45 1 * * *
command = $${logrotate:wrapper}
[binary-link]
......
......@@ -109,7 +109,7 @@ state-file = $${rootdirectory:srv}/logrotate.status
recipe = slapos.cookbook:logrotate.d
name = zope
log = $${zope-instance:event-log} $${zope-instance:z2-log}
frequency = daily
frequency = 45 1 * * *
rotate-num = 30
post = ${buildout:bin-directory}/killpidfromfile $${zope-instance:pid-file} SIGUSR2
sharedscripts = true
......@@ -121,7 +121,7 @@ create = true
recipe = slapos.cookbook:logrotate.d
name = zope
log = $${apache-zope-backend-instance:error-log} $${apache-zope-backend-instance:access-log}
frequency = daily
frequency = 45 1 * * *
rotate-num = 30
post = ${buildout:bin-directory}/killpidfromfile $${apache-zope-backend-instance:pid-file} SIGUSR1
sharedscripts = true
......@@ -146,7 +146,7 @@ log = $${basedirectory:log}/cron.log
<= cron
recipe = slapos.cookbook:cron.d
name = logrotate
frequency = 0 0 * * *
frequency = 45 1 * * *
command = $${logrotate:wrapper}
[binary-link]
......
......@@ -48,7 +48,7 @@ repozo-wrapper = $${buildout:bin-directory}/tidstorage-repozo
<= cron
recipe = slapos.cookbook:cron.d
name = tidstorage
frequency = 0 0 * * *
frequency = 0 2 * * *
command = $${tidstorage:repozo-wrapper}
[logrotate-entry-tidstorage]
......@@ -84,7 +84,7 @@ log = $${basedirectory:log}/cron.log
<= cron
recipe = slapos.cookbook:cron.d
name = logrotate
frequency = 0 0 * * *
frequency = 45 1 * * *
command = $${logrotate:wrapper}
# rest of parts are candidates for some generic stuff
......
......@@ -62,14 +62,14 @@ command = grep parts ${buildout:develop-eggs-directory}/z2loganalyser.egg-link
[template-mariadb]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-mariadb.cfg
md5sum = 1927f2c38cffc72871f8ef97682439b3
md5sum = 7d5c5e546761eaae2067ad1af850f19b
output = ${buildout:directory}/template-mariadb.cfg
mode = 0644
[template-mariadb-prod]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-mariadb-prod.cfg
md5sum = 41230d9259dd3ec62d33e6beabcd7cfa
md5sum = 40742a770b32a78854ff96145ae857ba
output = ${buildout:directory}/template-mariadb-prod.cfg
mode = 0644
......@@ -83,7 +83,7 @@ mode = 0644
[template-zope]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-zope.cfg
md5sum = 7c2d67cdcd49db3ce866d501a466f9c7
md5sum = 5f9143d4092720980e5e9aac223ed0c9
output = ${buildout:directory}/template-zope.cfg
mode = 0644
......@@ -104,7 +104,7 @@ mode = 0644
[template-kumofs]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kumofs.cfg
md5sum = 9746823ccbbedf42b3e759c3e7150252
md5sum = 501188a3ff51b19a89283411be630948
output = ${buildout:directory}/template-kumofs.cfg
mode = 0644
......@@ -146,7 +146,7 @@ mode = 0644
[template-snippet-master]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/snippet-master.cfg
md5sum = 410d8363f543cfa6f3d0f860a142b737
md5sum = 9cbe705f6629a35fdff9bef89ebba438
output = ${buildout:directory}/template-snippet-master.cfg
mode = 0644
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment