dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[Bug] docker dubbo cluster broadcast not working

Open seqwait opened this issue 1 year ago • 2 comments

Pre-check

  • [x] I am sure that all the content I provide is in English.

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

openjdk1.8 release:3.2.0 dubbo: 2.0.2

Steps to reproduce this issue

two instance app service registry to docker service name docker compose config

DUBBO_IP_TO_REGISTRY: "app"

consumer invoke

@DubboRefrence(cluster="broadcast")
IService iService

result only one instance receive and execute iService method

What you expected to happen

all app instance service execute iService method

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • [X] Yes I am willing to submit a pull request on my own!

Code of Conduct

seqwait avatar May 09 '24 15:05 seqwait

Dubbo will aggegrate the providers which have the same address.

AlbumenJ avatar May 10 '24 02:05 AlbumenJ

You can have a look at the example I wrote, where case-configuration.yml will be converted to a real docker file in the target directory, you can refer to how to use it

https://github.com/wcy666103/dubbo-samples/tree/449034e37c8d6ea3d8b289193b9644a2b0892ab3/2-advanced/dubbo-samples-broadcast

image

wcy666103 avatar Jun 05 '24 04:06 wcy666103