Re: dual stack binding

2018-06-21 Thread Frank Liu
The issue is with this: [150] # service nginx restart Stopping nginx:[FAILED] Since stopping FAILED, the IP/port still in use. That's why start failed with "binding" error. You can try "service nginx stop" along and check error log to see why it

Re: dual stack binding

2018-06-21 Thread abatie
I believe this is related to blocking neighbor discovery on the address for the purposes of doing direct server return load balancing, and not nginx related, thanks! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280234,280239#msg-280239

Re: dual stack binding

2018-06-21 Thread abatie
OK, that's odd: I commented out the ipv4 address and it still fails. It's not a conflict then, so something's odd in the network stack... Posted at Nginx Forum: https://forum.nginx.org/read.php?2,280234,280238#msg-280238 ___ nginx mailing list

Re: dual stack binding

2018-06-21 Thread abatie
Yup: eth0 Link encap:Ethernet HWaddr 00:50:56:8C:62:77 inet addr:207.55.17.91 Bcast:207.55.19.255 Mask:255.255.252.0 inet6 addr: fe80::250:56ff:fe8c:6277/64 Scope:Link inet6 addr: 2607:f678::17:79/64 Scope:Global inet6 addr: 2607:f678::17:91/64

Re: dual stack binding

2018-06-21 Thread Steve Wilson
I've no problem with IPv6 on my server using specific v4 and v6 listen statements. Is the IP you're trying to use actually configured on an interface? Steve. On 21/06/2018 21:37, abatie wrote: I have nginx binding to a variety of addresses for ssl and target selection reasons. Now I'm

Re: How to pass connection's real IP through Nginx smtp proxy to Postfix/postscreen backend?

2018-06-21 Thread Frank Liu
Try proxy protocol. On Thu, Jun 21, 2018 at 12:47 PM, wrote: > I run Postfix 3.3.1 & Nginx 1.15.0 > > Both work great. > > I'm beginning to experiment with putting Postfix (and eventually other) > server behind Nginx (v 1.15.0) setup as a mail (SMTP) proxy. > > Without the proxy, Postfix logs

dual stack binding

2018-06-21 Thread abatie
I have nginx binding to a variety of addresses for ssl and target selection reasons. Now I'm trying to add ipv6 support. Since I'm using specific listen addresses, I wouldn't expect to have a binding conflict, however I am, and I'm hoping someone can point me in the right direction: server

Re: Не работает proxy cache lock

2018-06-21 Thread ZZZ
Прошу прощения, пропустил вторую часть ответа. С proxy_cache_lock_age и proxy_cache_lock_age я уже игрался. Никакого влияния на ситуацию не заметил. Равномерность трудно проверить, так как запросов довольно много и какие-то флуктуации-таки есть. Но похоже что да, равномерно. Прямо полное

How to pass connection's real IP through Nginx smtp proxy to Postfix/postscreen backend?

2018-06-21 Thread cyang
I run Postfix 3.3.1 & Nginx 1.15.0 Both work great. I'm beginning to experiment with putting Postfix (and eventually other) server behind Nginx (v 1.15.0) setup as a mail (SMTP) proxy. Without the proxy, Postfix logs show an inbound connection to my real IP Jun 21 12:12:31 mailprox

Re: Не работает proxy cache lock

2018-06-21 Thread ZZZ
К сожалению, не всё так просто. Ответ бекенда сильно меньше секунды, а умолчания для proxy_{connect,send,read}_timeout аж минута. Чтобы уберится, что дело точно не в этом, сделал так: proxy_connect_timeout 1h; proxy_send_timeout 1h; proxy_read_timeout 1h; Я, всё же,

Re: Не работает proxy cache lock

2018-06-21 Thread Andrey Kopeyko
ZZZ писал 2018-06-21 17:43: Доброго утра! Добрый день! Я напоролся на проблему с proxy_cache_lock. Ниже минимальный конфиг, на который я шлю порядка 150 простых запросов в секунду. Каждые пять секунд, когда инвализируется кеш, на апстрим уходит от пяти до двадцати запросов, в зависимости

Re: Не работает proxy cache lock

2018-06-21 Thread ZZZ
Спасибо, но мне не нужен stale. Мне нужна именно блокировка. После инвалидации кеша клиент не должен получить старых данных. Sergey Kandaurov Wrote: --- > > On 21 Jun 2018, at 17:43, ZZZ wrote: > > > > Доброго утра! > > > > Я напоролся на

Re: Не работает proxy cache lock

2018-06-21 Thread Sergey Kandaurov
> On 21 Jun 2018, at 17:43, ZZZ wrote: > > Доброго утра! > > Я напоролся на проблему с proxy_cache_lock. Ниже минимальный конфиг, на > который я шлю порядка 150 простых запросов в секунду. Каждые пять секунд, > когда инвализируется кеш, на апстрим уходит от пяти до двадцати запросов, в

