Skip to content

ref(uwsgi): Make default settings less demanding #15450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api-docs/sentry.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
SENTRY_WEB_HOST = "127.0.0.1"
SENTRY_WEB_PORT = SENTRY_APIDOCS_WEB_PORT
SENTRY_WEB_OPTIONS = {
"workers": 2,
"workers": 1,
"limit_request_line": 0,
"secure_scheme_headers": {"X-FORWARDED-PROTO": "https"},
}
Expand Down
2 changes: 1 addition & 1 deletion docker/sentry.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
SENTRY_WEB_HOST = '0.0.0.0'
SENTRY_WEB_PORT = 9000
SENTRY_WEB_OPTIONS = {
# 'workers': 3, # the number of web workers
# 'workers': 1, # the number of web workers
}

###############
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/data/config/sentry.conf.py.default
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ SENTRY_DIGESTS = 'sentry.digests.backends.redis.RedisBackend'
SENTRY_WEB_HOST = '0.0.0.0'
SENTRY_WEB_PORT = 9000
SENTRY_WEB_OPTIONS = {
# 'workers': 3, # the number of web workers
# 'workers': 1, # the number of web workers
# 'protocol': 'uwsgi', # Enable uwsgi protocol instead of http
}
4 changes: 2 additions & 2 deletions src/sentry/services/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def __init__(
options.setdefault("protocol", "http")
options.setdefault("auto-procname", True)
options.setdefault("procname-prefix-spaced", "[Sentry]")
options.setdefault("workers", 3)
options.setdefault("threads", 4)
options.setdefault("workers", 1)
options.setdefault("threads", 2)
options.setdefault("http-timeout", 30)
options.setdefault("vacuum", True)
options.setdefault("thunder-lock", True)
Expand Down