Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Pierre Boudes
mastodon
Commits
85ec6153
Unverified
Commit
85ec6153
authored
2 years ago
by
Jim Myhrberg
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
feat(puma): enable setting min puma threads in addition to max (#21048)
parent
264655c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/puma.rb
+4
-3
4 additions, 3 deletions
config/puma.rb
with
4 additions
and
3 deletions
config/puma.rb
+
4
−
3
View file @
85ec6153
persistent_timeout
ENV
.
fetch
(
'PERSISTENT_TIMEOUT'
)
{
20
}.
to_i
threads_count
=
ENV
.
fetch
(
'MAX_THREADS'
)
{
5
}.
to_i
threads
threads_count
,
threads_count
max_threads_count
=
ENV
.
fetch
(
'MAX_THREADS'
)
{
5
}.
to_i
min_threads_count
=
ENV
.
fetch
(
'MIN_THREADS'
)
{
max_threads_count
}.
to_i
threads
min_threads_count
,
max_threads_count
if
ENV
[
'SOCKET'
]
bind
"unix://
#{
ENV
[
'SOCKET'
]
}
"
...
...
@@ -10,7 +11,7 @@ else
end
environment
ENV
.
fetch
(
'RAILS_ENV'
)
{
'development'
}
workers
ENV
.
fetch
(
'WEB_CONCURRENCY'
)
{
2
}
workers
ENV
.
fetch
(
'WEB_CONCURRENCY'
)
{
2
}
.
to_i
preload_app!
...
...
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