Coder Social home page Coder Social logo

Comments (2)

jmckulk avatar jmckulk commented on June 15, 2024 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.

gregory-j-baker avatar gregory-j-baker commented on June 15, 2024 1

This is great, @jmckulk. Thank you so much.

from postgres-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.