Skip to content

Commit 47951cc

Browse files
authored
Merge pull request #529 from hubmapconsortium/yuanzhou/ec2-type-downgrade
32x8 -> 16x16 for EC2 PROD VM downgrade
2 parents dbc4f40 + 7252255 commit 47951cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def http_internal_server_error(e):
163163
if MEMCACHED_MODE:
164164
try:
165165
# Use client pool to maintain a pool of already-connected clients for improved performance
166-
# The uwsgi config launches the app across multiple threads (8) inside each process (32), making essentially 256 processes
166+
# The uwsgi config launches the app across multiple threads (16) inside each process (16), making essentially 256 processes
167167
# Set the connect_timeout and timeout to avoid blocking the process when memcached is slow, defaults to "forever"
168168
# connect_timeout: seconds to wait for a connection to the memcached server
169169
# timeout: seconds to wait for send or reveive calls on the socket connected to memcached

src/uwsgi.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ log-4xx = true
1313
log-5xx = true
1414
logto = /usr/src/app/log/uwsgi-entity-api.log
1515

16-
# Master with 32 worker process (based on CPU number)
16+
# Master with 16 worker processes (based on CPU number)
1717
master = true
18-
processes = 32
18+
processes = 16
1919

2020
# Enable the multithreading within uWSGI
2121
# Launch the application across multiple threads inside each process
2222
enable-threads = True
23-
threads = 8
23+
threads = 16
2424

2525
# Use http socket for integration with nginx running on the same machine
2626
socket = localhost:5000

0 commit comments

Comments
 (0)