No etcd service in sensu server. How can we change default ports of running etcd in Sensu Backend Server?

I am running sensu server in cluster on three nodes. Sensu uses etcd to form cluster but I am unable to find etcd service in sensu server so that i can change default ports.

Sensu backend has some configuration options to help setup the embedded etcd.

Here’s a /etc/sensu/backend.yml configuration I’m running locally that has my embedded etcd cluster running on different ports.

##
# store configuration
##
etcd-advertise-client-urls: "http://127.0.0.1:4100"
etcd-listen-client-urls: "http://127.0.0.1:4100"
etcd-listen-peer-urls: "http://127.0.0.1:4101"
etcd-initial-advertise-peer-urls: "http://127.0.0.1:4101"
etcd-initial-cluster-state: "new"
etcd-initial-cluster-token: ""
etcd-name: "default"
etcd-initial-cluster: "default=http://127.0.0.1:4101"

As a general practice you don’t want to make peer url changes in a existing cluster. If you do, and end up extending the cluster with new members, you’ll probably need to use the etcdctl tool to update the cached information inside the data store. The upstream etcd documentation goes into he details concerning why this is necessary.

References:

https://docs.sensu.io/sensu-go/5.0/reference/backend/#configuration-summary

https://docs.sensu.io/sensu-go/5.0/reference/backend/#datastore-and-cluster-configuration-flags

Can we use external ETCD cluster with sensugo clustering. Second does it support consul for clustering and service discovery.

Thanks for reply. Can we externalize it. I mean we can use external ETCD Cluster. Other thing can we use consul for clustering and service registration?

Can we use external ETCD cluster with sensugo clustering. Second does it support consul for clustering and service discovery.

It’s possible to use an external etcd cluster check out this section of the clustering guide.
https://docs.sensu.io/sensu-go/latest/guides/clustering/#using-an-external-etcd-cluster

I’m pretty sure Sensu Go doesn’t have an an option to use Consul yet for data store clustering.

Thanks for your reply. Sorry for the delay. I was switched to other task.
What if i have only one instance of etcd and three nodes of sensugo server. Which property i should use then in all sensu servers?

store configuration for backend-1/10.0.0.1

etcd-advertise-client-urls: “http://10.0.0.1:2379
etcd-listen-client-urls: “http://10.0.0.1:2379
etcd-listen-peer-urls: “http://0.0.0.0:2380
etcd-initial-cluster: “backend-1=http://10.0.0.1:2380,backend-2=http://10.0.0.2:2380,backend-3=http://10.0.0.3:2380
etcd-initial-advertise-peer-urls: “http://10.0.0.1:2380
etcd-initial-cluster-state: “new”
etcd-initial-cluster-token: “”
etcd-name: “backend-1”