alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.21k stars 12.83k forks source link

nacos2.0.1服务权重没效果 #7301

Closed 602297770 closed 2 years ago

602297770 commented 2 years ago

使用原生的spring.cloud.gateway的方式搭建简易的网关。分别调用不同端口,权重分别为1和6的weight服务结果是两个端口调用比例是1:1。

ibingdian commented 2 years ago

你好,我也遇到这个问题了。我使用了SpringCloud + Gateway + Nacos。 我的配置如下:

spring-cloud.version=2020.0.1
alibaba-cloud.version=2021.1

    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
        </dependency>
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-loadbalancer</artifactId>
        </dependency>
    </dependencies>

请问,这个问题你解决了吗?怎么解决的?

stale[bot] commented 2 years ago

Thanks for your feedback and contribution. But the issue/pull request has not had recent activity more than 180 days. This issue/pull request will be closed if no further activity occurs 7 days later. We may solve this issue in new version. So can you upgrade to newest version and retry? If there are still issues or want to contribute again. Please create new issue or pull request again.