Set up Redis on Windows Azure VM (Windows) and make it reachable to outher VMs under the same cloud service

StackOverflow https://stackoverflow.com/questions/11284605

Question

Here is my scenario:

I have three Windows VMs on Windows Azure (which is at its preview stage right now) and all the VMs are connected to each other, in other words they are under the same cloud service. What I need to do now is that I will use one VM only for Redis and the other two VMs need to talk to it. I don't wanna open up the redis to the whole World for several reasons and one of them is that I don't want to talk to it through the load balancer. I want my VMs to talk to it directly (as explained here: Bypass the load balancer when communicating servers between each other).

I consider using MSOpenTech implementation of Redis. Any I idea how I can configure a structure like this?

Était-ce utile?

La solution 2

I figured this out by trying it out. Here is the solution:

SignalR with Redis Running on a Windows Azure Virtual Machine

Autres conseils

Running Redis on A Windows Azure Virtual Machine (Windows or Linux) is exactly same as any other machine so I don't think you will met any problem there.

If you have one instance of Virtual Machine it is not configured through Load Balancer and you can see that when you will add endpoint to your VM. Only if you have more then 1 instances of a virtual machine, and then you add endpoint, then you will have a chance to configure the load blanacer for that specific endpoint. In your case as you want to run Redis on one single VM, you are really not behind load balancer.

IF you want to have your all 3 machines talking to each other you can create a virtual network and provision all 3 machines withing this VNET so they can talk to each other the way you want.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top