Skip to content

Sentinel: Add Source Address Binding - #1708

Closed
mattsta wants to merge 4 commits into
redis:unstablefrom
mattsta:sentinel-bind-source-address
Closed

mattsta wants to merge 4 commits into
redis:unstablefrom
mattsta:sentinel-bind-source-address

Conversation

@mattsta

@mattsta mattsta commented Apr 24, 2014

Copy link
Copy Markdown
Contributor

We've had reports of multiple deployments needing Sentinel to send
from a non-default address (See #1667).

Now users can specify their source address as their first 'bind' entry
and it'll be used for all outbound Sentinel communication too.

mattsta added 4 commits April 24, 2014 16:06
This is hiredis f225c276be7fd0646019b51023e3f41566633dfe

This update includes all changes that diverged inside of Redis since
the last update.  This version also allows optional source address
binding for connections which we need for some Sentinel deployments.
Redis SDS uses zmalloc instead of the regualr SDS library
which uses regular malloc everywhere.
We need to access (bindaddr[0] || NULL) in a few places, so centralize
access with a nice macro.
Some deployments need traffic sent from a specific address.  This
change uses the same policy as Cluster where the first listed bindaddr
becomes the source address for outgoing Sentinel communication.

Fixes redis#1667
@kingsumos

Copy link
Copy Markdown
Contributor

@antirez this patch will be merged someday?

@antirez

antirez commented Jun 9, 2014

Copy link
Copy Markdown
Contributor

@kingsumos yes, definitely, hopefully tomorrow.

@antirez

antirez commented Jun 23, 2014

Copy link
Copy Markdown
Contributor

Thanks Matt, merged everthing but the last commit that included an older version of sds.c (since the PR is old, my fault), and because it used normal zmalloc.h instead of the dummy version if it that was in place before the hiredis update.

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.

3 participants