mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +00:00
feat: add judoscaler gem for heroku autoscaling (#10419)
- add judoscaler gem to allow judoscale use in heroku environments - This will allow auto scaling for both web and worker dynos across both standard-1x/2x and performance dynos - This will scaling in response to queue time rather than response time(heroku default) - This also allows you to scale multiple dynos in and out at once, rather than scaling them one at a time, as is the default. Ref ---- 1. https://judoscale.com/ 2. https://devcenter.heroku.com/articles/judoscale
This commit is contained in:
3
Gemfile
3
Gemfile
@@ -181,6 +181,9 @@ gem 'reverse_markdown'
|
|||||||
group :production do
|
group :production do
|
||||||
# we dont want request timing out in development while using byebug
|
# we dont want request timing out in development while using byebug
|
||||||
gem 'rack-timeout'
|
gem 'rack-timeout'
|
||||||
|
# for heroku autoscaling
|
||||||
|
gem 'judoscale-rails', require: false
|
||||||
|
gem 'judoscale-sidekiq', require: false
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
|
|||||||
@@ -397,6 +397,13 @@ GEM
|
|||||||
hana (~> 1.3)
|
hana (~> 1.3)
|
||||||
regexp_parser (~> 2.0)
|
regexp_parser (~> 2.0)
|
||||||
uri_template (~> 0.7)
|
uri_template (~> 0.7)
|
||||||
|
judoscale-rails (1.8.2)
|
||||||
|
judoscale-ruby (= 1.8.2)
|
||||||
|
railties
|
||||||
|
judoscale-ruby (1.8.2)
|
||||||
|
judoscale-sidekiq (1.8.2)
|
||||||
|
judoscale-ruby (= 1.8.2)
|
||||||
|
sidekiq (>= 5.0)
|
||||||
jwt (2.8.1)
|
jwt (2.8.1)
|
||||||
base64
|
base64
|
||||||
kaminari (1.2.2)
|
kaminari (1.2.2)
|
||||||
@@ -891,6 +898,8 @@ DEPENDENCIES
|
|||||||
jbuilder
|
jbuilder
|
||||||
json_refs
|
json_refs
|
||||||
json_schemer
|
json_schemer
|
||||||
|
judoscale-rails
|
||||||
|
judoscale-sidekiq
|
||||||
jwt
|
jwt
|
||||||
kaminari
|
kaminari
|
||||||
koala
|
koala
|
||||||
|
|||||||
@@ -27,6 +27,12 @@ if ENV.fetch('SENTRY_DSN', false).present?
|
|||||||
require 'sentry-sidekiq'
|
require 'sentry-sidekiq'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# heroku autoscaling
|
||||||
|
if ENV.fetch('JUDOSCALE_URL', false).present?
|
||||||
|
require 'judoscale-rails'
|
||||||
|
require 'judoscale-sidekiq'
|
||||||
|
end
|
||||||
|
|
||||||
module Chatwoot
|
module Chatwoot
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Initialize configuration defaults for originally generated Rails version.
|
# Initialize configuration defaults for originally generated Rails version.
|
||||||
|
|||||||
Reference in New Issue
Block a user