Welcome! Log In Create A New Profile

Advanced

Re: nginx и /etc/hosts

October 02, 2014 08:30AM
On 02 Oct 2014, at 15:06, Anton Kiryushkin <swood@fotofor.biz> wrote:

> А можно у вас уточнить еще два момента.
> 1. Зачем nginx вызывает эти функции libc, например, если в нашем случае мы не используем в proxy_pass домены, а только IP. Верно ли предположение, что происходит вызов gethostbyname на IP?

Если в proxy_pass описан upstream с серверами, заданными IP, то при сборке —with-ipv6
используется getaddrinfo(). А уж что оно делает, зависит от libc.

> 2. Как оптимизировать это место, если файл hosts достаточно большой?

Собрать без ipv6.


--
Igor Sysoev
Join us for nginx.conf 2014, October 20-22, San Francisco.
Get 25% off with code NGINXUG: http://nginx.com/nginxconf/_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx и /etc/hosts

Anton Kiryushkin October 01, 2014 08:30PM

Re: nginx и /etc/hosts

Igor Sysoev October 02, 2014 02:44AM

Re: nginx и /etc/hosts

Anton Kiryushkin October 02, 2014 07:08AM

Re: nginx и /etc/hosts

mva October 02, 2014 07:24AM

Re: nginx и /etc/hosts

Anton Kiryushkin October 02, 2014 07:32AM

Re: nginx и /etc/hosts

Алексей Сундуков October 03, 2014 02:14AM

Re: nginx и /etc/hosts

Daniel Yavorovych October 03, 2014 02:44AM

Re: nginx и /etc/hosts

mva October 03, 2014 04:04AM

Re: nginx и /etc/hosts

Igor Sysoev October 02, 2014 08:30AM

Re: nginx и /etc/hosts

Илья Шипицин October 02, 2014 01:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready