我已经使用 Kubegres 在 Kubernetes 集群上设置了一个 Postgres,该集群包含 3 个实例 - 1 个主实例和 2 个副本。现在,我面临的问题是复制实际上不起作用。同步的是新创建数据库时。未同步的内容:
- 创建表
- 插入/修改数据
我经历了以下步骤:https://www.kubegres.io/doc/getting-started.html我是不是漏掉了什么?我也不确定它是 postgres 本身的一部分还是 kubegres 的一部分。
这是其中一个副本的日志:
2023-07-24 12:46:31.983 GMT [1] LOG: starting PostgreSQL 12.4 (Debian 12.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2023-07-24 12:46:31.983 GMT [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2023-07-24 12:46:31.983 GMT [1] LOG: listening on IPv6 address "::", port 5432
2023-07-24 12:46:31.986 GMT [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-07-24 12:46:31.995 GMT [26] LOG: database system was interrupted; last known up at 2023-07-24 12:46:30 GMT
2023-07-24 12:46:32.071 GMT [26] LOG: entering standby mode
2023-07-24 12:46:32.074 GMT [26] LOG: redo starts at 0/E000028
2023-07-24 12:46:32.075 GMT [26] LOG: consistent recovery state reached at 0/E000100
2023-07-24 12:46:32.075 GMT [1] LOG: database system is ready to accept read only connections
2023-07-24 12:46:32.079 GMT [30] LOG: started streaming WAL from primary at 0/F000000 on timeline 4
编辑:我之前在 stackoverflow 上发过这个问题,但有人建议我把它发到 serverfault。我删除了旧帖子,因为没有有用的回复。