You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The raft consensus and freno service are working as expected with the above IP approach.
We would like to go with the DNS approach with stateful sets as Ips are ever-changing in k8s.
Could you please assist us in what we missing with the DNS approach because of which RAFT communication is not happening as expected?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi @Ashok-Kalam, we don't run freno in k8s currently so adding support for using DNS addresses for raft nodes isn't on our roadmap for freno. An option that may work for you is to run a custom sidecar service in k8s to handle this, as mentioned by @timvaillancourt here:
Hi Team
I am working on deploying the Freno service in k8s using stateful sets with 3 replicas (freno-0, freno-1, freno-2).
I tried to use dns names in RaftBind, RaftNodes but raft consensus doesn’t seem to work. Following is the configuration I have used.
"ListenPort": 9777,
"RaftBind": "freno-1.freno-raft-service.n1stack.svc.cluster.local",
"RaftDataDir": "/var/lib/freno",
"DefaultRaftPort": 9888,
"RaftNodes": [
"freno-0.freno-raft-service. n1stack.svc.cluster.local",
"freno-1.freno-raft-service. n1stack.svc.cluster.local",
"freno-2.freno-raft-service. n1stack.svc.cluster.local"
],
Communication issue in Freno POD Logs:
It is going in a loop and the leader is changing each and every minute.
If I try with the IPs approach it is working fine. Following is the working configuration.
"ListenPort": 9777,
"RaftBind": "172.34.179.140",
"RaftDataDir": "/var/lib/freno",
"DefaultRaftPort": 9888,
"RaftNodes": ["172.34.179.140", "172.34.251.16", "172.34.154.61"],
The raft consensus and freno service are working as expected with the above IP approach.
We would like to go with the DNS approach with stateful sets as Ips are ever-changing in k8s.
Could you please assist us in what we missing with the DNS approach because of which RAFT communication is not happening as expected?
Thanks in advance.
The text was updated successfully, but these errors were encountered: