pgpool-ii(3)
-
FATAL: invalid configuration, failover_when_quorum_exists is not allowed in native replication mode
에러 상황 pgpool2 를 통해 로드밸런싱을 설정하던 중 발생했던 문제 Aug 29 07:46:19 ip-172-31-44-88 pgpool[3790]: 2023-08-29 07:46:19: pid 3790: FATAL: invalid configuration, failover_when_quorum_exists is not allowed in native replication mode Aug 29 07:46:19 ip-172-31-44-88 systemd[1]: pgpool2.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED Aug 29 07:46:19 ip-172-31-44-88 systemd[1]: pgpool2.service: ..
2023.08.29 -
pgpool2 로드밸런서
사전 준비 Master-Slave 설정 https://muyeon95.tistory.com/272 AWS EC2 ubuntu postgresql replication (Master-Slave) 사전 과정 AWS 에서 EC2 인스턴스를 2개 만든다. (master, slave) https://muyeon95.tistory.com/187 AWS EC2 배포하기 선행작업 https://muyeon95.tistory.com/186 github SSH Repository [ git ] - 우선 repository 를 생성한다. - SSH 키 muyeon95.tistory.com 아래 포스팅을 참고해 pgpool 인스턴스를 생성 https://muyeon95.tistory.com/187 AWS EC2 배포하기 선행..
2023.08.29 -
postgreSQL Replication 개념
WAL PostgreSQL 에서 제공하는 복제 서버 구축 방식을 요약하면 다음과 같다. 마스터 서버에서 발생하는 모든 작업을 로그로 만든다. 이 로그를 스탠바이 서버들로 전달한다. 스탠바이 서버들에서 받은 로그를 복원(재실행) 한다. 이렇게 하면 마스터 서버와 같은 스키마/데이터를 가지는 복제 서버가 탄생하게 된다. 이 때, 마스터 서버의 로그를 WAL(Write Ahead Log) 이라고 한다. WAL 전달 방식 WAL 파일 자체를 스탠바이 서버로 전달(file copy)하면 Log-Shipping 방식이다. WAL 파일 저장 여부와 관계 없이 로그의 내용을 스탠바이 서버로 직접 전달하면 Streaming 방식이 된다. Log-Shipping(Physical Replication) 마스터 서버에서 지정..
2023.08.21