bfenetworks / conf-agent

Configuration agent for BFE control plane
Apache License 2.0
15 stars 9 forks source link

配置中的BFECluster 具体是一个什么值? #11

Open cyrnicolase opened 8 months ago

cyrnicolase commented 8 months ago

您好!

我这边在使用 conf-agent 的时候,在配置 conf-agent.toml 中的 BFECluster = "{BFECluster}" 值后,在启动 conf-agent 之后会得到如下错误:

topic[probe] err[url: http://127.0.0.1:8183/inner-api/v1/configs/gslb_data/gslb?bfe_cluster=doll_cluster&version=00000000000000, err: bad StatuCode: 422, Raw: {"ErrNum":422,"ErrMsg":"Param Illegal: BFECluster doll_cluster Not Exist","Data":null}]

其中的 doll_cluster 是我替换的 BFECluster 值。

这边我也查看了对应的文档:https://github.com/bfenetworks/conf-agent/blob/develop/docs/zh_cn/config.md 这里面提到的 当前所在的BFE集群名 具体是什么 意思呀?这个值应该是固定不变的吧?

感谢解答一下!

comeon-lab commented 8 months ago

您好!

我这边在使用 conf-agent 的时候,在配置 conf-agent.toml 中的 BFECluster = "{BFECluster}" 值后,在启动 conf-agent 之后会得到如下错误:

topic[probe] err[url: http://127.0.0.1:8183/inner-api/v1/configs/gslb_data/gslb?bfe_cluster=doll_cluster&version=00000000000000, err: bad StatuCode: 422, Raw: {"ErrNum":422,"ErrMsg":"Param Illegal: BFECluster doll_cluster Not Exist","Data":null}]

其中的 doll_cluster 是我替换的 BFECluster 值。

这边我也查看了对应的文档:https://github.com/bfenetworks/conf-agent/blob/develop/docs/zh_cn/config.md 这里面提到的 当前所在的BFE集群名 具体是什么 意思呀?这个值应该是固定不变的吧?

感谢解答一下!

我看了一下代码,发现这个报错事api-server中打印出来的,报错原因是您的这个集群名称在clusters表里不存在,麻烦您看一下是否数据表里没有这个集群