lingyufei opened a new pull request, #15679: URL: https://github.com/apache/dubbo/pull/15679
Please refer to issue [15677](https://github.com/apache/dubbo/issues/15677) for more details. Although I can now configure tps on a method level, the stats map in DefaultTPSLimiter is still using serviceKey as the key. So the method-level TPS doesn't work. For example, if I configure different TPS numbers on different methods, they are actually sharing the same StatItem, which is obtained by the service key. Here is what I have done: 1. The key of StatItem Map should be `serviceKey + method` if the tps is configured for a method. Otherwise, uses `serviceKey`. TPS for a method has a higher priority than for a service. 2. Add tests for method-level tps precedence and isolation. -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org