bugGluster - Bugs: bug #21859, please support log rotate

 
 

bug #21859: please support log rotate

Submitted by:  LI Daobing <lidaobing>
Submitted on:  Fri 21 Dec 2007 02:03:30 AM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Missing Feature
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Operating System: NoneReproducibility: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 21 Dec 2007 05:19:57 AM UTC, comment #2:

glusterfs/d supports re-opening log file on SIGHUP which is sufficient for distro/package maintainers to implement log rotation policies using distro specific scripts.

Anand Avati <avati>
Project Member
Fri 21 Dec 2007 02:05:38 AM UTC, comment #1:

P.S. apache provide `rotatelogs' command. which can be found in apache2-utils package under Debian system.

LI Daobing <lidaobing>
Fri 21 Dec 2007 02:03:30 AM UTC, original submission:

Hello,

glusterfs produce huge log even at the the default log level. (one machine have a 600M log for glusterfs a 200M log for glusterfsd, and still increase fast).

But glusterfs sounds does not support log rotate or savelog. I even tried to run savelog to compress the log, then the I can't see any new log.

One easy (and flexiable) way so support save log is adding a new option `--log-pipe', which send the log to a pipe. then use `popen' in the program to open the log file descriptor.

user can set `--log-pipe' option to "/usr/bin/rotatelogs /var/log/glusterfs/glusterfs.log 86400", which can rotate the log once per day. or set it to "/usr/bin/rotatelogs /var/log/glusterfs/glusterfs.log 10M", then log will rotate when it's at least 10 mega byte.

How about add this function?

Thanks.

LI Daobing <lidaobing>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by avati (Posted a comment)
  • -unavailable- added by lidaobing (Submitted the item)
  • -unavailable- added by lidaobing
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 26 Jan 2008 01:24:39 AM UTCavatiOpen/ClosedOpen=>Closed
    Fri 21 Dec 2007 05:19:57 AM UTCavatiStatusNone=>Fixed
    Fri 21 Dec 2007 02:03:30 AM UTClidaobingCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1