From 6a90c899e744f568eee8e60dfaaedf12416806cf Mon Sep 17 00:00:00 2001 From: kappa Date: Mon, 6 Apr 2026 08:52:27 +0900 Subject: [PATCH] =?UTF-8?q?PostgreSQL=20=ED=8A=9C=EB=8B=9D=20=EB=B0=8F=20A?= =?UTF-8?q?PISIX=20etcd=20prefix=20=EA=B3=84=EC=B8=B5=EA=B5=AC=EC=A1=B0=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/postgresql-ha.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/infra/postgresql-ha.md b/infra/postgresql-ha.md index b4c3deb..4b663a8 100644 --- a/infra/postgresql-ha.md +++ b/infra/postgresql-ha.md @@ -24,6 +24,8 @@ K3s의 kine 데이터스토어로 사용 중. Supabase Free tier에서 로컬로 - 클러스터 이름: `nocodb-cluster` - 레플리케이션: async streaming - Patroni REST API: 각 노드 8008 포트 +- 컨테이너 메모리 제한: 2GiB (limits.memory) +- shared_buffers: 512MB, effective_cache_size: 1536MB, work_mem: 8MB, maintenance_work_mem: 128MB, wal_buffers: 16MB ### DB 목록 @@ -74,9 +76,9 @@ incus exec postgres-1 -- etcdctl --endpoints=http://192.168.9.100:2379,http://10 | prefix | 용도 | |--------|------| | `/patroni` | Patroni DCS (Leader election, 설정) | -| `/apisix-osaka` | APISIX 오사카 라우팅 설정 | -| `/apisix-tokyo` | APISIX sandbox-tokyo 라우팅 설정 | -| `/apisix-seoul` | APISIX 서울 K3s 라우팅 설정 | +| `/apisix/osaka` | APISIX 오사카 라우팅 설정 | +| `/apisix/tokyo` | APISIX sandbox-tokyo 라우팅 설정 | +| `/apisix/seoul` | APISIX 서울 K3s 라우팅 설정 | ## K3s kine 연결 @@ -116,9 +118,9 @@ backend bk_postgres_primary | 사이트 | 기존 etcd | 이전 후 | prefix | |--------|----------|---------|--------| -| osaka | Docker waf-etcd (로컬) | 통합 클러스터 (192.168.9.100) | `/apisix-osaka` | -| sandbox-tokyo | Docker apisix-etcd (로컬) | 통합 클러스터 (10.253.101.233) | `/apisix-tokyo` | -| 서울 K3s | StatefulSet 3노드 (K3s 내부) | 통합 클러스터 (192.168.9.100) | `/apisix-seoul` | +| osaka | Docker waf-etcd (로컬) | 통합 클러스터 (192.168.9.100) | `/apisix/osaka` | +| sandbox-tokyo | Docker apisix-etcd (로컬) | 통합 클러스터 (10.253.101.233) | `/apisix/tokyo` | +| 서울 K3s | StatefulSet 3노드 (K3s 내부) | 통합 클러스터 (192.168.9.100) | `/apisix/seoul` | - 데이터 이전: `etcdctl make-mirror --prefix /apisix/ --dest-prefix /apisix-{site}/` - K3s 내 apisix-etcd StatefulSet + PVC 삭제 완료