You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by Ming Wen <we...@apache.org> on 2020/05/29 09:29:20 UTC
[DISCUSS] Is APISIX supports Consul DNS for service discovery?
Hello,
I am not sure do we using the `lua-resty-dns` to do dns_resolver work, and
is APISIX supports Consul DNS for service discovery?
for example 127.0.0.1:8600 is the address to the Consul DNS resolver, then
we add configure like this in `config.yaml`:
dns_resolver:127.0.0.1:8600
At this point any upstream hostname, for example `foo` in upstream_url=
http://foo/index.html, will be resolved by Consul.
Thanks,
Ming Wen, Apache APISIX & Apache SkyWalking
Twitter: _WenMing
Re: [DISCUSS] Is APISIX supports Consul DNS for service discovery?
Posted by YuanSheng Wang <me...@apache.org>.
On Fri, May 29, 2020 at 6:15 PM Ming Wen <we...@apache.org> wrote:
> sure, it is real dns.
> we can do test for this, and will be a nice feature.
>
that is a cool feature. ^_^
>
> YuanSheng Wang <me...@apache.org> 于 2020年5月29日周五 下午6:03写道:
>
> > Consul dns_resolver:127.0.0.1:8600
> >
> > Is it a real DNS server? if it is, then we can use it as a standard DNS
> > server.
> >
> >
> >
> >
> >
> > On Fri, May 29, 2020 at 5:29 PM Ming Wen <we...@apache.org> wrote:
> >
> > > Hello,
> > > I am not sure do we using the `lua-resty-dns` to do dns_resolver work,
> > and
> > > is APISIX supports Consul DNS for service discovery?
> > >
> > > for example 127.0.0.1:8600 is the address to the Consul DNS resolver,
> > then
> > > we add configure like this in `config.yaml`:
> > > dns_resolver:127.0.0.1:8600
> > >
> > > At this point any upstream hostname, for example `foo` in upstream_url=
> > > http://foo/index.html, will be resolved by Consul.
> > >
> > > Thanks,
> > > Ming Wen, Apache APISIX & Apache SkyWalking
> > > Twitter: _WenMing
> > >
> >
> >
> > --
> > *MembPhis*
> > My github: https://github.com/membphis
> > Apache APISIX: https://github.com/apache/incubator-apisix
> >
>
--
*MembPhis*
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix
Re: [DISCUSS] Is APISIX supports Consul DNS for service discovery?
Posted by Ming Wen <we...@apache.org>.
sure, it is real dns.
we can do test for this, and will be a nice feature.
YuanSheng Wang <me...@apache.org> 于 2020年5月29日周五 下午6:03写道:
> Consul dns_resolver:127.0.0.1:8600
>
> Is it a real DNS server? if it is, then we can use it as a standard DNS
> server.
>
>
>
>
>
> On Fri, May 29, 2020 at 5:29 PM Ming Wen <we...@apache.org> wrote:
>
> > Hello,
> > I am not sure do we using the `lua-resty-dns` to do dns_resolver work,
> and
> > is APISIX supports Consul DNS for service discovery?
> >
> > for example 127.0.0.1:8600 is the address to the Consul DNS resolver,
> then
> > we add configure like this in `config.yaml`:
> > dns_resolver:127.0.0.1:8600
> >
> > At this point any upstream hostname, for example `foo` in upstream_url=
> > http://foo/index.html, will be resolved by Consul.
> >
> > Thanks,
> > Ming Wen, Apache APISIX & Apache SkyWalking
> > Twitter: _WenMing
> >
>
>
> --
> *MembPhis*
> My github: https://github.com/membphis
> Apache APISIX: https://github.com/apache/incubator-apisix
>
Re: [DISCUSS] Is APISIX supports Consul DNS for service discovery?
Posted by YuanSheng Wang <me...@apache.org>.
Consul dns_resolver:127.0.0.1:8600
Is it a real DNS server? if it is, then we can use it as a standard DNS
server.
On Fri, May 29, 2020 at 5:29 PM Ming Wen <we...@apache.org> wrote:
> Hello,
> I am not sure do we using the `lua-resty-dns` to do dns_resolver work, and
> is APISIX supports Consul DNS for service discovery?
>
> for example 127.0.0.1:8600 is the address to the Consul DNS resolver, then
> we add configure like this in `config.yaml`:
> dns_resolver:127.0.0.1:8600
>
> At this point any upstream hostname, for example `foo` in upstream_url=
> http://foo/index.html, will be resolved by Consul.
>
> Thanks,
> Ming Wen, Apache APISIX & Apache SkyWalking
> Twitter: _WenMing
>
--
*MembPhis*
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix
Re: [DISCUSS] Is APISIX supports Consul DNS for service discovery?
Posted by YuanSheng Wang <me...@apache.org>.
We need some documentation to help users better use Apache APISIX.
On Thu, Jun 4, 2020 at 9:12 AM junxu chen <ch...@apache.org> wrote:
> yes, I think APISIX does not need to make any changes to achieve the
> purpose of service discovery too.
> I will make some test with this later.
>
> On Sat, May 30, 2020 at 11:06 AM agile6v <ag...@apache.org> wrote:
>
> > Hi Ming,
> >
> > As far as my understand at the moment, APISIX does not need to make any
> > changes to achieve the purpose of service discovery. APISIX points the
> dns
> > address to the consul and the application register it to the consul based
> > on the specific identifier like foo.com. Not sure what i missed.
> >
> > Thanks,
> > agile6v
> >
> >
> >
> > On 2020/05/29 09:29:20, Ming Wen <we...@apache.org> wrote:
> > > Hello,
> > > I am not sure do we using the `lua-resty-dns` to do dns_resolver work,
> > and
> > > is APISIX supports Consul DNS for service discovery?
> > >
> > > for example 127.0.0.1:8600 is the address to the Consul DNS resolver,
> > then
> > > we add configure like this in `config.yaml`:
> > > dns_resolver:127.0.0.1:8600
> > >
> > > At this point any upstream hostname, for example `foo` in upstream_url=
> > > http://foo/index.html, will be resolved by Consul.
> > >
> > > Thanks,
> > > Ming Wen, Apache APISIX & Apache SkyWalking
> > > Twitter: _WenMing
> > >
> >
>
--
*MembPhis*
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix
Re: [DISCUSS] Is APISIX supports Consul DNS for service discovery?
Posted by junxu chen <ch...@apache.org>.
yes, I think APISIX does not need to make any changes to achieve the
purpose of service discovery too.
I will make some test with this later.
On Sat, May 30, 2020 at 11:06 AM agile6v <ag...@apache.org> wrote:
> Hi Ming,
>
> As far as my understand at the moment, APISIX does not need to make any
> changes to achieve the purpose of service discovery. APISIX points the dns
> address to the consul and the application register it to the consul based
> on the specific identifier like foo.com. Not sure what i missed.
>
> Thanks,
> agile6v
>
>
>
> On 2020/05/29 09:29:20, Ming Wen <we...@apache.org> wrote:
> > Hello,
> > I am not sure do we using the `lua-resty-dns` to do dns_resolver work,
> and
> > is APISIX supports Consul DNS for service discovery?
> >
> > for example 127.0.0.1:8600 is the address to the Consul DNS resolver,
> then
> > we add configure like this in `config.yaml`:
> > dns_resolver:127.0.0.1:8600
> >
> > At this point any upstream hostname, for example `foo` in upstream_url=
> > http://foo/index.html, will be resolved by Consul.
> >
> > Thanks,
> > Ming Wen, Apache APISIX & Apache SkyWalking
> > Twitter: _WenMing
> >
>
Re: [DISCUSS] Is APISIX supports Consul DNS for service discovery?
Posted by agile6v <ag...@apache.org>.
Hi Ming,
As far as my understand at the moment, APISIX does not need to make any changes to achieve the purpose of service discovery. APISIX points the dns address to the consul and the application register it to the consul based on the specific identifier like foo.com. Not sure what i missed.
Thanks,
agile6v
On 2020/05/29 09:29:20, Ming Wen <we...@apache.org> wrote:
> Hello,
> I am not sure do we using the `lua-resty-dns` to do dns_resolver work, and
> is APISIX supports Consul DNS for service discovery?
>
> for example 127.0.0.1:8600 is the address to the Consul DNS resolver, then
> we add configure like this in `config.yaml`:
> dns_resolver:127.0.0.1:8600
>
> At this point any upstream hostname, for example `foo` in upstream_url=
> http://foo/index.html, will be resolved by Consul.
>
> Thanks,
> Ming Wen, Apache APISIX & Apache SkyWalking
> Twitter: _WenMing
>