deric / puppet-mesos

Puppet module for managing Mesos nodes

Home Page:https://forge.puppetlabs.com/deric/mesos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to enable logging

swpecht opened this issue · comments

Logging does not seem to be enabled by default. And "log_dir" seems to not impact anything.

Un-commenting

LOGS=/var/log/mesos

in default.erb seems to fix the issue.

Am I missing something, or is this a bug?

Thanks!

It depends on the package you use. Mesosphere package allows just logging to syslog. Mine version allows logging (it was an experiment):

  • syslog, if you enable LOGS_DIR you'll get many log files per each log level (moreover logs will be available in webui)
  • /var/log/mesos/master.log and /var/log/mesos/slave.log with logrotate and no logs in webui

the difference is in mesos-init-wrapper and init/upstart scripts:
https://github.com/deric/mesos-deb-packaging/blob/master/mesos-init-wrapper#L136

For me is much more comfortable to search logs with cat/zcat/grep/less unix tools and have them in fewer files and don't mix the logs with syslog. I won't force this approach to anyone, it's just depends what do you prefer. If you forward the logs with Logstash (or some other tool) it's quite easy to filter Mesos messages.

Mesos logging options might change with each version and there's no official Debian package yet, although it's quite an old issue: https://issues.apache.org/jira/browse/MESOS-74

That clears it up. Thanks!