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

docs: As a user, I want to specify different registries for different routes #6969

Closed
bin-ya opened this issue Apr 29, 2022 · 2 comments · Fixed by #7414
Closed

docs: As a user, I want to specify different registries for different routes #6969

bin-ya opened this issue Apr 29, 2022 · 2 comments · Fixed by #7414
Assignees
Labels
For student This issue is reserved for the students in open source sponsor projects good first issue Good for newcomers

Comments

@bin-ya
Copy link
Contributor

bin-ya commented Apr 29, 2022

Description

https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L304-L317
I found that the registries supported in our document are dns, eureka, consul-kv and nacos, but now there are only dns and eureka in config-default.yaml file, so I think it needs to add consul-kv and nacos to config-default.yaml

@apache apache deleted a comment from bin-ya Apr 29, 2022
@bin-ya bin-ya changed the title feat: As a user, I want to specify different registries for different routes docs: As a user, I want to specify different registries for different routes Apr 29, 2022
@spacewander spacewander added good first issue Good for newcomers For student This issue is reserved for the students in open source sponsor projects labels May 10, 2022
monkeyDluffy6017 added a commit to monkeyDluffy6017/apisix that referenced this issue Jul 8, 2022
monkeyDluffy6017 added a commit to monkeyDluffy6017/apisix that referenced this issue Jul 8, 2022
@Xlight5
Copy link

Xlight5 commented Nov 17, 2022

[WeOpenStar] I would like to help

@Xlight5
Copy link

Xlight5 commented Nov 17, 2022

try this

nacos:
host:
- "http://${username}:${password}@${host1}:${port1}"
prefix: "/nacos/v1/"
fetch_interval: 30 # default 30 sec
weight: 100 # default 100
timeout:
connect: 2000 # default 2000 ms
send: 2000 # default 2000 ms
read: 5000 # default 5000 ms
consul_kv:
servers:
- "http://127.0.0.1:8500"
- "http://127.0.0.1:8600"
prefix: "upstreams"
skip_keys: # if you need to skip special keys
- "upstreams/unused_api/"
timeout:
connect: 2000 # default 2000 ms
read: 2000 # default 2000 ms
wait: 60 # default 60 sec
weight: 1 # default 1
fetch_interval: 3 # default 3 sec, only take effect for keepalive: false way
keepalive: true # default true, use the long pull way to query consul servers
default_server: # you can define default server when missing hit
host: "127.0.0.1"
port: 20999
metadata:
fail_timeout: 1 # default 1 ms
weight: 1 # default 1
max_fails: 1 # default 1
dump: # if you need, when registered nodes updated can dump into file
path: "logs/consul_kv.dump"
expire: 2592000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For student This issue is reserved for the students in open source sponsor projects good first issue Good for newcomers
Projects
None yet
3 participants