Re: Log managment

2014-05-30 Thread Tomas Barton
I haven't encountered any issues with that yet. It seems like a good idea, thanks. The default values with logrotate might not suit everyone, it's just an example. It's listed as a config file, so dpkg won't replace the /etc/logrotate.d/mesos without warning. Right, could we fix the UI logs someh

Re: Log managment

2014-05-30 Thread Damien Hardy
Hello, Your point is right. however --log_dir option provide a way to display logs for uses in HTTP UI. That is not permit by tailing stdout/stderr. Best regards, Le 15/05/2014 17:42, Dick Davies a écrit : > I'd try a newer version before you file bugs - but to be honest log rotation > is logrota

Re: Log managment

2014-05-30 Thread Damien Hardy
Thank you, This is the way I will go too. Don't you have problems changing file descriptor when process is running ? (deleted file keeping growing a filling disk space until you restart the process) I suggest adding "copytruncate" in logrotate configuration. Le 30/05/2014 11:31, Tomas Barton a éc

Re: Log managment

2014-05-30 Thread Tomas Barton
I've already refactored the logging, I'm redirecting stdout and stderr to a master.log or slave.log https://github.com/deric/mesos-deb-packaging/blob/master/mesos-init-wrapper#L109 the logrotate itself it quite simple /var/log/mesos/*.log { daily missingok rotate 30

Re: Log managment

2014-05-30 Thread Damien Hardy
Hello, Yes I do. I thought this was re right thing to do for logs. But never ending file is not safe usable. This option --log_dir need some rework I suppose. I will go with stdout/stderr pipeline instead (using logrotate copytruncate to handle open file descriptors) Thank you Le 15/05/2014 22:0

Re: Log managment

2014-05-16 Thread Tomas Barton
Hi Damien, do you use the `--log_dir` switch? If so, mesos is creating quite many files in a strange format: mesos-slave.{hostname}.invalid-user.log.INFO.20140409-155625.7545 when you forward stdout of the service to a single file and afterwards apply simple logroate rules, you might get nicer l

Re: Log managment

2014-05-16 Thread Dick Davies
I'd try a newer version before you file bugs - but to be honest log rotation is logrotates job, it's really not very hard to setup. In our stack we run under upstart, so things make it into syslog and we don't have to worry about rotation - scales better too as it's easier to centralize. On 14 Ma

Re: Log managment

2014-05-16 Thread Damien Hardy
Hello, I created https://issues.apache.org/jira/browse/MESOS-1375 Thank you, Cheers, Le 14/05/2014 19:28, Adam Bordelon a écrit : > Hi Damien, > > Log rotation sounds like a reasonable request. Please file a JIRA for > it, and we can discuss details there. > > Thanks, > -Adam- -- Damien HAR

Re: Log managment

2014-05-15 Thread Adam Bordelon
Hi Damien, Log rotation sounds like a reasonable request. Please file a JIRA for it, and we can discuss details there. Thanks, -Adam- On Wed, May 14, 2014 at 1:46 AM, Damien Hardy wrote: > Hello, > > Log in mesos are problematic for me so far. > We are used to use log4j facility in java world

Log managment

2014-05-14 Thread Damien Hardy
Hello, Log in mesos are problematic for me so far. We are used to use log4j facility in java world that permit a lot of things. Mainly I would like log rotation (ideally with logrotate tool to be homogeneous with other things) without restarting processes because in my experience it looses histor