What is the optimized configuration for FLV stream
john.wang507
nginx-forum at nginx.us
Thu Jan 27 07:44:52 MSK 2011
Hi,
I'm configing a http(pseudo)-stream server for flv media files. As a
newcomer to Nginx, I'm wondering what is the special configuration
should I care about on performance/throughput etc. The following is my
current config which is straightforward:
[code]
# My Stream media(flv) server
server {
listen 80;
server_name vd.my.domain;
default_type application/octet-stream;
sendfile on;
root /path/to/flv/files/
location ~* \.flv$ {
flv;
}
}
[/code]
I fount some points in this post
"[url=http://forum.nginx.org/read.php?2,77934,77934]nginx slow at
streaming flv[/url]", but it's seemed a bit old and some directives not
available in the latest nginx version . Any suggestion ?
Especially, according to the post mentioned above, should I turn off the
[b]sendfile[/b] ? shoud it be better to using [b]directio[/b] and
[b]read_ahead[/b] ? or should I put another Nginx instance in front of
this one to proxy it to use the proxy cache ability of nginx? I know
the best way is to test by myself, but a right direction guide will help
me a lot.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,169958,169958#msg-169958
More information about the nginx
mailing list