Hi Ming:
       I think it is possible to cache a Nginx configuration file locally
and make sure that APISIX runs in the case of etcd groups
Thanks,

Ming Wen <wenm...@apache.org> 于2019年11月5日周二 下午4:02写道:

> Hi, Lang,
> this is another perspective.
> For debugging purposes, you need a local configuration file. I think it's
> ok if only for debugging.
>
> And yes, APISIX's HA depends on etcd, which is excellent in high
> availability,
> I don't think we can do better than that :)
>
> Thanks,
> Ming Wen, Apache APISIX
> Twitter: _WenMing
>
>
> Lang Wang <totemofw...@apache.org> 于2019年11月5日周二 下午3:53写道:
>
> > +1
> >
> > Our production environment uses spring cloud config+rabbitmq to make
> > dynamic configuration updates.
> > We often get confused when debugging the configuration contents of agent
> > nodes. If we don't write configuration files which content stored in etcd
> > to disk, the apisix's reliability depends entirely on etcd. We need a
> trade
> > off.
> >
> > junxu chen <chenju...@apache.org> 于2019年11月5日周二 下午2:13写道:
> >
> > > +1
> > >
> > > I think we could make a backup when configuration is changed,  so
> APISIX
> > > can uses the backup when ETCD can't be connected.
> > >
> > >
> > > On Tue, Nov 5, 2019 at 2:03 PM YuanSheng Wang <membp...@apache.org>
> > wrote:
> > >
> > > > Hi Ming:
> > > >
> > > > This is two different features.
> > > >
> > > > When the service is restarted and etcd is not working properly, the
> > last
> > > > correct configuration is read from the configuration backup file.
> > > >
> > > > This mechanism ensures that the APISIX service will work normal
> first.
> > > >
> > > >
> > > >
> > > > On Tue, Nov 5, 2019 at 1:28 PM Ming Wen <wenm...@apache.org> wrote:
> > > >
> > > > > Hi, hui,
> > > > > Apache APISIX supports stand-alone mode and declarative API [1],
> > > > > so it already has a local configuration file.
> > > > >
> > > > > Do you mean we should support local configuration file when using
> > etcd
> > > > > mode?
> > > > >
> > > > > [1]
> > > > >
> > > >
> > >
> >
> https://github.com/apache/incubator-apisix/blob/master/doc/stand-alone.md
> > > > >
> > > > > Thanks,
> > > > > Ming Wen, Apache APISIX
> > > > > Twitter: _WenMing
> > > > >
> > > > >
> > > > > hui li <yo...@apache.org> 于2019年11月5日周二 上午11:45写道:
> > > > >
> > > > > > Does the APISIX need to write the configuration to the local
> disk?
> > > > > >
> > > > > > The APISIX currently can run without the configuration center,
> > etcd.
> > > > > >
> > > > > > But its routes configuration just is stored in the memory. If
> > APISIX
> > > > runs
> > > > > > without etcd or could not connect the etcd (still possible),
> > > meanwhile,
> > > > > > APISIX has been restarted because of some critical BUG. APISIX
> will
> > > > > restart
> > > > > > with no route configuration which will cause the network failure.
> > > > > >
> > > > > > On the other hand, other API-Gateway, such as tyk or zuul, will
> > write
> > > > the
> > > > > > configuration to the local disk when it exit.
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > *MembPhis*
> > > > My github: https://github.com/membphis
> > > > Apache APISIX: https://github.com/apache/incubator-apisix
> > > >
> > >
> >
>

Reply via email to