Skip to content

Add sidekiq concurrency setting for Heroku review apps#623

Merged
davidgisbey merged 1 commit into
mainfrom
set-sidekiq-concurrency-on-heroku-review-apps
Nov 6, 2025
Merged

Add sidekiq concurrency setting for Heroku review apps#623
davidgisbey merged 1 commit into
mainfrom
set-sidekiq-concurrency-on-heroku-review-apps

Conversation

@davidgisbey
Copy link
Copy Markdown
Contributor

A while ago, we added separate processes for answer generation and other async tasks in Sidekiq. However, we didn't set the concurrency for Sidekiq in our Heroku review apps. This means that the default concurrency of 10 is used, which exceeds the db conns we have available on Heroku's basic plan.

This commit adds a SIDEKIQ_CONCURRENCY setting to app.json, setting it to 5, which will keep the number of db connections within the basic plan limits.

@govuk-ci govuk-ci temporarily deployed to govuk-chat-set-sidekiq--7rcojs October 20, 2025 13:41 Inactive
A while ago, we added separate processes for answer generation and other
async tasks in Sidekiq. However, we didn't set the concurrency for Sidekiq
in our Heroku review apps. This means that the default concurrency of 10 is used,
which exceeds the db conns we have available on Heroku's basic plan.

This commit adds a SIDEKIQ_CONCURRENCY setting to app.json, setting it to 5,
which will keep the number of db connections within the basic plan limits.
@davidgisbey davidgisbey force-pushed the set-sidekiq-concurrency-on-heroku-review-apps branch from 62a99a1 to c77b68e Compare October 20, 2025 13:56
@govuk-ci govuk-ci temporarily deployed to govuk-chat-set-sidekiq--7rcojs October 20, 2025 13:56 Inactive
Copy link
Copy Markdown
Member

@kevindew kevindew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidgisbey is this still something we should do? If so I've approved it as it still sounds reasonable

@davidgisbey
Copy link
Copy Markdown
Contributor Author

It is. Thanks!

@davidgisbey davidgisbey merged commit c676ebd into main Nov 6, 2025
12 checks passed
@davidgisbey davidgisbey deleted the set-sidekiq-concurrency-on-heroku-review-apps branch November 6, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants