Skip to content

[QUESTION] Set timeout in case redis is down #259

Closed

Description

@inakisoriamrf

Which feature your question relates to?
caching with Redis

Question details
Is there any variable to lower the timeout with Redis in case Redis is down?
Additional context/motivations
Being able to tweak this value allows us to have a single redis instance and connect directly to CH in case it's down (reboots, node changes...) without needing to set up a full redis cluster

Activity

  1. mga-chka commented on Nov 4, 2022

    @mga-chka
    Collaborator

    currently no.
    If you can, you can do a PR to add the ability to change MaxRetries, MinRetryBackoff & MaxRetryBackoff in the redis client using values in the configuration.
    This change should not be too difficult since the function creating the redis client takes the configuration in argument
    https://github.com/ContentSquare/chproxy/blob/master/clients/redis.go#L17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions