Open believening opened 1 year ago
关于对接 source 策略的提议:
对接 source 基本的策略:
List services: 1.1 List 失败:重试 1.2 List 成功:基于 services 执行 2 和 3
List instances by service 2.1 List 失败:不更新 se 2.2 List 成功:更新 se
Diff last services and cur services 3.1 Last 中存在 cur 不存在的 service: delete
聚合多个同类 source 的基本策略:
上述策略在当前实现中的匹配度较低的地方:
一个潜在的约束是:一个 se 只会来自于某一个 service。在不考虑 regroup 时,对于 List instances by service 失败时不更新 se 有帮助。
当前 meshreg 模块对接多注册中心时,存在两种模式:
zk 模式和对接策略提议更加接近。
可以考虑:
保留上一次cache,失败时沿用;
单个失败升级为整体失败,跳过本次更新;
_Originally posted by @YonkaFang in https://github.com/slime-io/slime/pull/382#discussion_r1226126068_