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

Adds sentinels support #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

xnagpa
Copy link

@xnagpa xnagpa commented May 13, 2016

Dear Faye::Redis developers
Please consider this request. The main idea of this pull requiest is to add Sentinel technology support. (Provides high availability for redis http://redis.io/topics/sentinel)
In order to achieve the desired result I used em-hiredis-sentinel gem. With this pull request applied one could use Sentinel technology by simply specifying the list of Sentinels when connecting to Faye.
Like

Faye::RackAdapter.new(
  :mount   => '/',
  :timeout => 25,
  :engine  => {
    :type  => Faye::Redis,
    sentinels: ['your_redis.com:26379', 'your_redis.com:26380', 'your_redis.com:26381'],
    master_name: 'mymaster',
  }
)

Sincerely yours Maksim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant