Skip to content

Instantly share code, notes, and snippets.

@trentster
Created October 11, 2015 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trentster/4874c1d1896422b56e35 to your computer and use it in GitHub Desktop.
Save trentster/4874c1d1896422b56e35 to your computer and use it in GitHub Desktop.
[root@1 ~]# cat /opt/local/fifo-watchdog/etc/watchdog.conf
## Fetcher configurations
## Port watchdog is listening on
##
## Default: 4444
##
## Acceptable values:
## - an integer
port = port = 4444
## Upstream server
##
## Acceptable values:
## - an IP/port pair, e.g. 127.0.0.1:10011
## upstream = watchdog-upstream.project-fifo.net:4445
##
## Acceptable values:
## - text
## authtoken = sometoken
## where do you want the console.log output:
## off : nowhere
## file: the file specified by log.console.file
## console : standard out
## both : log.console.file and standard out.
##
## Default: file
##
## Acceptable values:
## - one of: off, file, console, both
log.console = log.console = file
## the log level of the console log
##
## Default: info
##
## Acceptable values:
## - one of: debug, info, warning, error
log.console.level = log.console.level = info
## location of the console log
##
## Default: /var/log/watchdog/console.log
##
## Acceptable values:
## - text
log.console.file = log.console.file = /var/log/watchdog/console.log
## location of the error log
##
## Default: /var/log/watchdog/error.log
##
## Acceptable values:
## - text
log.error.file = log.error.file = /var/log/watchdog/error.log
## location of the debug log
##
## Default: /var/log/watchdog/debug.log
##
## Acceptable values:
## - text
log.debug.file = log.debug.file = /var/log/watchdog/debug.log
## turn on syslog
##
## Default: off
##
## Acceptable values:
## - one of: on, off
log.syslog = log.syslog = off
## Whether to write a crash log, and where.
## Commented/omitted/undefined means no crash logger.
##
## Default: /var/log/watchdog/crash.log
##
## Acceptable values:
## - text
log.crash.file = log.crash.file = /var/log/watchdog/crash.log
## Maximum size in bytes of events in the crash log - defaults to 65536
##
## Default: 64KB
##
## Acceptable values:
## - a byte size with units, e.g. 10GB
log.crash.msg_size = log.crash.msg_size = 64KB
## Maximum size of the crash log in bytes, before its rotated, set
## to 0 to disable rotation - default is 0
##
## Default: 10MB
##
## Acceptable values:
## - a byte size with units, e.g. 10GB
log.crash.size = log.crash.size = 10MB
## What time to rotate the crash log - default is no time
## rotation. See the lager README for a description of this format:
## https://github.com/basho/lager/blob/master/README.org
##
## Default: $D0
##
## Acceptable values:
## - text
log.crash.date = log.crash.date = $D0
## Number of rotated crash logs to keep, 0 means keep only the
## current one - default is 0
##
## Default: 5
##
## Acceptable values:
## - an integer
log.crash.count = log.crash.count = 5
## Whether to redirect error_logger messages into lager - defaults to true
##
## Default: on
##
## Acceptable values:
## - one of: on, off
log.error.redirect = log.error.redirect = on
## maximum number of error_logger messages to handle in a second
## lager 2.0.0 shipped with a limit of 50, which is a little low for riak's startup
##
## Default: 100
##
## Acceptable values:
## - an integer
log.error.messages_per_second = log.error.messages_per_second = 100
## Name of the Erlang node
##
## Default: watchdog@127.0.0.1
##
## Acceptable values:
## - text
nodename = nodename = watchdog@10.1.1.240
## Cookie for distributed node communication. All nodes in the
## same cluster should use the same cookie or they will not be able to
## communicate.
##
## Default: erlang
##
## Acceptable values:
## - text
distributed_cookie = distributed_cookie = erlang
## Sets the number of threads in async thread pool, valid range
## is 0-1024. If thread support is available, the default is 64.
## More information at: http://erlang.org/doc/man/erl.html
##
## Default: 64
##
## Acceptable values:
## - an integer
erlang.async_threads = erlang.async_threads = 64
## The number of concurrent ports/sockets
## Valid range is 1024-134217727
##
## Default: 65536
##
## Acceptable values:
## - an integer
erlang.max_ports = erlang.max_ports = 65536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment