Re: Максиму Дунину ngx http upstream keepalive + upstream keepalive patch 100% загрузка CPU
INF[SZ]
nginx-forum на nginx.us
Ср Сен 7 08:59:48 UTC 2011
Максим nginx-1.1.2 с патчем
http://nginx.org/patches/patch-nginx-keepalive-full-5.txt при
./configure \
--user=%{nginx_user} \
--group=%{nginx_group} \
--prefix=%{nginx_datadir} \
--sbin-path=%{_sbindir}/%{name} \
--conf-path=%{nginx_confdir}/%{name}.conf \
--error-log-path=%{nginx_logdir}/error.log \
--http-log-path=%{nginx_logdir}/access.log \
--http-client-body-temp-path=%{nginx_home_tmp}/client_body \
--http-proxy-temp-path=%{nginx_home_tmp}/proxy \
--http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
--pid-path=%{_localstatedir}/run/%{name}.pid \
--lock-path=%{_localstatedir}/lock/subsys/%{name} \
--with-http_secure_link_module \
--with-http_random_index_module \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--with-http_perl_module \
--with-http_geoip_module \
--with-mail \
--with-mail_ssl_module \
--with-cc-opt="%{optflags} $(pcre-config --cflags)" \
--with-ipv6 \
--with-file-aio \
--add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair \
--add-module=%{_builddir}/nginx-%{version}/nginx-upload-progress-module
\
--add-module=%{_builddir}/nginx-%{version}/mod_zip-1.1.6 \
--add-module=%{_builddir}/nginx-%{version}/nginx_upload_module-2.2.0
\
--add-module=%{_builddir}/nginx-%{version}/nginx_mod_h264_streaming-2.2.7
\
--add-module=%{_builddir}/nginx-%{version}/ngx_http_auth_pam_module-1.2
\
--add-module=%{_builddir}/nginx-%{version}/ngx_http_upstream_keepalive-0.6
получаю ошибку
objs/addon/ngx_http_upstream_keepalive-0.6/ngx_http_upstream_keepalive_module.o:(.data+0x0):
multiple definition of `ngx_http_upstream_keepalive_module'
objs/src/http/modules/ngx_http_upstream_keepalive_module.o:(.data+0x0):
first defined here
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/home/mock/BUILD_ROOT/BUILD/nginx-1.1.2'
make: *** [build] Error 2
правильно ли я понимаю, что в патче
http://nginx.org/patches/patch-nginx-keepalive-full-5.txt строки
diff --git a/auto/sources b/auto/sources
--- a/auto/sources
+++ b/auto/sources
@@ -471,6 +471,11 @@ HTTP_UPSTREAM_IP_HASH_MODULE=ngx_http_up
HTTP_UPSTREAM_IP_HASH_SRCS=src/http/modules/ngx_http_upstream_ip_hash_module.c
+HTTP_UPSTREAM_KEEPALIVE_MODULE=ngx_http_upstream_keepalive_module
+HTTP_UPSTREAM_KEEPALIVE_SRCS=" \
+ src/http/modules/ngx_http_upstream_keepalive_module.c"
+
+
MAIL_INCS="src/mail"
MAIL_DEPS="src/mail/ngx_mail.h"
в моем случае лишние ?
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,214936,214938#msg-214938
Подробная информация о списке рассылки nginx-ru