smallnest / rpcx

Best microservices framework in Go, like alibaba Dubbo, but with more features, Scale easily. Try it. Test it. If you feel it's better, use it! 𝐉𝐚𝐯𝐚有𝐝𝐮𝐛𝐛𝐨, 𝐆𝐨𝐥𝐚𝐧𝐠有𝐫𝐩𝐜𝐱! build for cloud!
https://rpcx.io
Other
8.11k stars 1.17k forks source link

server etcd discover fail #804

Closed baekhyunee7 closed 1 year ago

baekhyunee7 commented 1 year ago

server code:

func addRegistryPlugin(s *server.Server, serviceConfig *core.ServiceConfig) {
    r := &serverplugin.EtcdV3RegisterPlugin{
        ServiceAddress: "tcp@" + serviceConfig.Host,
        EtcdServers:    serviceConfig.Etcd,
        BasePath:       core.LOGIN_PREFIX,
        // Metrics:        metrics.NewRegistry(),
        UpdateInterval: time.Minute,
    }
    err := r.Start()
    if err != nil {
        logrus.Error(err)
    }
    s.Plugins.Add(r)
}

error: "etcdv3.go:59: ERROR: cannot create etcd registry: Backend storage not supported yet, please choose one of"

etcd docker-compose:

services:
  etcd:
    image: quay.io/coreos/etcd
    container_name: etcd_single
    command: etcd -name etcd1 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 
    ports:
      - 2379:2379
      - 2380:2380
    volumes:
      - /mnt/etcd/etcd:/etcd-data 
smallnest commented 1 year ago

sorry, please upgrade rpcx-etcd to v0.3.2.