igeoorge 26 Posted August 18, 2019 Posted August 18, 2019 Hello friends Start using NGINX with the help of a friend. I noticed considerable use of the hds and would like to know if this is normal. I know some benefits of using nginx, but I would like to know more about
igeoorge 26 Posted August 18, 2019 Author Posted August 18, 2019 Hi luke I believe that using NGINX may have made the server faster. Right? There is a matter of being able to load balance ... I will test it soon.
pir8radio 1305 Posted August 18, 2019 Posted August 18, 2019 (edited) Hi luke I believe that using NGINX may have made the server faster. Right? There is a matter of being able to load balance ... I will test it soon. Faster? Kind of... If you are using http2 but the majority of files are being pulled from emby and re-served to the client so having a middle man can actually slow things down a little if nginx is not setup correctly. nginx is usually only used if you have multiple http servers (application servers) that you want to serve to the same two ports 443 & 80 usually. With nginx you also have more control over what you are serving to the clients.. But generally no its not really installed to make things faster especially if you are not using the caching features. Edited August 18, 2019 by pir8radio 1
igeoorge 26 Posted August 18, 2019 Author Posted August 18, 2019 Hi friend Can I give my settings for review? I noticed the high use on hd where is the server and where is the content. This is normal?
pir8radio 1305 Posted August 18, 2019 Posted August 18, 2019 Hi friend Can I give my settings for review? I noticed the high use on hd where is the server and where is the content. This is normal? click my avatar and compare to my config there. First.. unless you are doing something special .
igeoorge 26 Posted August 18, 2019 Author Posted August 18, 2019 I think I'm doing right, I use your settings. Thank you.
igeoorge 26 Posted August 18, 2019 Author Posted August 18, 2019 About the high use of HD, is it normal?
pir8radio 1305 Posted August 18, 2019 Posted August 18, 2019 About the high use of HD, is it normal? depends, if emby is still scanning images in the background. nginx wouldnt be adding much hd activity. go to start, type resource monitor and go to the disk tab to see what is using the drive.
igeoorge 26 Posted August 18, 2019 Author Posted August 18, 2019 I dont understand. Can you explain where the error is?
darkassassin07 619 Posted August 18, 2019 Posted August 18, 2019 (edited) I don't know much about this part, but I believe what you are seeing is responses comming from emby, being buffered to a temp file by nginx, then that buffer being read out to the client connected to nginx. Adding the line: proxy_buffering off; Should prevent this and directly pass responses to the client through nginx. @@pir8radio can you weigh in on this? I'm really not familiar with it. http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering Edited August 18, 2019 by darkassassin07 2
igeoorge 26 Posted August 18, 2019 Author Posted August 18, 2019 @darkassassin07 you as always are very helpful, thank you very much. Do you advise disabling this feature or leaving it enabled?
igeoorge 26 Posted August 18, 2019 Author Posted August 18, 2019 @@pir8radio I currently have only one server. Do you recommend using NGINX?
pir8radio 1305 Posted August 19, 2019 Posted August 19, 2019 @@pir8radio I currently have only one server. Do you recommend using NGINX? If you do not have a need for the features then its another thing to slow things down and troubleshoot when you have issues.
pir8radio 1305 Posted August 19, 2019 Posted August 19, 2019 I don't know much about this part, but I believe what you are seeing is responses comming from emby, being buffered to a temp file by nginx, then that buffer being read out to the client connected to nginx. Adding the line: proxy_buffering off; Should prevent this and directly pass responses to the client through nginx. @@pir8radio can you weigh in on this? I'm really not familiar with it. http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering Good call, I guess I have never seen this write to a file, I've always had enough ram to support the buffering.
darkassassin07 619 Posted August 19, 2019 Posted August 19, 2019 @darkassassin07 you as always are very helpful, thank you very much. Do you advise disabling this feature or leaving it enabled? I'd say play around with it. Disable it for a bit and see if it improves performance for you. It seems a bit odd that its writing to file at all though. I haven't experienced that myself. How is your ram usage looking? How much do you actually have total? My nginx proxy on a rpi 2b+ only has 1gb ram total and I dont see this so I'm really not certain.
igeoorge 26 Posted August 19, 2019 Author Posted August 19, 2019 (edited) Hi, Emby and NGINX are on the same server. Currently has 64gb of ram. I disabled it and am testing. Edited August 19, 2019 by igeoorge
Luke 40091 Posted January 27, 2020 Posted January 27, 2020 Faster? Kind of... If you are using http2 but the majority of files are being pulled from emby and re-served to the client so having a middle man can actually slow things down a little if nginx is not setup correctly. nginx is usually only used if you have multiple http servers (application servers) that you want to serve to the same two ports 443 & 80 usually. With nginx you also have more control over what you are serving to the clients.. But generally no its not really installed to make things faster especially if you are not using the caching features. Emby Server 4.4 will have http2 support on Windows and Linux. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now