Hi The apisix have been designed for the unique name , which is located in $prefix/conf/apisix.uid file. You can give the uuid or unique name to the file.
~Jarvis.Qiu <[email protected]> 于2020年4月29日周三 上午10:24写道: > Hello, Ming Wen > > > back to the start, why we need to change the name?What will happen if > hard > code "APISIX"? > > A company will deploy multiple gateways according to different lines of > business or roles. For better management, the data of different gateways > needs to be distinguished by name in the logging platform, APM system, and > monitoring system. > > > And the etcd prefix can also use this name, so you can't put it in the > etcd. Furthermore, many users may not use etcd; for example, K8s users may > prefer to write the configuration to a yaml file. > > 而且etcd > 的前缀也是可以使用这个名字的,所以不能把它放到etcd中。再者很多用户可能不使用etcd,比如K8s用户可以更喜欢把配置写到yaml文件中。 > > > ------------------ Original ------------------ > From: "Ming Wen"<[email protected]>; > Date: Wed, Apr 29, 2020 06:08 AM > To: "dev"<[email protected]>; > Subject: Re: [DISCUSS] Should Apache APISIX add a global name? > > back to the start, why we need to change the name?What will happen if hard > code "APISIX"? > > ~Jarvis.Qiu <[email protected]> 于 2020年4月28日周二 下午11:45写道: > > > Hello, everyone. > > > > > > This global name is used for the following purposes: > > > > > > 1. Default value as etcd prefix; > > > > 2. Output to the log; > > > > 3. Export to Prometheus; > > > > 4. Default value for service name parameters of such plug-ins as zipkin > > and skywalking. > > > > > > I've added more code to this PR to make it easier to understand. > > > > > > https://github.com/apache/incubator-apisix/pull/1524/files > > > > > > > > ------------------ Original ------------------ > > From: "~Jarvis.Qiu "<[email protected]>; > > Date: Wed, Apr 1, 2020 12:49 PM > > To: "dev"<[email protected]>; > > Subject: Re: [DISCUSS] Should Apache APISIX add a global name? > > > > the `spring.application.name` of spring boot application and ` > > metadata.name` of k8s Service all in local config. > > > > ------------------ Original ------------------ > > From: "YuanSheng Wang"<[email protected]>; > > Date: Wed, Apr 1, 2020 09:33 AM > > To: "[email protected]"<[email protected]>; > > Subject: Re: [DISCUSS] Should Apache APISIX add a global name? > > > > On Tue, Mar 31, 2020 at 10:16 PM ~Jarvis.Qiu <[email protected]> wrote: > > > > > the entire cluster > > > > > > > if it is a cluster name, we should store it in etcd. local config is not > a > > good way. > > > > > > > > > > > > > > > > > > > > > ------------------ Original ------------------ > > > From: "YuanSheng Wang"<[email protected]>; > > > Date: Tue, Mar 31, 2020 10:12 PM > > > To: "[email protected]"<[email protected]>; > > > Subject: Re: [DISCUSS] Should Apache APISIX add a global name? > > > > > > Apache APISIX is distributed software. > > > Does the name refer to the entire cluster or a single Gateway node? > > > > > > > > > On Tue, Mar 31, 2020 at 10:07 PM ~Jarvis.Qiu <[email protected]> > wrote: > > > > > > > It was necessary to add a global name for APISIX. > > > > > > > > > > > > the logging platform and zipkin, skywalking etc., need this name. > > > > > > > > > > > > -- > > > *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 -- DamonChen 让生活更俏皮些 <http://www.zz1788.com>
