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
ddab0ca0
Commit
ddab0ca0
authored
5 years ago
by
Alexander Pace
Browse files
Options
Downloads
Patches
Plain Diff
Enabling CONN_MAX_AGE
This allows for persistent database connections for workers.
parent
467a4991
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/gunicorn_config.py
+3
-3
3 additions, 3 deletions
config/gunicorn_config.py
config/settings/base.py
+1
-1
1 addition, 1 deletion
config/settings/base.py
config/settings/container/base.py
+1
-0
1 addition, 0 deletions
config/settings/container/base.py
with
5 additions
and
4 deletions
config/gunicorn_config.py
+
3
−
3
View file @
ddab0ca0
...
...
@@ -19,15 +19,15 @@ workers = multiprocessing.cpu_count()*2 + 1
# Worker class.
#
worker_class
=
'
gthread
'
threads
=
2
worker_class
=
'
sync
'
#
threads = 2
# Adding options for timeout. Not specified, the timeout default
# is 30 seconds. Source:
#
# https://gunicorn-docs.readthedocs.io/en/stable/settings.html#worker-processes
#
timeout
=
12
0
timeout
=
30
0
# Max requests settings - a worker restarts after handling this many
# requests. May be useful if we have memory leak problems.
...
...
This diff is collapsed.
Click to expand it.
config/settings/base.py
+
1
−
1
View file @
ddab0ca0
...
...
@@ -26,7 +26,7 @@ MAINTENANCE_MODE = False
MAINTENANCE_MODE_MESSAGE
=
None
# Version ---------------------------------------------------------------------
PROJECT_VERSION
=
'
2.8.1
'
PROJECT_VERSION
=
'
2.8.1
-1
'
# Unauthenticated access ------------------------------------------------------
# This variable should eventually control whether unauthenticated access is
...
...
This diff is collapsed.
Click to expand it.
config/settings/container/base.py
+
1
−
0
View file @
ddab0ca0
...
...
@@ -115,6 +115,7 @@ DATABASES = {
# NOTE: for mysql>=5.7 this will need to be changed to
#'init_command': 'SET default_storage_engine=MyISAM',
},
'
CONN_MAX_AGE
'
:
3600
,
}
}
...
...
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