<p>Haven't had a chance to test it yet, and no one has responded. And yeah, Wowza. :)</p>
<p>Nicholas</p>
<div class="gmail_quote">On Jan 4, 2011 7:11 PM, "Alejandro" <<a href="mailto:cdgraff@gmail.com">cdgraff@gmail.com</a>> wrote:<br type="attribution">> Nicholas,<br>> <br>> Any luck with this? works?<br>
> <br>> I need the same feature.... you will need to use this for balancing Wowza<br>> Media Server right?<br>> <br>> Thanks,<br>> Alejandro<br>> <br>> 2010/12/29 Nicholas Tang <<a href="mailto:nicholas.tang@livestream.com">nicholas.tang@livestream.com</a>><br>
> <br>>> Question: is it possible to load balance rtsp servers using Varnish?<br>>> They'd need to "stick" based on client ip. My thought was to try something<br>>> like this:<br>>><br>
>><br>>> backend mobile-1 {<br>>> .host = "";<br>>> include "/usr/local/varnish/etc/varnish/backend.vcl";<br>>> }<br>>><br>>> backend mobile-2 {<br>>> .host = "";<br>
>> include "/usr/local/varnish/etc/varnish/backend.vcl";<br>>> }<br>>><br>>> backend mobile-3 {<br>>> .host = "";<br>>> include "/usr/local/varnish/etc/varnish/backend.vcl";<br>
>> }<br>>><br>>> backend mobile-4 {<br>>> .host = "";<br>>> include "/usr/local/varnish/etc/varnish/backend.vcl";<br>>> }<br>>><br>>> director mobile_rtsp client {<br>
>> { .backend = mobile-1; }<br>>> { .backend = mobile-2; }<br>>> { .backend = mobile-3; }<br>>> { .backend = mobile-4; }<br>>> }<br>>><br>>> sub vcl_recv {<br>>> set req.backend = mobile_rtsp;<br>
>> set client.identity = client.ip;<br>>> return (pipe);<br>>> }<br>>><br>>> sub vcl_pipe {<br>>> # close backend connection after each pipe - this prevents requests from<br>>> stepping on each other<br>
>> # <a href="http://www.varnish-cache.org/trac/wiki/VCLExamplePipe">http://www.varnish-cache.org/trac/wiki/VCLExamplePipe</a><br>>> set bereq.http.connection = "close";<br>>> }<br>>><br>
>><br>>> Thanks,<br>>> Nicholas<br>>><br>>><br>>> *Nicholas Tang**:*<br>>> VP, Dev Ops<br>>><br>>> <a href="mailto:nicholas.tang@livestream.com">nicholas.tang@livestream.com</a><br>
>> |<br>>> t: +1 (646) 495 9707<br>>> |<br>>> m: +1 (347) 410 6066<br>>> |<br>>> 111 8th Avenue, Floor 15, New York, NY 10011<br>>> [image: <a href="http://www.livestream.com">www.livestream.com</a>] <<a href="http://www.livestream.com/">http://www.livestream.com/</a>><br>
>><br>>><br>>> _______________________________________________<br>>> varnish-misc mailing list<br>>> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>>> <a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
>><br></div>