PostgreSQL 튜닝 및 APISIX etcd prefix 계층구조 변경

This commit is contained in:
kappa
2026-04-06 08:52:27 +09:00
parent adf0367ef8
commit 6a90c899e7

View File

@@ -24,6 +24,8 @@ K3s의 kine 데이터스토어로 사용 중. Supabase Free tier에서 로컬로
- 클러스터 이름: `nocodb-cluster` - 클러스터 이름: `nocodb-cluster`
- 레플리케이션: async streaming - 레플리케이션: async streaming
- Patroni REST API: 각 노드 8008 포트 - 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 목록 ### DB 목록
@@ -74,9 +76,9 @@ incus exec postgres-1 -- etcdctl --endpoints=http://192.168.9.100:2379,http://10
| prefix | 용도 | | prefix | 용도 |
|--------|------| |--------|------|
| `/patroni` | Patroni DCS (Leader election, 설정) | | `/patroni` | Patroni DCS (Leader election, 설정) |
| `/apisix-osaka` | APISIX 오사카 라우팅 설정 | | `/apisix/osaka` | APISIX 오사카 라우팅 설정 |
| `/apisix-tokyo` | APISIX sandbox-tokyo 라우팅 설정 | | `/apisix/tokyo` | APISIX sandbox-tokyo 라우팅 설정 |
| `/apisix-seoul` | APISIX 서울 K3s 라우팅 설정 | | `/apisix/seoul` | APISIX 서울 K3s 라우팅 설정 |
## K3s kine 연결 ## K3s kine 연결
@@ -116,9 +118,9 @@ backend bk_postgres_primary
| 사이트 | 기존 etcd | 이전 후 | prefix | | 사이트 | 기존 etcd | 이전 후 | prefix |
|--------|----------|---------|--------| |--------|----------|---------|--------|
| osaka | Docker waf-etcd (로컬) | 통합 클러스터 (192.168.9.100) | `/apisix-osaka` | | osaka | Docker waf-etcd (로컬) | 통합 클러스터 (192.168.9.100) | `/apisix/osaka` |
| sandbox-tokyo | Docker apisix-etcd (로컬) | 통합 클러스터 (10.253.101.233) | `/apisix-tokyo` | | sandbox-tokyo | Docker apisix-etcd (로컬) | 통합 클러스터 (10.253.101.233) | `/apisix/tokyo` |
| 서울 K3s | StatefulSet 3노드 (K3s 내부) | 통합 클러스터 (192.168.9.100) | `/apisix-seoul` | | 서울 K3s | StatefulSet 3노드 (K3s 내부) | 통합 클러스터 (192.168.9.100) | `/apisix/seoul` |
- 데이터 이전: `etcdctl make-mirror --prefix /apisix/ --dest-prefix /apisix-{site}/` - 데이터 이전: `etcdctl make-mirror --prefix /apisix/ --dest-prefix /apisix-{site}/`
- K3s 내 apisix-etcd StatefulSet + PVC 삭제 완료 - K3s 내 apisix-etcd StatefulSet + PVC 삭제 완료