일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- CentOS 8
- Packstack
- Rocky Linux 8
- Kubernetes
- 라떼판다 우분투
- MySQL
- openstack
- WireGuard
- RDP Wrap
- MSA
- RHEL
- MariaDB
- nextcloud
- 라떼판다
- haproxy
- Rocky Linux
- RHEL 8
- PostgreSQL
- CentOS
- LattePanda Ubuntu
- 자작 NAS
- LattePanda NAS
- RHEL 7
- 라떼판다 NAS
- Windows 10 Home
- ubuntu
- Openstack Rocky
- podman
- LattePanda
- centos 7
- Today
- Total
목록Linux/31.PostgreSQL (4)
간마늘작업소

0.개요 PostgreSQL 이중화(HA) 구성 방안 중 Repmgr을 이용한 구성 진행. PostgreSQL의 이중화 솔루션 중 가장 보편적인 방법은 PGPool-II을 이용하는 것이 있음. 다만, 공식 문서 미비 등으로 사용하는데 상당히 불친절함. 따라서, PostgreSQL 기반 엔터프라이즈 DBMS 개발사인 EDB에서 제작한 Repmgr을 이용. EDB에서 개발 및 지원하지만 Repmgr은 오픈소스로서 배포됨. 공식 Github : https://github.com/EnterpriseDB/repmgr 공식 사이트 : https://repmgr.org/ 1.기본 정보 OS 방화벽(Firewalld, iptables)과 SELinux는 비활성화 상태로 설정. DB Node 정보 192.168.0.16..
0.개요 PostgreSQL 11 이중화 중 Replication 설정. PostgreSQL 12 이상 버전에서의 Replication 설정은 다른 방법으로 진행됨. 1.사전 환경. Master 1대 - Standby 1대로 구성할 것을 가정. 2.Master Node 설정 su - postgres cd /data/pgdata/ mkdir archive vi postgresql.conf (전략) wal_level = hot_standby archive_mode = on archive_command = 'cp %p /data/pgdata/archive/%f' max_wal_senders = 10 max_replication_slots = 10 postgresql.conf 파일 하단에 내용 추가. vi pg..
0.개요 PostgreSQL 14 이중화 중 Replication 설정. PostgreSQL 11 이하 버전에서의 Replication 설정은 다른 방법으로 진행됨. 1.사전 환경. Master 1대 - Standby 1대로 구성할 것을 가정. 2.Master Node 설정 su - postgres cd /data/pgdata/ mkdir archive vi postgresql.conf (전략) wal_level = hot_standby archive_mode = on archive_command = 'cp %p /data/pgdata/archive/%f' max_wal_senders = 10 max_replication_slots = 10 postgresql.conf 파일 하단에 내용 추가. vi pg..

0.개요 PostgreSQL 15 설치 진행. PostgreSQL 10 이상이면 설치 방법이 동일함. 1.사전 준비 https://www.postgresql.org/download/ 설치할 운영체제에 맞춰서 선택. 선택을 완료하면 설치할 PostgreSQL 버전과 운영체제, CPU 아키텍처 방식을 지정할 수 있음. 설치할 PostgreSQL 버전은 PostgreSQL 15. 서버의 운영체제는 CentOS 7.9이므로 이에 맞는 버전 지정. CPU 아키텍처 방식은 AMD64이므로 x86_64 지정. yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm dnf..