<commit_before>[circus]
check_delay = 5
endpoint = ${options['endpoint']}
pubsub_endpoint = ${options['pubsub_endpoint']}
umask = 002
logoutput = ${parts.buildout.directory}/var/log/circus.log
{% if 'httpd' in options and options['httpd'] %}
httpd = 1
httpd_host = ${options['httpd_host']}
httpd_port = ${options['httpd_port']}
{% end %}
statsd = ${options['statsd']}

{% if options['couchdb'] %}
[watcher:db]
cmd = couchdb
args = -a ${parts.buildout.directory}/etc/couchdb.ini
priority = 100
stdout_stream.class = FileStream
stderr_stream.class = FileStream
stdout_stream.filename = ${parts.buildout.directory}/var/log/couchdb.stdout.log
stderr_stream.filename = ${parts.buildout.directory}/var/log/couchdb.stderr.log
{% if 'log_size' in options %}
stdout_stream.max_bytes = ${options['log_size']}
stderr_stream.max_bytes = ${options['log_size']}
{% end %}
{% if 'backup_count' in options %}
stdout_stream.backup_count = ${options['backup_count']}
stderr_stream.backup_count = ${options['backup_count']}
{% end %}

[env:db]
HOME = ${parts.buildout.directory}/var

[plugin:db_resource]
use = circus.plugins.resource_watcher.ResourceWatcher
watcher = db
max_mem = 1700M

[plugin:db_http]
use = circus.plugins.http_observer.HttpObserver
restart_on_error = db
check_url = http://${parts['couchdb.ini'].host}:${parts['couchdb.ini'].port}/<commit_msg>add redis to circus config<commit_after>[circus]
check_delay = 5
endpoint = ${options['endpoint']}
pubsub_endpoint = ${options['pubsub_endpoint']}
umask = 002
logoutput = ${parts.buildout.directory}/var/log/circus.log
{% if 'httpd' in options and options['httpd'] %}
httpd = 1
httpd_host = ${options['httpd_host']}
httpd_port = ${options['httpd_port']}
{% end %}
statsd = ${options['statsd']}

{% if options['redis'] %}
[watcher:redis]
cmd = redis-server 
args = ${parts.buildout.directory}/etc/redis.cfg
priority = 100
stdout_stream.class = FileStream
stderr_stream.class = FileStream
stdout_stream.filename = ${parts.buildout.directory}/var/log/redis.stdout.log
stderr_stream.filename = ${parts.buildout.directory}/var/log/redis.stderr.log
{% end %}

{% if options['couchdb'] %}
[watcher:db]
cmd = couchdb
args = -a ${parts.buildout.directory}/etc/couchdb.ini
priority = 100
stdout_stream.class = FileStream
stderr_stream.class = FileStream
stdout_stream.filename = ${parts.buildout.directory}/var/log/couchdb.stdout.log
stderr_stream.filename = ${parts.buildout.directory}/var/log/couchdb.stderr.log
{% if 'log_size' in options %}
stdout_stream.max_bytes = ${options['log_size']}
stderr_stream.max_bytes = ${options['log_size']}
{% end %}
{% if 'backup_count' in options %}
stdout_stream.backup_count = ${options['backup_count']}
stderr_stream.backup_count = ${options['backup_count']}
{% end %}

[env:db]
HOME = ${parts.buildout.directory}/var

[plugin:db_resource]
use = circus.plugins.resource_watcher.ResourceWatcher
watcher = db
max_mem = 1700M

[plugin:db_http]
use = circus.plugins.http_observer.HttpObserver
restart_on_error = db
check_url = http://${parts['couchdb.ini'].host}:${parts['couchdb.ini'].port}/
{'fraction_non_alphanumeric': 0.16808093994778067, 'fraction_numerical': 0.00881201044386423, 'mean_word_length': 6.5492610837438425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5860639', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1052, 'n_words': 179}