Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
postgresql_patroni [2025/05/02 12:58] – andonovj | postgresql_patroni [2025/05/13 05:14] (current) – andonovj | ||
---|---|---|---|
Line 128: | Line 128: | ||
So we have our key-value propagated among the cluster, nice.... | So we have our key-value propagated among the cluster, nice.... | ||
+ | |||
+ | |||
+ | We can also check the health of the cluster endpoints as follow: | ||
+ | |||
+ | < | ||
+ | [root@etcd02 ~]# etcdctl endpoint status --write-out=table --endpoints=http:// | ||
+ | +--------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+ | ||
+ | | ENDPOINT | ||
+ | +--------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+ | ||
+ | | http:// | ||
+ | | http:// | ||
+ | | http:// | ||
+ | +--------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+ | ||
+ | [root@etcd02 ~]# | ||
+ | |||
+ | </ | ||
+ | |||
=====Setup Patroni===== | =====Setup Patroni===== | ||
Line 581: | Line 598: | ||
echo " | echo " | ||
- | case ${environment} | + | REPLICA_HOST=postgres-${environment} |
- | " | + | |
- | REPLICA_HOST=postgres-dev-mel-001.mel.adi.netsuite.com | + | |
- | ;; | + | |
- | " | + | |
- | REPLICA_HOST=postgres-stg-mel-001.mel.adi.netsuite.com | + | |
- | ;; | + | |
- | " | + | |
- | REPLICA_HOST=postgres-prod-mel-001.mel.adi.netsuite.com | + | |
- | ;; | + | |
- | *) | + | |
- | echo " | + | |
- | ;; | + | |
- | esac | + | |
v_first_replica=$(curl -sk https:// | v_first_replica=$(curl -sk https:// |