c# - URL to specific Instance of WebRole in Windows Azure -
i have webrole in windows azure deployment few instances. in roles lot of caching. client asks everytime instance specific information, maybe not stored on requested instance. cached informations got "instance"-property, can route request in cloud specific instance (via internal endpoints).
is there way url instance , not deployment? like:
instance1.mydeployment.cloudapp.net?
i think helpful.
thank you.
yes, there is. i'm not sure sdk came in, in csdef file can alter normal endpoints section this
<endpoints> <inputendpoint name="endpoint1" protocol="http" port="80" localport="80" /> <instanceinputendpoint name="endpoint2" localport="80" protocol="tcp"><!--localport must 80 work--> <allocatepublicportfrom> <fixedportrange min="10016" max="10020"/> <!--make range covers # instances might need or scale - bear in mind azure port limits ~25 --> </allocatepublicportfrom> </instanceinputendpoint> </endpoints>
now should able access both
Comments
Post a Comment