Do you have an Ubuntu package for Nginx installed also (usually
installed in /usr/sbin)? Depending on how you are starting it the wrong
executable may be being used.
Kind Regards
Andrew
Everything indicates it was built --with-threads, so I’m not sure where to go
from here
Thanks
Richard
Ah! That was my next guess. I’m glad you sorted it. If you have this
problem again there is a way to do a rolling upgrade without a
start/stop, see this link for more info:
Добрый день.
Не понятно мне, куда помещать настройку по пулам.
uname -orm
FreeBSD 10.1-RELEASE-p12 amd64
nginx -v
nginx version: nginx/1.8.0
nginx собран с оцией --with-threads
Далее.
nginx.conf в секцию http добавил:
thread_pool one threads=32;
thread_pool cen threads=32;
После делаю проверку.
nginx -t
nginx: [emerg] “thread_pool” directive is not allowed here in
/usr/local/etc/nginx/nginx.conf:46
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
Как в инструкиях сказано, что в секцию http добавляется настройка по
пулам,
а после проверки конфига мне говорится, что опции theread_pool тут не
место.
Как быть в этом случае.
Хочу реализовать отдачу картинок на обном из нагруженных проектов.
И есть ли смысл использовать пулы от nginx на системе FreeBSD 10.1 ?
У меня aio работает, оно помоему по умолчанию до 1,9 ветки.
Я прописывал в локейшены свои aio threads; но это стандартно, хотелось
для
каждого проекта сделать свой пул.
There is a complete and simple configuration in the “Configuring
Thread Pools” section, near the end of the post.
Thanks for the pointer; I’ve had a read through it. It looks
generally good – but it does show the thread_pool directive
at http level: possibly either that or the documentation at Core functionality should be
updated to be consistent?
I think the original poster has the answers wanted – thread_pool goes
outside http, and probably isn’t needed on FreeBSD for file reads –
so it all looks good.
Valentin wrote a good blog post about threads:
updated to be consistent?
Good catch. It should be fixed. Thanks.
I think the original poster has the answers wanted – thread_pool goes
outside http, and probably isn’t needed on FreeBSD for file reads –
so it all looks good.