Replies: 1 comment 2 replies
-
Hi. Yeah, I thought about deprecating consul support (and etcd) and switch to Patroni REST API discovery. Do you have access to Patroni REST API? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
As described in documentation, Consul support is implemented:
https://pgwat.ch/latest/tutorial/preparing_databases.html?h=consul#patroni
I also found a previous topic where it says Consul support is already implemented:
#60
However, function
getConsulClusterMembers
only returnsnil
in current release:https://github.com/cybertec-postgresql/pgwatch/blob/v3.2.0/internal/sources/resolver.go#L66
I see that consul discovery is indeed implemented in pgwatch2:
https://github.com/cybertec-postgresql/pgwatch2/blob/master/pgwatch2/patroni.go#L31
Do you plan to support consul in new pgwatch?
Just in case I have fix for scope discovery which almost is copy-paste from pgwatch2 source, but I also added namespace clusters discovery (similar to etcd extraction): #729
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions