timescale / helm-charts

Configuration and Documentation to run TimescaleDB in your Kubernetes cluster
Apache License 2.0
264 stars 223 forks source link

Patronictl list is not showing a "leader node" #418

Closed byazici closed 2 years ago

byazici commented 2 years ago

Did you expect to see something different?

I installed timescaledb-single on Google Cloud with almost default settings. When I run patronictl list. Two unexpected things I see:

`postgres@timescaledb-helm-0:~$ patronictl list +--------------------+------------+---------+---------+----+-----------+ | Member | Host | Role | State | TL | Lag in MB |

Environment

Anything else we need to know?: Replication is working altough this output.

justinvogt87 commented 2 years ago

Try passing in the default patroni.yaml file: patronictl -c /etc/timescaledb/patroni.yaml list

byazici commented 2 years ago

It didn't work. It looks someting is getting broken while helm install. Actually I'm using "postgres-operator" helm package and it works.

nhudson commented 2 years ago

Just tested this locally and on an AWS instance I have access to, I cannot replicate the issue.

AWS (EKS)

postgres@tobs-timescaledb-0:~$ patronictl -c /etc/timescaledb/patroni.yaml list
+--------------------+--------------+--------+---------+----+-----------+
| Member             | Host         | Role   | State   | TL | Lag in MB |
+ Cluster: tobs (7116895307194880033) -------+---------+----+-----------+
| tobs-timescaledb-0 | 172.28.4.166 | Leader | running |  3 |           |
+--------------------+--------------+--------+---------+----+-----------+

Local (kind)

postgres@test-timescaledb-0:~$ patronictl -c /etc/timescaledb/patroni.yaml list
+--------------------+-------------+---------+---------+----+-----------+
| Member             | Host        | Role    | State   | TL | Lag in MB |
+ Cluster: test (7135124973223039052) -------+---------+----+-----------+
| test-timescaledb-0 | 10.244.0.10 | Leader  | running |  1 |           |
| test-timescaledb-1 | 10.244.0.13 | Replica | running |  1 |         0 |
| test-timescaledb-2 | 10.244.0.16 | Replica | running |  1 |         0 |
+--------------------+-------------+---------+---------+----+-----------+
byazici commented 2 years ago

I'm doing my tests on Google Kubernetes Engine.

byazici commented 2 years ago

It didn't work. It looks someting is getting broken while helm install. Actually I'm using "postgres-operator" helm package and it works.

Actually, I delete everyting and pull poject again and apply this (https://github.com/zalando/patroni/issues/1132) to prevent sericeaccount thing. As a result it didnt work without -c parameter but it worked with -c parameter now. Thanks