From f6464661b349c1ed9d04fd8eb1749af720732d0d Mon Sep 17 00:00:00 2001 From: Anantha Kumaran Date: Tue, 16 Jan 2018 11:55:25 +0530 Subject: [PATCH] add note about sentinel support --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index b998628d..926c6cbf 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,25 @@ config :exq, ] ``` +### Sentinel: + +Exq by default uses [Redix](https://github.com/whatyouhide/redix) +which doesn't support Redis Sentinel. To use Sentinel, add +[RedixSentinel](https://github.com/ananthakumaran/redix_sentinel) to +the list of dependencies. Configure `:redis_worker ({module, start_link_args})` appropriately. + + +```elixir +config :exq + redis_worker: {RedixSentinel, [ + [role: "master", group: "exq", sentinels: [[host: "127.0.0.1", port: 6666]]], + [database: 0, password: nil], + [backoff: 100, timeout: 5000, name: Exq.Redis.Client, socket_opts: []] + ]} + ... +``` + + ## Using iex: If you'd like to try Exq out on the iex console, you can do this by typing ```