Giter Club home page Giter Club logo

nginx-upstream-serverlist's People

Contributors

abadcafe avatar tclxchengjie-zhou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nginx-upstream-serverlist's Issues

dump files still saved server which is comment at serverlist file

dump files still saved server which is comment at serverlist file.

when server list file is:

#server s1:8081 weight=50 max_fails=2 fail_timeout=3s;
server s2:8081 weight=50 max_fails=2 fail_timeout=3s;
server s3:8081 weight=50 max_fails=2 fail_timeout=3s;

I see dump in server which has nginx-upstream-serverlist moudle:

server s1:8081 weight=50 max_fails=2 fail_timeout=3s;
server s2:8081 weight=50 max_fails=2 fail_timeout=3s;
server s3:8081 weight=50 max_fails=2 fail_timeout=3s;

is this right ? all server list file must return some header?

memory leak when more request is received

I found there is a meory leack issue when I used this on our production env.

We used nginx server with 4core , 4GB memory
When I used nginx without this moudle, on our production env, nginx used 20% memory.
When I just add serverlist_service at http , and no call on it , nginx used 50% memory.

serverlist_service url=http://anther-server/upstream/ conf_dump_dir=/data/temp/dump interval=5s timeout=2s;

When call serverlist_service in upstream, nginx memory will increasing up to almost 100%,

 serverlist apiServerList;
    server fake_server down;
    include /data/temp/apiServerList.conf*;

I had a screen shot for server:

mem-leak

nginx -V output with nginx-upstream-serverlist module:

nginx version: openresty/1.15.8.2
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 
built with OpenSSL 1.1.1d  10 Sep 2019
TLS SNI support enabled
configure arguments: --prefix=/data/server/openresty/nginx --with-cc-opt=-O2 --add-module=../ngx_devel_kit-0.3.1rc1 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_lua-0.10.15 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.7 --with-ld-opt=-Wl,-rpath,/data/server/openresty/luajit/lib --pid-path=/data/server/openresty/nginx/var/nginx.pid --http-client-body-temp-path=/data/server/openresty/nginx/temp/client_body_temp --http-proxy-temp-path=/data/server/openresty/nginx/temp/proxy_temp --http-fastcgi-temp-path=/data/server/openresty/nginx/temp/fastcgi_temp --http-uwsgi-temp-path=/data/server/openresty/nginx/temp/uwsgi_temp --http-scgi-temp-path=/data/server/openresty/nginx/temp/scgi_temp --with-poll_module --with-threads --with-file-aio --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_xslt_module=dynamic --with-http_image_filter_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-http_geoip_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-mail=dynamic --with-mail_ssl_module --with-stream --with-stream=dynamic --with-stream_ssl_module --with-stream_realip_module --with-stream_geoip_module --with-stream_geoip_module=dynamic --with-stream_ssl_preread_module --with-pcre=/data/src/pcre-8.43 --with-zlib=/data/src/zlib-1.2.11 --with-openssl=/data/src/openssl-1.1.1d --add-module=/data/src/nginx-module-vts --add-module=/data/src/nginx-upstream-serverlist --with-stream --with-stream_ssl_preread_module --with-http_ssl_module

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.