Skip to content

Instantly share code, notes, and snippets.

@pcdinh
Last active August 29, 2015 14:06
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 pcdinh/aa34cd18d37db205f9ef to your computer and use it in GitHub Desktop.
Save pcdinh/aa34cd18d37db205f9ef to your computer and use it in GitHub Desktop.
[circus]
check_delay = 5
endpoint = tcp://127.0.0.1:5555
pubsub_endpoint = tcp://127.0.0.1:5556
include = *.more.config.ini
debug = true
logoutput=/data1/circus/daemon.log
loglevel=DEBUG
[watcher:api_dev2]
cmd = chaussette --fd $(circus.sockets.api_dev2) --backend fastgevent run_app.app dev2
warmup_delay = 1
numprocesses = 2
copy_env = True
use_sockets = True
stop_children = True
graceful_timeout = 10
working_dir = /data1/projects/coreapi/dev2/current/
# will push in server.log the stream every 300 ms
stdout_stream.class = FileStream
stdout_stream.filename = /data1/logs/coreapi/dev2/2.2.0/server.log
stdout_stream.refresh_time = 0.3
# optionally rotate the log file when it reaches 1 gb
# and save 5 copied of rotated files
stdout_stream.max_bytes = 1073741824
stdout_stream.backup_count = 5
stderr_stream.class = FileStream
stderr_stream.filename = /data1/logs/coreapi/dev2/2.2.0/server.log
stderr_stream.refresh_time = 0.3
[env:api_dev2]
ENV_NAME=dev2
SERVER_LOG=/data1/logs/coreapi/dev2/2.2.0/server.log
ACCESS_LOG=/data1/logs/coreapi/dev2/2.2.0/access.log
ERROR_LOG=/data1/logs/coreapi/dev2/2.2.0/error.log
PATH=/data1/projects/coreapi/dev2/current:$PATH
[socket:api_dev2]
host = 0.0.0.0
port = 10002
[plugin:statsd]
use = circus.plugins.statsd.StatsdEmitter
host = localhost
port = 8125
sample_rate = 1.0
application_name = api_dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment