From 3de1f28a56461bba10436dd54ff0db73ac52a446 Mon Sep 17 00:00:00 2001 From: Sage Ross Date: Tue, 2 Jul 2024 16:56:48 -0700 Subject: [PATCH] Add notes from setting up fresh sidekiq servers --- docs/WMCLOUD_SETUP/sidekiq_servers.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/WMCLOUD_SETUP/sidekiq_servers.md diff --git a/docs/WMCLOUD_SETUP/sidekiq_servers.md b/docs/WMCLOUD_SETUP/sidekiq_servers.md new file mode 100644 index 0000000000..72f8292159 --- /dev/null +++ b/docs/WMCLOUD_SETUP/sidekiq_servers.md @@ -0,0 +1,24 @@ +These are notes from setting up a fresh set of servers for Sidekiq workers, July 2, 2024. + +My strategy this time is to put every worker on a separate VM, so try to make the bottlenecks and failures for too-large updates more isolated. + +* Create servers (8-core for long, 4-core for medium, 1-core for short queue). + +## Each server + +- Spin up a fresh server and log in to it +- Install requirements: + - `sudo apt install pandoc libmariadb-dev imagemagick gnupg2 shared-mime-info` +- Install RVM (see web server doc) +- Get the Dashboard code: `git clone https://github.com/WikiEducationFoundation/WikiEduDashboard.git` +- In the Dashboard directory: + - `bundle install` + - Copy `application.yml`, `database.yml`, `secrets.yml`, `newrelic.yml` from the web node into the `config` directory + +- Add the systemd service files for the sidekiq processes you want to run on this server. + - Make sure the path is correct for RVM in `ExecStart` + - Update the `WorkingDirectory` to something like `/home/ragesoss/WikiEduDashboard` + +- Enable and start the service + +To update for new deployments, you'll need to quiet these sidekiq processes, stop them, do a `git pull` and `bundle install`, then restart the sidekiq processes.