Skip to content

supply three method for service discovery, pull from consul, push to nginx, based on dns, all needn't reload nginx

License

Notifications You must be signed in to change notification settings

luke-lv/nginx-discovery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Based on nginx-1.8.0, native supporting all nginx function. Add four modules, extending nginx function. Naming nginx-discovery. nginx update upstream-backendlist, not need reloading nginx.

Feature

  • ngx_http_upstream_server_module + ngx_http_upstream_check_module

    you can push backend servers to nginx, dynamic add/del servers to upstream-host. supporting health-checking.

  • nginx-upsync-module + ngx_http_upstream_check_module

    nginx + consul, nginx pull upstream_conf from consul at regular time, supporting health-checking.

  • ngx_http_upstream_dynamic_module

    upstream-host based on domain, nginx will resolve domain at regular time.

Specific information, please take a look at ./modules/$module_name/README.md.

Install

./configure --add-module=/path/to/ngx_http_upstream_check_module --add-module=/path/to/ngx_http_upstream_server_module
make
make install
./configure --add-module=/path/to/ngx_http_upstream_check_module --add-module=/path/to/nginx-upsync-module
make
make install
./configure --add-module=/path/to/ngx_http_upsteam_dynamic_module
make
make install

About

supply three method for service discovery, pull from consul, push to nginx, based on dns, all needn't reload nginx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.4%
  • Perl 4.7%
  • Python 3.1%
  • Other 1.3%
  • Vim Script 0.8%
  • XS 0.4%
  • Other 0.3%