Comments (2)
hi @gregory-j-baker, thanks for reaching out.
I see where we are port-forwarding to the primary pod instead of the service in our quickstart guide. In our docs there is a note saying that the cluster-primary
service should be used for the purposes of connecting to the database. I created an issue to update the guide to use the service instead of the primary pod. Either way, you should end up with the same connection.
There have been a few questions where users were confused about the services that are created with a PostgresCluster. I created an issue in our backlog to improve the documentation around Services. Over in the discord I put together the following reply:
There is a note about these services in the docs:
You do not need to worry about most of these Services, as they are used to help manage the overall health of your Postgres cluster. For the purposes of connecting to your database, the Service of interest is called hippo-primary. Thanks to PGO, you do not need to even worry about that, as that information is captured within a Secret!
Here is a more detailed description of the services:
- hippo-ha: This service is managed directly by the High-Availability (HA) system, and routes traffic to the primary/leader.
- hippo-ha-config: This service is simply used to manage cluster-wide configuration settings, specifically via the associated Endpoints resource.
- hippo-pgbouncer: As you mentioned, this service routes traffic to the connection pooler (PgBouncer).
- hippo-primary: As you mentioned, this service routes traffic to the current primary/leader. Specifically, this Service provides a convenient DNS name with "primary" in it for connecting to the current primary/leader.
- hippo-replica: As you mentioned, this service routes traffic to PG replicas within your cluster (i.e., instances with the replica role).
- hippo-pods: service created for the StatefulSet (see Headless Service limitation).
Hopefully, this helps until we can get the documentation updated.
from postgres-operator.
This is great, @jmckulk. Thank you so much.
from postgres-operator.
Related Issues (20)
- Restore process request way too many archive log files via pgbackrest HOT 3
- Option to expose metrics endpoint of Patroni on the container HOT 2
- Repo host using what seems like much more storage than it should be given db size HOT 1
- Citus integration guidance HOT 1
- Incorrect regular expression in CRDs for spec.userInterface.pgAdmin.dataVolumeClaimSpec.resources.requests.storageClassName HOT 1
- Getting error ERROR: [078]: unable to remap invalid link 'pg_wal' for standby cluster creation of Postgres HOT 4
- How to collect non postgres database metrics via pgmonitor HOT 4
- Cannot set `use_endpoints: false` for PGO HOT 5
- Allow annotations to be added to services HOT 1
- Unable to get metrics for ccp_backrest_* query HOT 2
- Postgres Cluster (Restore) is able to be created with name that causes pod to have label longer than 63 characters. HOT 4
- pgAdmin4 not working with PG15 and PG16 HOT 5
- Make terms of usage for production more clear HOT 1
- Large memory usage on the replica pod HOT 3
- PGAdmin image upgrade resulted in (13)Permission denied: AH00091: httpd: could not open error log file HOT 2
- PGO upgrade caused PG13 backups to fail HOT 3
- PGUpgrade images & version support HOT 4
- pgbouncer operator setup with external postgresql host HOT 1
- How to set ulimit (stack size) with a larger value HOT 2
- registry.developers.crunchydata.com not availible anymore.. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgres-operator.