Jump to content

nginx no emby benefits


igeoorge

Recommended Posts

igeoorge
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

Link to comment
Share on other sites

igeoorge
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.

Link to comment
Share on other sites

pir8radio

 

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 by pir8radio
  • Like 1
Link to comment
Share on other sites

igeoorge
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?

Link to comment
Share on other sites

pir8radio

 

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 .

Link to comment
Share on other sites

pir8radio

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. 

Link to comment
Share on other sites

darkassassin07

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 by darkassassin07
  • Like 2
Link to comment
Share on other sites

igeoorge

@darkassassin07 you as always are very helpful, thank you very much.

 

Do you advise disabling this feature or leaving it enabled?

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

pir8radio

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.    :)

Link to comment
Share on other sites

darkassassin07

@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.

Link to comment
Share on other sites

igeoorge

Hi,

 

Emby and NGINX are on the same server. Currently has 64gb of ram.

 

I disabled it and am testing.

Edited by igeoorge
Link to comment
Share on other sites

  • 5 months later...

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...