Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f35c0824
Commit
f35c0824
authored
Oct 20, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reconfigure the Geo tracking database pool size when running as Sidekiq
parent
c2809c54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
changelogs/unreleased-ee/3809-geo-sidekiq-pool.yml
changelogs/unreleased-ee/3809-geo-sidekiq-pool.yml
+5
-0
config/initializers/sidekiq.rb
config/initializers/sidekiq.rb
+8
-0
No files found.
changelogs/unreleased-ee/3809-geo-sidekiq-pool.yml
0 → 100644
View file @
f35c0824
---
title
:
Reconfigure the Geo tracking database pool size when running as Sidekiq
merge_request
:
3181
author
:
type
:
fixed
config/initializers/sidekiq.rb
View file @
f35c0824
...
...
@@ -52,6 +52,14 @@ Sidekiq.configure_server do |config|
ActiveRecord
::
Base
.
establish_connection
(
config
)
Rails
.
logger
.
debug
(
"Connection Pool size for Sidekiq Server is now:
#{
ActiveRecord
::
Base
.
connection
.
pool
.
instance_variable_get
(
'@size'
)
}
"
)
# EE only
if
Gitlab
::
Geo
.
geo_database_configured?
Rails
.
configuration
.
geo_database
[
'pool'
]
=
Sidekiq
.
options
[
:concurrency
]
Geo
::
TrackingBase
.
establish_connection
(
Rails
.
configuration
.
geo_database
)
Rails
.
logger
.
debug
(
"Connection Pool size for Sidekiq Server is now:
#{
Geo
::
TrackingBase
.
connection_pool
.
size
}
(Geo tracking database)"
)
end
# Avoid autoload issue such as 'Mail::Parsers::AddressStruct'
# https://github.com/mikel/mail/issues/912#issuecomment-214850355
Mail
.
eager_autoload!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment