Re: load balancer on nginx : how to monitoring backend ?

2016-01-27 Thread Alexandre
Monitoring of backend seems to be possible with NGINX PLUS. Can you confirm ? http://nginx.org/en/docs/http/ngx_http_upstream_module.html https://www.nginx.com/products/ Thank you Alexande. On 27/01/16 22:37, Alexandre wrote: Hello, thank you I'll test. It is not possible to test the nginx

Re: nginx 301 редирект и исключения.

2016-01-27 Thread Синицкий Павел Евгеньевич
location =/ { _ваши_настройки_ } location / { return 301 ... } Вы это имеете ввиду? 26 января 2016 г., 20:50 пользователь bagas написал: > Dmitry Ivanov Wrote: > --- > > Здравствуйте, bagas. > > > > Вы писали

Best performance test tool

2016-01-27 Thread Ortal
Hello, I created a NGINX module, I am trying to do a benchmark on my module. I would like to check the performance on a post requests (different files...). I tried to use ab, wrk and locust. I tried running each one of the tools on the same NGINX servers and different servers. In all of my tests

Re: nginx 301 редирект и исключения.

2016-01-27 Thread bagas
Dmitry Ivanov Wrote: --- > Здравствуйте, bagas. > > Вы писали 26 января 2016 г., 19:08:42: > > > Добрый вечер. > > Подскажите пожалуйста. > > Как из 301 редиректа можно исключить что бы главная страница > > http://www.site.local открывалась как

Re: server name и динамические поддомены

2016-01-27 Thread denis
27.01.2016 10:46, tetramin пишет: Откуда берётся этот www? В скриптах сайта нет и не было такого никогда. а в htaccess? Можно включить дебаг лог и смотреть полный процесс обработки, но там очень много мусора. ___ nginx-ru mailing list

Re: server name и динамические поддомены

2016-01-27 Thread Валентин Бартенев
On Wednesday 27 January 2016 02:46:59 tetramin wrote: > На всякий случай прилагаю полный конфиг. > Фронтенд: http://pastebin.com/0v1vWSTK > Бэкенд: http://pastebin.com/FJqGjLnS > > Также, на всякий случай, выкладываю лог: http://pastebin.com/khJJWaEL > > При таких настройках адрес в адресной

Re: nginx-1.9.10

2016-01-27 Thread kpoxa
Добрый день. Поясните алгоритм работы worker_cpu_affinity auto, привязываются процессы по порядку по одному на ядро? 26 января 2016 г., 19:31 пользователь Maxim Dounin написал: > Изменения в nginx 1.9.10 > 26.01.2016 > > *) Безопасность: при использовании директивы

Re: server name и динамические поддомены

2016-01-27 Thread tetramin
На всякий случай прилагаю полный конфиг. Фронтенд: http://pastebin.com/0v1vWSTK Бэкенд: http://pastebin.com/FJqGjLnS Также, на всякий случай, выкладываю лог: http://pastebin.com/khJJWaEL При таких настройках адрес в адресной строке браузера заменяется на www.example.ru и идёт бесконечный

Re: nginx-1.9.10

2016-01-27 Thread George
Thanks updated to 1.9.10 fine with ngx_brotli + ngx_pagespeed 1.10 branch :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,264158,264187#msg-264187 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: load balancer on nginx : how to monitoring backend ?

2016-01-27 Thread Maxim Konovalov
On 1/28/16 1:32 AM, Alexandre wrote: > Monitoring of backend seems to be possible with NGINX PLUS. Can you > confirm ? > > http://nginx.org/en/docs/http/ngx_http_upstream_module.html > https://www.nginx.com/products/ > Yes, that's right. > Thank you > > Alexande. > > On 27/01/16 22:37,

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2016-01-27 Thread dgobaud
Yes the answer is on the elastic load balancer you must use protocol TCP or SSL - not HTTP or HTTPS. The HTTP/HTTPS listeners keep the connections open for reuse Posted at Nginx Forum: https://forum.nginx.org/read.php?2,237386,264196#msg-264196

