wankai123 opened a new issue, #10076:
URL: https://github.com/apache/skywalking/issues/10076

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar feature requirement.
   
   
   ### Description
   
       In the cluster mode, OAP instances send metrics to each other according 
to the `remote-hash code` to do L2 aggregation and alarm calculations for 
balancing​. Some of the calculations leverage the previously received metrics 
in the memory cache and incoming metrics. So when the OAP cluster scales,  the 
metrics might lose their cache and impact the calculations.
      To avoid this situation, I think we should support listeners for the 
`RemoteClients` change, then the stream workers can be notified and reload 
previous metrics from storage for calculation.
   
   
   ### Use case
   
   1. Provide listeners' interface for notification and a registration 
mechanism.
   2. When the `RemoteClients` changes, notice all listeners.
   
   ### Related issues
   
   https://github.com/apache/skywalking/issues/10051
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to