Skip to:
https://pkg.go.dev/net#Resolver.LookupSRV has proto parameter and it's pretty simple to implement it in peer-list:https://github.com/percona/percona-xtradb-cluster-operator/blob/89f4814ad6710ab9acfdb106a7ef4f25e20c32df/cmd/peer-list/main.go#L51
Please implement a possibility to use tcp for peer-list SRV lookups. Services filling SRV records with many items and the resulting response could be too big for UDP settings. TCP is more reliable and allows to get a full response.
Hi @Nickolay Ihalainen,
Thank you for the report and feedback.
https://pkg.go.dev/net#Resolver.LookupSRV has proto parameter and it's pretty simple to implement it in peer-list:
https://github.com/percona/percona-xtradb-cluster-operator/blob/89f4814ad6710ab9acfdb106a7ef4f25e20c32df/cmd/peer-list/main.go#L51
Please implement a possibility to use tcp for peer-list SRV lookups. Services filling SRV records with many items and the resulting response could be too big for UDP settings. TCP is more reliable and allows to get a full response.