Skip to content

Commit 2e9ec39

Browse files
committed
✏️ Continued messing with service configs
1 parent 9b11d53 commit 2e9ec39

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

config/mesonet.inc

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Alias /tmp /var/webtmp
165165
ProxyPreserveHost Off
166166
RequestHeader set "Host" "iem.local"
167167
# Attempt to reduce random proxy noise
168-
ProxySet connectiontimeout=5 timeout=60 retry=0 disablereuse=On
168+
ProxySet connectiontimeout=5 timeout=55 retry=0 disablereuse=On
169169
</Proxy>
170170

171171
ProxyPass /c http://127.0.0.1:9081/c
@@ -217,22 +217,6 @@ ProxyPass /cache http://127.0.0.1:9081/cache
217217
ProxyPassReverse "http://iem-archive.local/archive/data"
218218
</Location>
219219

220-
<Proxy "balancer://arcgis">
221-
BalancerMember "https://iem-arcgis1.agron.iastate.edu:6443/arcgis"
222-
BalancerMember "https://iem-arcgis2.agron.iastate.edu:6443/arcgis"
223-
</Proxy>
224-
225-
SSLProxyCheckPeerCN off
226-
SSLProxyCheckPeerExpire off
227-
SSLProxyCheckPeerName off
228-
SSLProxyEngine On
229-
SSLProxyVerify none
230-
231-
<Location "/arcgis">
232-
ProxyPass "balancer://arcgis"
233-
ProxyPassReverse "balancer://arcgis"
234-
</Location>
235-
236220
<Directory "/opt/iem/htdocs/content">
237221
RewriteRule pil_([A-Z0-9]{3,6}).png$ pil.php?pil=$1
238222
</Directory>

deployment/start_tc_wsgi.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ MAX_REQUESTS_JITTER=${MAX_REQUESTS_JITTER:-5000}
1313
# shell activation (systemd runs non-interactive shells).
1414
export PATH="${CONDA_PREFIX}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
1515

16+
# Attempt to get some logging when bad things happen
17+
export PYTHONFAULTHANDLER=1
1618
export PYTHONPATH="/opt/iem/pylib/:${PYTHONPATH:-}"
1719

1820
# Keep request-count recycling enabled to cap Python memory leaks. Gunicorn
1921
# rotates individual workers instead of restarting an embedded Apache stack.
2022
exec "${CONDA_PREFIX}/bin/gunicorn" \
2123
--bind "127.0.0.1:${PORT}" \
22-
--workers 2 \
24+
--no-control-socket \
25+
--workers 3 \
2326
--worker-class gthread \
2427
--threads 15 \
25-
--backlog 500 \
28+
--backlog 2048 \
2629
--max-requests "$MAX_REQUESTS" \
2730
--max-requests-jitter "$MAX_REQUESTS_JITTER" \
2831
--timeout 60 \

0 commit comments

Comments
 (0)