slime-io / slime

An intelligent ServiceMesh manager based on Istio
https://slime-io.github.io/
Other
426 stars 78 forks source link

meshregistry: align support of svcPort and instancePortAsSvcPort parameters for sources #353

Closed YonkaFang closed 1 year ago

YonkaFang commented 1 year ago
  1. 通过统一的参数svcPort和instancePortAsSvcPort来控制相关的业务行为,减少各个source内的各自定制实现,提高可维护性

    • svcPort: 表示显式的svc port, 0值会被忽略;

    • instancePortAsSvcPort 为true时会将实例端口聚合为服务端口;

    实际if svcPort != 0 && instancePortAsSvcPort 时,会得到二者的并集作为最终的服务端口(列表)

  2. 让eureka/nacos支持像dubbo 那样聚合实例端口为服务端口。 完善服务模型