Не работает proxy cache lock

2018-06-21 Thread ZZZ
Доброго утра! Я напоролся на проблему с proxy_cache_lock. Ниже минимальный конфиг, на который я шлю порядка 150 простых запросов в секунду. Каждые пять секунд, когда инвализируется кеш, на апстрим уходит от пяти до двадцати запросов, в зависимости от времени ответа апстрима, тогда как я жду, что

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread rihad
Спасибо, отписал майнтейнеру порта www/nginx joneum@ Posted at Nginx Forum: https://forum.nginx.org/read.php?21,280196,280225#msg-280225 ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread Alex Domoradov
> Или сообщите разработчику eustas о проблеме, > чтобы тот сам связался с тем, кто занимается портом nginx, > чтобы тот поправил ссылку на модуль eustas:ngx_brotli извиняюсь за оффтопик, но это было мощно :D On Thu, Jun 21, 2018 at 1:42 PM Gena Makhomed wrote: > On 20.06.2018 20:18, rihad

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread Gena Makhomed
On 20.06.2018 20:18, rihad wrote: После обновления nginx с 1.12 до 1.14 на FreeBSD 10 открытые удаленные файлы (lsof +L1) стремительно растут для nginx. В обеих версиях один конфиг, и одни опции постройки. OPTIONS_FILE_SET+=BROTLI Судя по файлу

How to redirect the call from nginx conf if proxy pass is successfull

2018-06-21 Thread ChatterjeeAtanu
Hello Team, Need your help actually we are passing docker private registry calls from the nginx conf using reverse proxy . but here one of things we need to trap like when docker manifest/blob downloads are successful and error we have to report to the some pcf service running somewhere . using

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread Dmytro Lavryk
# cat brotli.conf.inc brotli on; brotli_min_length 200; brotli_comp_level 6; brotli_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml application/atom+xml application/rss+xml text/plain text/xsd text/xsl

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread rihad
Dmytro Lavryk Wrote: --- > Точно. Там люди ходят. Не самые посещаемые сайты, но все же... > > curl -H 'Accept-Encoding: br' -I https://site.address/ > ... > content-encoding: br Вы используете brotli on? Контент ложится в кэш br, или в сыром

Re: TCP load balancing with domain name

2018-06-21 Thread Maxim Konovalov
Aravind, On 21/06/2018 11:35, aRaviNd wrote: > Hi All, > > I am trying to configure tcp load balancing with Nginx with below > configuration. > > stream { >     server { >         listen 25; >         resolver 1.1.1.1; >         proxy_pass $host:25; >     } > } > > If I try to connect

TCP load balancing with domain name

2018-06-21 Thread aRaviNd
Hi All, I am trying to configure tcp load balancing with Nginx with below configuration. stream { server { listen 25; resolver 1.1.1.1; proxy_pass $host:25; } } If I try to connect mx1.abc.com i would like to expand my variable $host to mx1.abc.com and internally

Re: Как работает include

2018-06-21 Thread Aleksandr_Petrov
Dmitry Ivanov Wrote: --- > Здравствуйте, Aleksandr_Petrov. > > Вы писали 20 июня 2018 г., 19:03:50: > > > Подскажите пожалуйста как работает include в конфиге nginx. Указываю > три > > include в секцию server, в предположение что они добавят

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread Dmytro Lavryk
Точно. Там люди ходят. Не самые посещаемые сайты, но все же... curl -H 'Accept-Encoding: br' -I https://site.address/ HTTP/2 200 server: nginx date: Thu, 21 Jun 2018 07:23:26 GMT content-type: text/html; charset=windows-1251 vary: Accept-Encoding set-cookie:

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread rihad
Dmytro Lavryk Wrote: --- > Собрал, включил, перезапустил. > Работает часа 3. Описаного эффекта не наблюдается - все работает. Точно зажимает? Попробуйте плиз на своем ресурсе запросить что-то по https. curl -H 'Accept-Encoding: br' -I

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread Dmytro Lavryk
Собрал, включил, перезапустил. Работает часа 3. Описаного эффекта не наблюдается - все работает. Posted at Nginx Forum: https://forum.nginx.org/read.php?21,280196,280211#msg-280211 ___ nginx-ru mailing list nginx-ru@nginx.org

Re: Открытые файлы растут после обновления до 1.14

2018-06-21 Thread rihad
Отлключение компрессии brotli на лету решило проблему утечки FD: brotli off; Теперь осталось понять почему оно глючит. Posted at Nginx Forum: https://forum.nginx.org/read.php?21,280196,280210#msg-280210 ___ nginx-ru mailing list nginx-ru@nginx.org