Re: redis replication and fail-over in Amazon EC2 multi-region

1,014 views
Skip to first unread message

Dvir Volk

unread,
Nov 12, 2012, 9:01:55 AM11/12/12
to redi...@googlegroups.com
that's a very interesting question.
It should be doable by setting up a VPC that keeps all your ips "internal".

but perhaps solving this from inside sentinel somehow is also worth the effort.


On Mon, Nov 12, 2012 at 8:20 AM, Terance Dias <teranc...@gmail.com> wrote:
> Hi,
>
> Our infrastructure is in Amazon EC2 and we're trying to have redis
> replication and fail-over in a different EC2 region so that our application
> can continue to work even if something goes wrong in 1 region.
> I'm able to set up replication across regions. We are trying to deploy
> sentinel to do the monitoring and fail-over. But because of the way Amazon
> EC2 handles public IP address (i.e. it does not create a public IP interface
> for the node but uses NAT to map public IP to private IP), we are facing
> some issues sentinel instances in different regions talking to each other
> and with some instances. I just wanted to know if there is a way to get
> sentinel to work across EC2 regions.
>
> Thanks,
> Terance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/tOlIDsAR1e0J.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.



--
Dvir Volk
Chief Architect, Everything.me
http://everything.me

Josiah Carlson

unread,
Nov 12, 2012, 2:09:15 PM11/12/12
to redi...@googlegroups.com
Perhaps you mean VPN.

For the OP's question, EC2 instances have external IP
addresses/domains listed in the management console. You can use them
for connecting between regions. That said, anything between data
centers should be encrypted, and arguably compressed;
http://3scale.github.com/2012/07/25/fun-with-redis-replication/ offers
some reasons why.

- Josiah

Dvir Volk

unread,
Nov 12, 2012, 2:27:31 PM11/12/12
to redi...@googlegroups.com
Amazon VPC is their cloud VPN of sorts:

Josiah Carlson

unread,
Nov 12, 2012, 2:31:27 PM11/12/12
to redi...@googlegroups.com
The issue is that you still have the cross region issue of needing to
have an external IP address and communicating between them.

- Josiah

Dvir Volk

unread,
Nov 12, 2012, 2:35:25 PM11/12/12
to redi...@googlegroups.com
I haven't read their FAQ entirely but from what I gather, the answers in this section suggest that it is possible, the only limit is multiple AZs can't be in the same subnet:

but anyway, there should be a way to do this in sentinel.

Josiah Carlson

unread,
Jan 17, 2013, 11:57:25 AM1/17/13
to redi...@googlegroups.com
As stated earlier in the thread, this isn't a Redis issue, this is an
IP configuration issue, and a "how do we get our traffic
compressed/encrypted between Redis" issue.

If you set up a VPN and use the VPN addresses, you can handle the IP
configuration and encryption issues, though depending on your VPN, you
may have bandwidth issues (unrelated to compression).

Regards,
- Josiah

On Thu, Jan 17, 2013 at 8:42 AM, Roma Koshel <roma....@gmail.com> wrote:
> I have the same problem. Is there a way to do this with redis?
> https://groups.google.com/d/msg/redis-db/-/Zt5igIAK2bkJ.

Roma Koshel

unread,
Jan 18, 2013, 8:57:42 AM1/18/13
to redi...@googlegroups.com
Can I set sentinel's IP(amazon EC2 public IP) manualy in sentinel.conf that others sentinels know public IP, not private?
Reply all
Reply to author
Forward
0 new messages