Closed judahrand closed 3 years ago
👷 Deploy request for kodiak-docs pending review. Visit the deploys page to approve it
🔨 Explore the source changes: b6ff491bf7c70152891487892c9223d49567bcfe
👷 Deploy request for kodiak-dashboard-staging pending review. Visit the deploys page to approve it
🔨 Explore the source changes: b6ff491bf7c70152891487892c9223d49567bcfe
Container builds aren't my fault 😛
Looks good. Thanks for the PR!
This PR removes the call to
get_subscription
for self hosted instances. This was causing problems as theget_subscription
method instantiates a second Redis connection pool with a pool size defined byUSAGE_REPORTING_POOL_SIZE
(poor name choice given that it isn't only used whenUSAGE_REPORTING is True
, but I suspect this is just a historical artefact). This second pool could quite easily push users over their hosted Redis connection limits, especially, as the undocumentedUSAGE_REPORTING_POOL_SIZE
defaults to 50.With this change the second pool is never instantiated if
USAGE_REPORTING is False && SUBSCRIPTIONS_ENABLED is False
. These are the default values for self hosted instances.