Skip to content

Can't use redis 4.6.0 without connection pool leakage in worker #873

Closed
@birkjernstrom

Description

@birkjernstrom

Active Redis connections 2023-07-19 (CET)
image

What happened

  • Upgraded dependencies today in server: Use githubkit 0.10.6 + update dependencies #870
  • Redis was bumped from 4.5.5 to 4.6.0
  • Quickly ran into ConnectionError: max number of clients reached from polar.worker.create_pool
  • Our worker went down. Rolled back + increased our Redis connection limit to 1k (Render) at the same time (not necessary once the rollback was completed).
  • Tried deploying 4.6.0 again after lunch. Definition of insanity... But in my defence, initial deploy occurred during 1) our cron execution + 2) few large repositories triggering syncs. So I thought it might have been a timing issue.
  • Deployed server: Use fixed version of redis (4.5.5) #872 and saw a drop in active connections to normal levels

Actions

  • Fixed the version to 4.5.5 now
  • Creating this issue to ensure we look into it more closely before upgrading redis (not a priority today)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions