• Heinrich Lee Yu's avatar
    Check WAL locations before sleeping · e91d515d
    Heinrich Lee Yu authored
    This saves us from the unnecessary sleep if the replica is already up to
    date.
    
    Based on previous tests, 50% of the time, the replica is already up to
    date so we don't need the sleep.
    
    This also reduces the sleep time because we did not see any stale
    replica errors with the previous value. This suggests that the delay may
    be too high.
    e91d515d
sidekiq_server_middleware.rb 3.68 KB