Re: load balancer on nginx : how to monitoring backend ?

2016-01-27 Thread Alexandre
Hello, On 28/01/16 08:27, Maxim Konovalov wrote: On 1/28/16 1:32 AM, Alexandre wrote: Monitoring of backend seems to be possible with NGINX PLUS. Can you confirm ? http://nginx.org/en/docs/http/ngx_http_upstream_module.html https://www.nginx.com/products/ Yes, that's right. OK, I can not

Re: nginx-1.9.10

2016-01-27 Thread Maxim Dounin
Hello! On Wed, Jan 27, 2016 at 07:19:14PM +0300, kpoxa wrote: > Поясните алгоритм работы worker_cpu_affinity auto, привязываются процессы > по порядку по одному на ядро? Именно так. Можно дополнительно задать маску, чтобы указать, какие именно процессоры следует использовать для привязки.

Re: nginx-1.9.10

2016-01-27 Thread Maxim Konovalov
On 1/27/16 7:19 PM, kpoxa wrote: > Добрый день. > > Поясните алгоритм работы worker_cpu_affinity auto, привязываются > процессы по порядку по одному на ядро? > Из коммит-лога: If enabled, workers are bound to available CPUs, each worker to once CPU in order. If there are more workers than

load balancer on nginx : how to monitoring backend ?

2016-01-27 Thread Alexandre
Hello everyone, I use nginx 1.8.0 on debian (official nginx package with nginx repo) I created a reverse proxy SSL cluster with load balancing. Everything works fine. --- upstream myapp { server srv1; server srv2; } --- --- location ~ ^/myapp { rewrite ^/(.*) /$1

Re: load balancer on nginx : how to monitoring backend ?

2016-01-27 Thread Yichun Zhang (agentzh)
Hello! On Wed, Jan 27, 2016 at 9:10 AM, Alexandre wrote: > > However I wish to monitor the status of the backend. How can I do ? > You may find the lua-resty-upstream-healthcheck library helpful: https://github.com/openresty/lua-resty-upstream-healthcheck But it's much easier to install

Re: nginx-1.9.10

2016-01-27 Thread Валентин Бартенев
On Wednesday 27 January 2016 12:04:00 Aleksei wrote: > Добрый день, > не может ли "использовании директивы keepalive соединения к > бэкендам" это повторятся при использовании stream(nginx-1.9.9) > например в такой конфигурации. > === > #proxy db connection to db1 >

Странное поведение имени upstream-блока и fastcgi_next_upstream

2016-01-27 Thread Stepan Karamyshev
Добрый день! Возник вопрос, в котором не удается разобраться: nginx -V nginx version: nginx/1.8.0 built with OpenSSL 1.0.1p-freebsd 9 Jul 2015 TLS SNI support enabled configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib'

Re: [nginx-announce] nginx-1.8.1

2016-01-27 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.8.1 for Windows https://kevinworthington.com/nginxwin181 (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org.

RE: nginx-1.9.10

2016-01-27 Thread Aleksei
p{padding:0;margin:0;}Добрый день,не может ли "использовании директивы keepalive соединения к бэкендам" это повторятся при использовании stream(nginx-1.9.9)например в такой конфигурации.===#proxy db connection to db1 server { listen 5432 backlog=100

Re: Странное поведение имени upstream-блока и fastcgi_next_upstream

2016-01-27 Thread Maxim Dounin
Hello! On Wed, Jan 27, 2016 at 02:03:09PM +0300, Stepan Karamyshev wrote: [...] > Настроен формат лога: > log_format upstream_log $upstream_addr $upstream_response_time > $upstream_status'; > > Иногда при релоаде nginx вижу в логе > 10.9.2.7:9000, upstreamname 3.000, 0.000 504, 502 > —— >