Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
2cf9bf4d
Commit
2cf9bf4d
authored
1 year ago
by
Alexander Pace
Browse files
Options
Downloads
Patches
Plain Diff
apache/gunicorn tuning
parent
97abd383
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!142
Visual Tweaks
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/gunicorn_config.py
+1
-1
1 addition, 1 deletion
config/gunicorn_config.py
docker/apache-config
+24
-4
24 additions, 4 deletions
docker/apache-config
docker/mpm_prefork.conf
+1
-0
1 addition, 0 deletions
docker/mpm_prefork.conf
with
26 additions
and
5 deletions
config/gunicorn_config.py
+
1
−
1
View file @
2cf9bf4d
...
...
@@ -72,7 +72,7 @@ max_requests_jitter = get_from_env('GUNICORN_MAX_REQUESTS_JITTER',
# this to a higher value.
keepalive
=
get_from_env
(
'
GUNICORN_KEEPALIVE
'
,
default_value
=
5
,
default_value
=
30
,
fail_if_not_found
=
False
)
# preload_app -----------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
docker/apache-config
+
24
−
4
View file @
2cf9bf4d
...
...
@@ -40,12 +40,32 @@ ServerName ${DJANGO_PRIMARY_FQDN}
ProxyPass "/static" "!"
ProxyPass "/documentation" "!"
ProxyPass "/admin_docs" "!"
ProxyPass "/" "http://localhost:8080/"
ProxyPass "/" "http://localhost:8080/"
Keepalive=On timeout=120 connectiontimeout=120
# KeepAlive stuff:
# This section is for apache2 timeout and keepalive tuning parameters.
# https://ioflood.com/blog/2020/02/21/what-is-apache-keepalive-timeout-how-to-optimize-this-critical-setting/
# KeepAlive will... keep a connection alive for subsequent requests.
# Turn this on.
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 3
# The maximum number of requests served to a client before terminating the connection.
# This can be large, possibly safely unlimited. (0 = unlimited)
MaxKeepAliveRequests 0
# The number of seconds Apache will wait for a subsequent request before closing the
# connection. Once a request has been received, the timeout value specified by the
# Timeout directive applies. Setting KeepAliveTimeout to a high value may cause
# performance problems in heavily loaded servers. The higher the timeout, the more
# server processes will be kept occupied waiting on connections with idle clients
KeepAliveTimeout 5
# Amount of time the server will wait for certain events before failing a
# request. The TimeOut directive defines the length of time Apache will wait for
# I/O (e.g., when reading data from the client, when writing data to the client, etc.)
# Default: 300s. Try setting this lower, then do a test like a long query with the API
# and in the browser and see what happens.
Timeout 60
# Unset certain headers to help prevent spoofing
RequestHeader unset REMOTE_USER
...
...
This diff is collapsed.
Click to expand it.
docker/mpm_prefork.conf
+
1
−
0
View file @
2cf9bf4d
...
...
@@ -10,6 +10,7 @@
MinSpareServers
5
MaxSpareServers
10
MaxRequestWorkers
1024
ServerLimit
1024
MaxConnectionsPerChild
0
</
IfModule
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment