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
673701f3
Commit
673701f3
authored
Mar 24, 2020
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Sidekiq Cluster for Source installations
parent
9add2593
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
doc/install/installation.md
doc/install/installation.md
+9
-0
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+9
-4
No files found.
doc/install/installation.md
View file @
673701f3
...
...
@@ -962,6 +962,15 @@ If you want to switch back to Unicorn, follow these steps:
1.
Edit the system
`init.d`
script to set the
`USE_UNICORN=1`
flag. If you have
`/etc/default/gitlab`
, then you should edit it instead.
1.
Restart GitLab.
### Using Sidekiq instead of Sidekiq Cluster
As of GitLab 12.10, Source installations are using
`bin/sidekiq-cluster`
for managing Sidekiq processes.
Using Sidekiq directly will still be supported until 14.0. So if you're experiencing issues, please:
1.
Edit the system
`init.d`
script to remove the
`SIDEKIQ_WORKERS`
flag. If you have
`/etc/default/gitlab`
, then you should edit it instead.
1.
Restart GitLab.
1.
[
Create an issue
](
https://gitlab.com/gitlab-org/gitlab/issues/-/new
)
describing the problem.
## Troubleshooting
### "You appear to have cloned an empty repository."
...
...
lib/support/init.d/gitlab
View file @
673701f3
...
...
@@ -27,6 +27,7 @@
### Environment variables
RAILS_ENV
=
"production"
USE_UNICORN
=
""
SIDEKIQ_WORKERS
=
1
# Script variable names should be lower-case not to conflict with
# internal /bin/sh variables such as PATH, EDITOR or SHELL.
...
...
@@ -36,7 +37,6 @@ pid_path="$app_root/tmp/pids"
socket_path
=
"
$app_root
/tmp/sockets"
rails_socket
=
"
$socket_path
/gitlab.socket"
web_server_pid_path
=
"
$pid_path
/unicorn.pid"
sidekiq_pid_path
=
"
$pid_path
/sidekiq.pid"
mail_room_enabled
=
false
mail_room_pid_path
=
"
$pid_path
/mail_room.pid"
gitlab_workhorse_dir
=
$(
cd
$app_root
/../gitlab-workhorse 2> /dev/null
&&
pwd
)
...
...
@@ -74,6 +74,11 @@ else
use_web_server
=
"unicorn"
fi
if
[
-z
"
$SIDEKIQ_WORKERS
"
]
;
then
sidekiq_pid_path
=
"
$pid_path
/sidekiq.pid"
else
sidekiq_pid_path
=
"
$pid_path
/sidekiq-cluster.pid"
fi
### Init Script functions
...
...
@@ -295,7 +300,7 @@ start_gitlab() {
if
[
"
$sidekiq_status
"
=
"0"
]
;
then
echo
"The Sidekiq job dispatcher is already running with pid
$spid
, not restarting"
else
RAILS_ENV
=
$RAILS_ENV
bin/background_jobs start &
RAILS_ENV
=
$RAILS_ENV
SIDEKIQ_WORKERS
=
$SIDEKIQ_WORKERS
bin/background_jobs start &
fi
if
[
"
$gitlab_workhorse_status
"
=
"0"
]
;
then
...
...
@@ -354,7 +359,7 @@ stop_gitlab() {
fi
if
[
"
$sidekiq_status
"
=
"0"
]
;
then
echo
"Shutting down GitLab Sidekiq"
RAILS_ENV
=
$RAILS_ENV
bin/background_jobs stop
RAILS_ENV
=
$RAILS_ENV
SIDEKIQ_WORKERS
=
$SIDEKIQ_WORKERS
bin/background_jobs stop
fi
if
[
"
$gitlab_workhorse_status
"
=
"0"
]
;
then
echo
"Shutting down GitLab Workhorse"
...
...
@@ -458,7 +463,7 @@ reload_gitlab(){
echo
"Done."
echo
"Restarting GitLab Sidekiq since it isn't capable of reloading its config..."
RAILS_ENV
=
$RAILS_ENV
bin/background_jobs restart
RAILS_ENV
=
$RAILS_ENV
SIDEKIQ_WORKERS
=
$SIDEKIQ_WORKERS
bin/background_jobs restart
if
[
"
$mail_room_enabled
"
!=
true
]
;
then
echo
"Restarting GitLab MailRoom since it isn't capable of reloading its config..."
...
...
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