<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have nginx set up on 4 servers for a video streaming
project but I have drop out issues.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> Server A is a simple proxy server that passes through
the requests to the backend box server B which holds the content.<o:p></o:p></p>
<p class=MsoNormal> Server C is another proxy that passes through requests
to Server D which houses the html, sql, php. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>So while a user is on a page they video is passed to them
from Server B through Server A. The problem I have is that there have been
reports of the stream being cut after say 20 minutes or so (this time varies)
and therefore stopping the viewing of the video. I have experimented with
different settings but am having real difficulty finding anything that solves
this problem. Here is my proxy conf file:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>user nginx nginx;<o:p></o:p></p>
<p class=MsoNormal>worker_processes 2;<o:p></o:p></p>
<p class=MsoNormal>pid
logs/nginx.pid;<o:p></o:p></p>
<p class=MsoNormal>error_log logs/error.log warn;<o:p></o:p></p>
<p class=MsoNormal>events { worker_connections 1024; }<o:p></o:p></p>
<p class=MsoNormal>http {<o:p></o:p></p>
<p class=MsoNormal>
include conf/mime.types;<o:p></o:p></p>
<p class=MsoNormal> default_type
application/octet-stream;<o:p></o:p></p>
<p class=MsoNormal>
sendfile on;<o:p></o:p></p>
<p class=MsoNormal> tcp_nopush on;<o:p></o:p></p>
<p class=MsoNormal> tcp_nodelay on;<o:p></o:p></p>
<p class=MsoNormal> limit_zone one
$binary_remote_addr 10m;<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> server {<o:p></o:p></p>
<p class=MsoNormal>
limit_conn one 2;<o:p></o:p></p>
<p class=MsoNormal>
listen 1.2.3.4:80;<o:p></o:p></p>
<p class=MsoNormal> server_name
proxy.website.com;<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> location / {<o:p></o:p></p>
<p class=MsoNormal>
proxy_pass http://1.2.3.4:8008/;<o:p></o:p></p>
<p class=MsoNormal>
proxy_redirect off;<o:p></o:p></p>
<p class=MsoNormal>
proxy_buffering off;<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>
proxy_set_header
Host
$host;<o:p></o:p></p>
<p class=MsoNormal>
proxy_set_header
X-Real-IP $remote_addr;<o:p></o:p></p>
<p class=MsoNormal>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<o:p></o:p></p>
<p class=MsoNormal>#
client_max_body_size 10m;<o:p></o:p></p>
<p class=MsoNormal>#
proxy_connect_timeout 90;<o:p></o:p></p>
<p class=MsoNormal>#
proxy_send_timeout 90;<o:p></o:p></p>
<p class=MsoNormal>#
proxy_read_timeout 90;<o:p></o:p></p>
<p class=MsoNormal>#
proxy_temp_file_write_size 64k;<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I would be most grateful any pointers anyone could give me.
There is 100mbit constant passing through this proxy btw.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Kind regards.<o:p></o:p></p>
</div>
</body>
</html>