[GitHub] [apisix] fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2023-01-29 Thread via GitHub
fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1407628612 I upgrade to APISIX 3.1.0 and use the Consul service type, it works fine, so we can avoid this problem. -- This is an automated message from the Apache Git Service. To respond to the

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-07-05 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1174863384 As the [service-lookups](https://www.consul.io/docs/discovery/dns#service-lookups) documentation said, `When DNS SRV responses are sent, the order is randomized`. -- This is an auto

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-07-04 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1174038142 Thanks a lot. I will try to upgrade my consul to find out if the DNS search results are still random. -- This is an automated message from the Apache Git Service. To respond to the me

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-07-02 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1173019225 Which version of consul did you use in this case? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-07-01 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1172453802 Is there any progress? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comme

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1148134547 > > If all the points can visit, this test case can't reproduce my problem. > > My problem is the same request_uri var should visit the same endpoint. > > I know your problem. Y

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1148132692 > And I would like to know how to build the Consul DNS Service you mentioned to reproduce it. In my environment, set up Consul Server cluster with ports.DNS = 53 parament. Using

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1147435327 > > According to your test cases, `127.0.0.2` can't visit, right? > > No, in my test case, `127.0.0.2` can be visited. `127.0.0.1` ~ `127.0.0.8` all point to the local loopback.

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1147433691 > > And I think maybe you should reproduce it with Consul DNS Service instead of CoreDNS. > > Have you tried this: https://github.com/apache/apisix/blob/master/docs/en/latest/dis

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1147311915 ``` ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.2 <<>> pushgateway.service.xxx.consul @ip-address -t srv ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUE

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1147278261 When I use Consul DNS Service and dig the `pushgateway.service.xxx.consul` with SRV, the `;; ANSWER SECTION:` output is random but not sorted list. -- This is an automated message fro

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1147266672 I try to reproduce it and it happens again. My test router and upstream configs are below: ``` # Router config { "uri": "/*", "name": "Dns_Tester", "methods":

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1147237228 According to your test cases, `127.0.0.2` can't visit, right? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use th

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-06-06 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1147157321 I can't find the set-dns script now, could you send me a new one? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and us

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-03-23 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1077042766 I re-edit my Steps to Reproduce above. And sorry that I can't paste the configuration because there are too many production details inside. -- This is an automated message from the A

[GitHub] [apisix] Fatpa commented on issue #6694: bug: using DNS discovery SRV and CHash algorithm can't work like node upstream type

2022-03-23 Thread GitBox
Fatpa commented on issue #6694: URL: https://github.com/apache/apisix/issues/6694#issuecomment-1076158870 According to the apisix/apisix/discovery/dns/init.lua - _M.nodes, I think the DNS record data should be returned by sort. -- This is an automated message from the Apache Git Service.