Welcome! Log In Create A New Profile

Advanced

Re: nginx 10K maps

Maxim Dounin
October 06, 2016 09:40AM
Hello!

On Thu, Oct 06, 2016 at 03:52:44PM +0300, Vasil Mikhalenya wrote:

> Добрый день,
>
> коллеги, возможно вы подскажите насколько хорошо nginx справится с 1000 или
> 10000 map' ов в конфигурации, вида
>
> map $geoip_country_code $8048cd487a8d1c21c436e30a9184bac7_country_allow {
> default 1;
> RU 0;
> GB 0;
> US 0;
> }
>
> какие возможны ограничения или проблемы, нужно ли
> менять map_hash_bucket_size и map_hash_max_size

Крутить надо будет variables_hash_bucket_size и
variables_hash_max_size.

В остальном каких-либо проблем быть не должно, но небольшое
количество комбинированных блоков map{} - скорее всего будет
эффективнее.

--
Maxim Dounin
http://nginx.org/

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

nginx 10K maps

Vasil Mikhalenya October 06, 2016 08:54AM

Re: nginx 10K maps

Maxim Dounin October 06, 2016 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
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