slime-io / slime

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

Optimize meshreg’s CPU usage and boundary scene adaptation #441

Closed believening closed 11 months ago

believening commented 11 months ago
  1. Fix meshreg's performance degradation: in mr388 we fixed a bug that would cause the program to hang. However, in some scenarios (for example, providers or consumers nodes do not exist), the first watch for zk ep will fail, bypassing the retry backoff strategy, and frequent retries will eventually occupy a lot of CPU.
  2. boundary scene adaptation: meshreg will collect pod information in the cluster and populate the pod label into the metadata of the service instance with the same IP as the pod according to the source configuration. However, in clusters, there may be situations where non-running pods are assigned IP addresses but are not recycled, causing the IP-based matching mechanism to be ineffective.