Skip to content

Commit f8c518f

Browse files
committed
fix doc
1 parent c04e1a4 commit f8c518f

2 files changed

Lines changed: 10 additions & 26 deletions

File tree

  • CN/modules/ROOT/pages/master/ecosystem_components
  • EN/modules/ROOT/pages/master/ecosystem_components

CN/modules/ROOT/pages/master/ecosystem_components/pgdog.adoc

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ PgDog通过两个文件进行配置:
7676

7777
[source,toml]
7878
----
79+
[general]
80+
host = "0.0.0.0"
81+
port = 6432
82+
default_pool_size = 10
83+
7984
# ---- ivory_shard:分片到两个 IvorySQL 后端 ----
8085
# host、port以及database_name,如果不是使用本文提供的docker-compose搭建的环境,需要按照实际情况修改
8186
[[databases]]
@@ -133,8 +138,6 @@ pool_size = 10
133138
# 分片测试拓扑(独立 compose):2 个分片后端。
134139
# ivory-shard0 IvorySQL 5.4 (pg) host:5443
135140
# ivory-shard1 IvorySQL 5.4 (pg) host:5444
136-
# pgdog-shard PgDog 分片代理 host:6433
137-
# -> 库 ivory_shard 分片到 ivory-shard0/1
138141
139142
x-ivory: &ivory
140143
image: registry.highgo.com/ivorysql/ivorysql:5.4-bookworm
@@ -158,17 +161,6 @@ services:
158161
<<: *ivory
159162
container_name: ivory-shard1
160163
ports: ["5444:5432"]
161-
162-
pgdog-shard:
163-
image: ghcr.io/pgdogdev/pgdog:latest
164-
container_name: pgdog-shard
165-
depends_on:
166-
ivory-shard0: {condition: service_healthy}
167-
ivory-shard1: {condition: service_healthy}
168-
ports: ["6433:6432"]
169-
volumes:
170-
- ./pgdog.toml:/pgdog/pgdog.toml:ro
171-
- ./users.toml:/pgdog/users.toml:ro
172164
----
173165

174166
== 使用

EN/modules/ROOT/pages/master/ecosystem_components/pgdog.adoc

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ Create `pgdog.toml`:
7575

7676
[source,toml]
7777
----
78+
[general]
79+
host = "0.0.0.0"
80+
port = 6432
81+
default_pool_size = 10
82+
7883
# ---- ivory_shard: shard across two IvorySQL backends ----
7984
# host, port, and database_name need to be modified according to your actual setup if you are not using the environment built with the docker-compose provided in this document
8085
[[databases]]
@@ -132,8 +137,6 @@ Please modify the `volumes` field according to the actual location of your confi
132137
# Sharding test topology (standalone compose): 2 shard backends.
133138
# ivory-shard0 IvorySQL 5.4 (pg) host:5443
134139
# ivory-shard1 IvorySQL 5.4 (pg) host:5444
135-
# pgdog-shard PgDog sharding proxy host:6433
136-
# -> database ivory_shard sharded across ivory-shard0/1
137140
138141
x-ivory: &ivory
139142
image: registry.highgo.com/ivorysql/ivorysql:5.4-bookworm
@@ -157,17 +160,6 @@ services:
157160
<<: *ivory
158161
container_name: ivory-shard1
159162
ports: ["5444:5432"]
160-
161-
pgdog-shard:
162-
image: ghcr.io/pgdogdev/pgdog:latest
163-
container_name: pgdog-shard
164-
depends_on:
165-
ivory-shard0: {condition: service_healthy}
166-
ivory-shard1: {condition: service_healthy}
167-
ports: ["6433:6432"]
168-
volumes:
169-
- ./pgdog.toml:/pgdog/pgdog.toml:ro
170-
- ./users.toml:/pgdog/users.toml:ro
171163
----
172164

173165
== Usage

0 commit comments

Comments
 (0)