Welcome! Log In Create A New Profile

Advanced

Re: Redirect on specific threshold !!

Valentin V. Bartenev
June 15, 2015 06:46AM
On Sunday 14 June 2015 22:12:37 shahzaib shahzaib wrote:
> Hi,
>
> We're using Nginx to serve videos on one of our Storage server(contains
> mp4 videos) and due to high amount of requests we're planning to have a
> separate caching Node based on Fast SSD drives to serve "Hot" content in
> order to reduce load from Storage. We're planning to have following method
> for caching :
>
> If there are exceeding 1K requests for http://storage.domain.com/test.mp4 ,
> nginx should construct a Redirect URL for rest of the requests related to
> test.mp4 i.e http://cache.domain.com/test.mp4 and entertain the rest of
> requests for test.mp4 from Caching Node while long tail would still be
> served from storage.
>
> So, can we achieve this approach with nginx or other like varnish ?
>
[..]

You can use limit_conn and limit_req modules to set limits:
http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html
http://nginx.org/en/docs/http/ngx_http_limit_req_module.html

and the error_page directive to construct the redirect.

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirect on specific threshold !!

shahzaib1232 June 14, 2015 01:14PM

Re: Redirect on specific threshold !!

GreenGecko June 14, 2015 05:22PM

Re: Redirect on specific threshold !!

ryd994 June 15, 2015 12:16AM

Re: Redirect on specific threshold !!

shahzaib1232 June 15, 2015 03:08AM

Re: Redirect on specific threshold !!

Valentin V. Bartenev June 15, 2015 06:46AM

Re: Redirect on specific threshold !!

Francis Daly June 16, 2015 05:32PM

Re: Redirect on specific threshold !!

shahzaib1232 August 29, 2015 07:58AM

Re: Redirect on specific threshold !!

Francis Daly September 01, 2015 05:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 207
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready