You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by 奔波虫 <25...@qq.com> on 2020/03/10 10:28:01 UTC

回复: how to use an etcd cluster

hi,


thanks.


I know that.
I want to know how to use an etcd cluster? Non stand-alone version.
use etcd proxy?





yours,

Ben


------------------ 原始邮件 ------------------
发件人:&nbsp;"Ayeshmantha Perera"<akayeshmantha@gmail.com&gt;;
发送时间:&nbsp;2020年3月10日(星期二) 晚上6:16
收件人:&nbsp;"dev"<dev@apisix.apache.org&gt;;"奔波虫"<2562957660@qq.com&gt;;

主题:&nbsp;Re: how to use an etcd cluster



Hi

It's just you have to map you're etcd host in to the config.yaml file.

etcd:
&nbsp; host: "http://127.0.0.1:2379" &nbsp; # etcd address
&nbsp; prefix: "/apisix"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; # apisix configurations prefix
&nbsp; timeout: 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; # 3 seconds


Find this in you're config yaml and put youre host configs there


Regards

Ayesh


On Tue, Mar 10, 2020 at 11:01 AM 奔波虫 <2562957660@qq.com&gt; wrote:

&gt; Dear all,
&gt;
&gt;
&gt;
&gt; &amp;nbsp; &amp;nbsp; I have an etcd cluster.
&gt; &amp;nbsp; &amp;nbsp; How to use the cluster in apisix?
&gt;
&gt;
&gt;
&gt;
&gt; &amp;nbsp; yours,
&gt;
&gt; &amp;nbsp; Ben



-- 
*Software Engineer*
*Salzburg Research Forschungsgesellschaft *
*Salzburg, Austria*

Re: how to use an etcd cluster

Posted by YuanSheng Wang <me...@apache.org>.
On Tue, Mar 10, 2020 at 6:28 PM 奔波虫 <25...@qq.com> wrote:
>
> hi,
>
>
> thanks.
>
>
> I know that.
> I want to know how to use an etcd cluster? Non stand-alone version.
> use etcd proxy?

that is the todo job. the resty-etcd[1] driver has supported this
feature already.
we can support it in Apache APISIX.

I created a github issue right now[2], welcome PR.

[1] https://github.com/iresty/lua-resty-etcd/blob/master/t/v2/cluster.t#L52
[2] https://github.com/apache/incubator-apisix/issues/1231

>
>
>
>
>
> yours,
>
> Ben
>
>
> ------------------ 原始邮件 ------------------
> 发件人:&nbsp;"Ayeshmantha Perera"<akayeshmantha@gmail.com&gt;;
> 发送时间:&nbsp;2020年3月10日(星期二) 晚上6:16
> 收件人:&nbsp;"dev"<dev@apisix.apache.org&gt;;"奔波虫"<2562957660@qq.com&gt;;
>
> 主题:&nbsp;Re: how to use an etcd cluster
>
>
>
> Hi
>
> It's just you have to map you're etcd host in to the config.yaml file.
>
> etcd:
> &nbsp; host: "http://127.0.0.1:2379" &nbsp; # etcd address
> &nbsp; prefix: "/apisix"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; # apisix configurations prefix
> &nbsp; timeout: 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; # 3 seconds
>
>
> Find this in you're config yaml and put youre host configs there
>
>
> Regards
>
> Ayesh
>
>
> On Tue, Mar 10, 2020 at 11:01 AM 奔波虫 <2562957660@qq.com&gt; wrote:
>
> &gt; Dear all,
> &gt;
> &gt;
> &gt;
> &gt; &amp;nbsp; &amp;nbsp; I have an etcd cluster.
> &gt; &amp;nbsp; &amp;nbsp; How to use the cluster in apisix?
> &gt;
> &gt;
> &gt;
> &gt;
> &gt; &amp;nbsp; yours,
> &gt;
> &gt; &amp;nbsp; Ben
>
>
>
> --
> *Software Engineer*
> *Salzburg Research Forschungsgesellschaft *
> *Salzburg, Austria*



-- 
MembPhis
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix