Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add async consul server name resolve feture. #146

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Table of Contents
* [upsync_timeout](#upsync_timeout)
* [upsync_type](#upsync_type)
* [strong_dependency](#strong_dependency)
* [upsync_resolver](#upsync_resolver)
* [upsync_dump_path](#upsync_dump_path)
* [upsync_lb](#upsync_lb)
* [upstream_show](#upstream_show)
Expand Down Expand Up @@ -53,7 +54,8 @@ http {
server 127.0.0.1:11111;

# all backend server will pull from consul when startup and will delete fake server
upsync 127.0.0.1:8500/v1/kv/upstreams/test upsync_timeout=6m upsync_interval=500ms upsync_type=consul strong_dependency=off;
upsync consul.example.com:8500/v1/kv/upstreams/test upsync_timeout=6m upsync_interval=500ms upsync_type=consul strong_dependency=off;
upsync_resolver 192.158.15.130 192.168.15.248 valid=300s;
upsync_dump_path /usr/local/nginx/conf/servers/servers_test.conf;
}

Expand Down Expand Up @@ -198,7 +200,11 @@ The parameters' meanings are:
* upsync_type

pulling servers from conf server type.


* upsync_resolver

upsync server hostname resolver, can add one or more dns server.

* strong_dependency

when nginx start up if depending on consul, and consul is not working, nginx will boot failed, otherwise booting normally.
Expand Down
Loading