Skip to content

Commit

Permalink
Merge pull request akira#298 from ananthakumaran/sentinel-readme
Browse files Browse the repository at this point in the history
add note about sentinel support
  • Loading branch information
akira authored Jan 16, 2018
2 parents 9673cb5 + f646466 commit 55d8b74
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 55d8b74

Please sign in to comment.