Etcd
Basic usage and working principles of the Etcd registry.
Prerequisites
- Understand basic development steps of Dubbo
- Install and start the Etcd service
Instructions
Adding Dependencies
Starting from Dubbo 3, the Etcd registry adapter is no longer embedded in Dubbo and needs to be included as a separate module.
<dependency>
<groupId>org.apache.dubbo.extensions</groupId>
<artifactId>dubbo-registry-etcd</artifactId>
<version>3.3.0</version>
</dependency>
Basic Configuration
<dubbo:registry address="etcd://10.20.153.10:6379" />
or
<dubbo:registry address="etcd://10.20.153.10:6379?backup=10.20.153.11:6379,10.20.153.12:6379" />
or
<dubbo:registry protocol="etcd" address="10.20.153.10:6379" />
or
<dubbo:registry protocol="etcd" address="10.20.153.10:6379,10.20.153.11:6379,10.20.153.12:6379" />
Feedback
Was this page helpful?
Yes No
Last modified September 30, 2024: Update & Translate Overview Docs (#3040) (d37ebceaea7)