hashicorp / hashicorp/consul

Avoid querying local dc with prepared query

Open
#3,250 6 comments 7 reactions 1 assignee Claimed by @hanshasselberg View on GitHub
theme/federation-usability theme/prepared-query type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

Prepared query is a great mechanism.

It will be very likely that the DC list will follow the precedence of which DC to query.
Right now the local DC you execute the query from has an higher priority than the DC list inside the prepared query.
The suggestion is to add "skip the local datacenter" attribute with a true/false value to prepared query (json format).
https://www.consul.io/api/query.html#sample-payload

This request discussed also in consul google group, @slackpad suggested to create a feature request.
https://groups.google.com/forum/#!topic/consul-tool/O-JWve5uN0E

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.