From 6d77d85ede621570dfc2b9e1cb91dec3fbbb0a80 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 22 Oct 2014 10:32:52 +1100 Subject: [PATCH] Rotate out nodepool logs every 8-hours Individual nodepool .log files have now grown to being > 250mb. This is a bit much to download and go through when you're trying to debug an issue with a particular image. 8-hour rotations seems a bit more useful than 24-hour ... and perhaps even that is a bit long. I don't think we need to extended the number of rotations, I'm not sure really old logs are that helpful. Change-Id: Ia788db809afe470bb9241f17411e4fa97d09ea11 --- modules/nodepool/templates/nodepool.logging.conf.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nodepool/templates/nodepool.logging.conf.erb b/modules/nodepool/templates/nodepool.logging.conf.erb index b626331044..e14c553fe1 100644 --- a/modules/nodepool/templates/nodepool.logging.conf.erb +++ b/modules/nodepool/templates/nodepool.logging.conf.erb @@ -37,19 +37,19 @@ args=(sys.stdout,) level=DEBUG class=logging.handlers.TimedRotatingFileHandler formatter=simple -args=('/var/log/nodepool/debug.log', 'midnight', 1, 30,) +args=('/var/log/nodepool/debug.log', 'H', 8, 30,) [handler_normal] level=INFO class=logging.handlers.TimedRotatingFileHandler formatter=simple -args=('/var/log/nodepool/nodepool.log', 'midnight', 1, 30,) +args=('/var/log/nodepool/nodepool.log', 'H', 8, 30,) [handler_image] level=INFO class=logging.handlers.TimedRotatingFileHandler formatter=simple -args=('<%= @image_log_document_root %>/image.log', 'midnight', 1, 30,) +args=('<%= @image_log_document_root %>/image.log', 'H', 8, 30,) [formatter_simple] format=%(asctime)s %(levelname)s %(name)s: %(message)s