Skip to content

Commit 0150031

Browse files
authored
ref(uwsgi): Make default settings less demanding (#15450)
For local development and smaller setups 1 process x 2 threads seems to be working pretty well and with a faster start-up time and less CPU waste.
1 parent 21e4d15 commit 0150031

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

api-docs/sentry.conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
SENTRY_WEB_HOST = "127.0.0.1"
4444
SENTRY_WEB_PORT = SENTRY_APIDOCS_WEB_PORT
4545
SENTRY_WEB_OPTIONS = {
46-
"workers": 2,
46+
"workers": 1,
4747
"limit_request_line": 0,
4848
"secure_scheme_headers": {"X-FORWARDED-PROTO": "https"},
4949
}

docker/sentry.conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
SENTRY_WEB_HOST = '0.0.0.0'
245245
SENTRY_WEB_PORT = 9000
246246
SENTRY_WEB_OPTIONS = {
247-
# 'workers': 3, # the number of web workers
247+
# 'workers': 1, # the number of web workers
248248
}
249249

250250
###############

src/sentry/data/config/sentry.conf.py.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,6 @@ SENTRY_DIGESTS = 'sentry.digests.backends.redis.RedisBackend'
126126
SENTRY_WEB_HOST = '0.0.0.0'
127127
SENTRY_WEB_PORT = 9000
128128
SENTRY_WEB_OPTIONS = {
129-
# 'workers': 3, # the number of web workers
129+
# 'workers': 1, # the number of web workers
130130
# 'protocol': 'uwsgi', # Enable uwsgi protocol instead of http
131131
}

src/sentry/services/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def __init__(
4949
options.setdefault("protocol", "http")
5050
options.setdefault("auto-procname", True)
5151
options.setdefault("procname-prefix-spaced", "[Sentry]")
52-
options.setdefault("workers", 3)
53-
options.setdefault("threads", 4)
52+
options.setdefault("workers", 1)
53+
options.setdefault("threads", 2)
5454
options.setdefault("http-timeout", 30)
5555
options.setdefault("vacuum", True)
5656
options.setdefault("thunder-lock", True)

0 commit comments

Comments
 (0)