Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default Redis timeout to 100ms. #4

Closed
wants to merge 1 commit into from

Commits on Mar 25, 2015

  1. Set default Redis timeout to 100ms.

    As indicated in the algorithm description [0], an implementation should
    set the Redis communication timeout to something small compared to the
    maximum validity time (TTL). As @antirez stated [1] it should be about
    two order of magnitude smaller. Given expected TTL times in the 1 - 10
    seconds range (depending on the amount of code to be executed in a
    caller's critical section), this should be in the 10 - 100 ms range. Set
    to 100ms per default.
    
    [0] http://redis.io/topics/distlock
    [1] antirez/redlock-rb#3
    Malte Rohde committed Mar 25, 2015
    Configuration menu
    Copy the full SHA
    0ea33bb View commit details
    Browse the repository at this point in the history