Gucvii opened a new pull request, #2868: URL: https://github.com/apache/dubbo-go/pull/2868
Fix: fixed Nacos weight-based load balancing (issue #2864). Users can now use `WithServerWeight` to configure server weights and `WithClientLoadBalance` to specify the load balancing strategy. **Client Configuration:**  **Server 1 Configuration:**  **Server 2 Configuration:**  **Result** **Nacos Weight:**  **Random Load Balance Strategy:**  **Round Robin Load Balance Strategy:**  *(Every 5 requests hit server2, and 1 request hits server1)* **Exported URL Format:**  **Comparison with Dubbo Java:**   I believe I've somewhat aligned with the original design intent of the load balancer author. This is because I haven't modified any core load balancing functionality. And the core function can use the key I configured. I did notice a "Weight" key within the method configuration, but it appears to have had minimal impact in the application. This is my first pull request to this repository. If there are any oversights or areas where my considerations are incomplete, please point them out promptly, and I will definitely make the necessary changes. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
