-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Avoid querying local dc with prepared query #3250
Comments
+1 I'd rather have a global query that I can execute everywhere, but which defines the best datacenter order in itself, not based on the local dc used. |
Hello @hagay3, is this still something you are interested in adding? Just stumbled over your PR. |
Still can be helpful @i0rek |
I got confused for a second and also answered on the PR. Would you or @blop be willing to provide a PR (or rebase the exsting one)? I am still thinking about @pierresouchay's #4092 (comment). Right now I am leaning towards 2 states: true and false just because it is the simpler feature. The 3rd state Lets continue the discussion here. |
Hey there, This issue has been automatically closed because there hasn't been any activity for at least 20 days. If you are still experiencing problems, or still have questions, feel free to open a new one 👍. |
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
Hello, can we get an update on this ? This has been staled for years. |
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
- Add option SkipLocalDatacenter in Failover section, defaulted to false, which enable the possibility to never execute the query in the local datacenter when set to true. - Also when the option is enabled, if the local datacenter is listed in the failover datacenters, execute the query locally instead of triggering remotely. - Add more tests on prepared query This patch solves issue described in hashicorp#3250
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
The text was updated successfully, but these errors were encountered: