<commit_before>[uwsgi]
socket = 127.0.0.1:{{ port }}
chdir = /home/ocdskfp/ocdskingfisherprocess/
wsgi-file = wsgi.py
virtualenv = .ve
uid = ocdskfp
gid = ocdskfp

umask = 022

# ==== Tuning ====
# Enable Python threads
# https://github.com/OpenDataServices/cove/issues/486
enable-threads = true
# At least two workers
cheaper = 2
# Start off with two workers
cheaper-initial = 2
# Spawn up to 100 workers as needed
workers = 100
# One thread per process so they can be killed without affecting other requests
threads = 1
max-requests = 1024
memory-report = true
# Limit memory usage for a worker to 500MB
limit-as = 500
# Kill requests that have taken more than 5 minutes
harakiri = 300
# If memory usage of a worker > 250MB at the *end* of a request, then reload it
reload-on-as = 250

# ==== Environment variables passed to app ====
env = DEBUG=False
<commit_msg>OCDS Kingfisher - make time out on Process UWSGI server match Apache server<commit_after>[uwsgi]
socket = 127.0.0.1:{{ port }}
chdir = /home/ocdskfp/ocdskingfisherprocess/
wsgi-file = wsgi.py
virtualenv = .ve
uid = ocdskfp
gid = ocdskfp

umask = 022

# ==== Tuning ====
# Enable Python threads
# https://github.com/OpenDataServices/cove/issues/486
enable-threads = true
# At least two workers
cheaper = 2
# Start off with two workers
cheaper-initial = 2
# Spawn up to 100 workers as needed
workers = 100
# One thread per process so they can be killed without affecting other requests
threads = 1
max-requests = 1024
memory-report = true
# Limit memory usage for a worker to 500MB
limit-as = 500
# Kill requests that have taken more than 10 minutes
harakiri = 600
# If memory usage of a worker > 250MB at the *end* of a request, then reload it
reload-on-as = 250

# ==== Environment variables passed to app ====
env = DEBUG=False

{'fraction_non_alphanumeric': 0.09526462395543175, 'fraction_numerical': 0.046239554317548746, 'mean_word_length': 4.016759776536313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6629351', 'n_tokens_mistral': 654, 'n_tokens_neox': 565, 'n_words': 231}