Last active
August 29, 2015 14:06
-
-
Save pcdinh/aa34cd18d37db205f9ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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