@Ming @YuanSheng My needs could be simply understood as storing some kv data in ETCD by Apache APISIX, but we don't want to be used indiscriminately to store the data, so I call it `metadata`.
On Mon, Sep 14, 2020 at 1:09 PM YuanSheng Wang <[email protected]> wrote: > On Mon, Sep 14, 2020 at 12:38 PM Ming Wen <[email protected]> wrote: > > > > Here is an example: the default configuration of the `log-rotate` > plugin. > > > > you can add these configurations to plugin instead of local configuration > > file. > > IMO, These configurations should not be written in the configuration > file, > > the current implementation is not good enough. > > > > Some plug-ins are completely unrelated to user requests, eg: `log-rotate`. > That is why we can have to write the configurations into a local file. > > So the current implementation is good for plugin `log-rotate`. but we > should make > it supports dynamically updated. that is why we are discussing it. > > > > > > junxu, and yuansheng, > > What problem does this metadta solve? I still don't understand. > > > > I think the plugin needs a way to load some data controlled by Admin API. > > Then the plugin can implement some new features, eg: dynamically update > some default configurations(I have written the example right now). > > > > > > Thanks, > > Ming Wen, Apache APISIX & Apache SkyWalking > > Twitter: _WenMing > > > > > > YuanSheng Wang <[email protected]> 于2020年9月14日周一 下午12:29写道: > > > > > Hi, > > > > > > I have another case, it seems that related to chen's case. > > > > > > For some plugin objects, their default configuration implementations > are > > > based on local configuration files > > > and cannot be dynamically updated through the Admin API. > > > > > > If the default configuration of the plugin can be saved in etcd, we can > > > easily support the dynamic update of > > > the default configuration. > > > > > > ----------------------- > > > Here is an example: the default configuration of the `log-rotate` > plugin. > > > > > > If it is stored in etcd, the administrator can switch log rotation > rules > > at > > > any time on the console. > > > > > > ```shell > > > curl http://127.0.0.1:9080/apisix/plugin/log-rotate -X PUT -d ' > > > { > > > "interval": 3000, > > > "max_kept": 168 > > > }' > > > ``` > > > > > > > > > On Mon, Sep 14, 2020 at 11:46 AM Ming Wen <[email protected]> wrote: > > > > > > > Do you mean to support to writing of these metadata in Apache APISIX? > > > > But the open source version of Apache APISIX does not support > clusters. > > > > > > > > Thanks, > > > > Ming Wen, Apache APISIX & Apache SkyWalking > > > > Twitter: _WenMing > > > > > > > > > > > > junxu chen <[email protected]> 于2020年9月14日周一 上午11:16写道: > > > > > > > > > In this example: > > > > > > > > > > ETCDs (clusters) for Each Apache APISIX cluster are independent of > > each > > > > > other. > > > > > The `super system` manages and monitors multi Apache APISIX > clusters. > > > > > > > > > > `clusterid` is used to identify different clusters, > > > > > `communication revision` is the version number of communication for > > > each > > > > > cluster with the `super system` > > > > > > > > > > > > > > > On Mon, Sep 14, 2020 at 9:33 AM Ming Wen <[email protected]> > wrote: > > > > > > > > > > > > `clusterid` and `communication revision` , used to distinguish > > > > > different > > > > > > APISIX clusters for supper system. > > > > > > Is this multiple APISIX clusters sharing one etcd? I don't think > > > Apache > > > > > > APISIX can support this feature now. > > > > > > > > > > > > Thanks, > > > > > > Ming Wen, Apache APISIX & Apache SkyWalking > > > > > > Twitter: _WenMing > > > > > > > > > > > > > > > > > > wei jin <[email protected]> 于2020年9月14日周一 上午9:11写道: > > > > > > > > > > > > > I think it is useful > > > > > > > > > > > > > > junxu chen <[email protected]> 于2020年9月13日周日 下午1:34写道: > > > > > > > > > > > > > > > no, just store metadata in ETCD. > > > > > > > > > > > > > > > > On Sun, Sep 13, 2020 at 8:18 AM Zhiyuan Ju < > > [email protected] > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > Do you mean using some RDB in Cloud? > > > > > > > > > > > > > > > > > > Best Regards! > > > > > > > > > @ Zhiyuan Ju <https://www.shaoyaoju.org/> > > > > > > > > > > > > > > > > > > > > > > > > > > > junxu chen <[email protected]> 于2020年9月12日周六 下午10:38写道: > > > > > > > > > > > > > > > > > > > hello, community, > > > > > > > > > > > > > > > > > > > > Sometimes we need to dynamically store some metadata, and > > > don't > > > > > > want > > > > > > > to > > > > > > > > > add > > > > > > > > > > other dependencies such as database, but currently APISIX > > > does > > > > > not > > > > > > > > > support. > > > > > > > > > > > > > > > > > > > > A classic example: > > > > > > > > > > `clusterid` and `communication revision` , used to > > > distinguish > > > > > > > > different > > > > > > > > > > APISIX clusters for supper system. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > *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 >
