-
Notifications
You must be signed in to change notification settings - Fork 611
Setup logical replication using operator v5 #2681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Timescale is already in the container; you don't need to add it in yourself. Similarly, getting logical replication set up by modifying the container is the incorrect approach, as you can get it through configuration via the custom resource. It's probably worth us adding an example for how to set up logical replication in the documentation. |
@jkatz if it was possible I would really love to see how to do via the custom resource, or point me to the custom resource docs, you would really be saving my bacon! |
@jkatz After further investigation, it seems this feature was added in |
The examples repo is up to 5.0.2. Both Timescale and the ability to use logical replication are available in 5.0.0 and beyond. I was able to get logical replication running locally on my copy of 5.0.2 and have been in the process of preparing documentation. If you need immediate support please refer to the support page. |
@jkatz I've just tried applying host replication params by following this related thread and finding this document and I am still receiving errors when trying to create a replication connection: apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: my-db
namespace: postgres-operator
spec:
image: eu.gcr.io/<my-db>/timescale-custom:v38
postgresVersion: 13
users:
- name: postgres
- name: pgdelta
databases:
- mydb
options: "SUPERUSER"
instances:
- name: instance1
replicas: 3
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 100Gi
patroni:
dynamicConfiguration:
postgresql:
parameters:
wal_level: logical
pg_hba:
- host replication postgres 0.0.0.0/0 trust
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:centos8-2.33-2
repoHost:
dedicated: {}
repos:
- name: repo1
volume:
volumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 300Gi (Although I'm pretty sure |
@jkatz any progress on this issue? |
Following up; @jkatz |
This adds a guide for how to set up logical replication using PGO. This provides a simple example to help illustrate how to do so. Issue: #2681
Referenced in e3ea540. |
This adds a guide for how to set up logical replication using PGO. This provides a simple example to help illustrate how to do so. Issue: CrunchyData#2681
This adds a guide for how to set up logical replication using PGO. This provides a simple example to help illustrate how to do so. Issue: CrunchyData#2681
I've been trying to setup permissions for
logical replication
in operator v5 and I can't seem to do so. I'm running a customregistry.developers.crunchydata.com/crunchydata/crunchy-postgres-ha:centos8-13.4-0
dockerfile that I've edited to run thetimescaledb
extension.I've tried two methods to enable logical replication; one by editing
/opt/crunchy/conf/postgres-ha/pg_hba.conf
directly, and another by replacing /opt/crunchy/conf/postgres-ha/postgres-ha-pghba-bootstrap.yaml with my own file. Neither seem to be working as I keep getting the following error from my client:I've been unable to set it up correctly so far, could someone please point me where I'm going wrong?
This is my dockerfile:
My
postgres-ha-pghba-bootstrap.yaml
The text was updated successfully, but these errors were encountered: