PostgreSQL HA 2

# PostgreSQL HA ๊ตฌ์„ฑ - PGPoolโ…ก

PostgreSQL Pgpool-โ…ก ๋Š” ๋ฌด์—‡์ธ๊ฐ€? Pgpool-II๋Š” PostgreSQL ์„œ๋ฒ„์™€ PostgreSQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํด๋ผ์ด์–ธํŠธ ์‚ฌ์ด์— ์žˆ๋Š” Proxy ์†Œํ”„ํŠธ์›จ์–ด์ด๋‹ค. ์ฆ‰, Pgpool-II๊ฐ€ DB Cluster ์—ญํ• ์„ ํ•˜๊ฒŒ ํ•ด์ฃผ๋Š” ๊ฒƒ์ด๋‹ค. ์™œ ํ•„์š”ํ•œ ๊ฒƒ์ธ๊ฐ€? Connection Pool ๊ด€๋ฆฌ : Connection์˜ ์žฌ์‚ฌ์šฉ์œผ๋กœ ์ธํ•œ ์ „์ฒด ์„ฑ๋Šฅ ํ–ฅ์ƒ Load Balancing : Replication ๊ธฐ๋Šฅ์„ ํ†ตํ•ด ๊ฐ™์€ Data๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค๋ฉด, Query๋ฅผ ์—ฌ๋Ÿฌ Server์— ๋‚˜๋ˆ ์„œ ๋ถ„์‚ฐ ์ฒ˜๋ฆฌ Auto Fail Over : Master Server์— ์žฅ์•  ๋ฐœ์ƒ์‹œ, Slave Server๊ฐ€ ๊ทธ ๊ธฐ๋Šฅ์„ ๋Œ€์‹  ์ˆ˜ํ–‰ํ•œ๋‹ค. ์ด์ „์— ๊ตฌ์„ฑํ•œ # PostgreSQL Streaming Replication ๊ตฌ..

Database/PostgreSQL 2019.10.23

# PostgreSQL Streaming Replication ๊ตฌ์„ฑ

์ด์ „ ๊ธ€(# PostgreSQL Streaming Replication ๊ฐœ๋…)์—์„œ PostgreSQL Replication์— ๋Œ€ํ•œ ๊ฐœ๋…์„ ์‚ดํŽด๋ดค๊ณ  ์ด์ œ ์‹ค์ œ ๊ตฌ์„ฑ์„ ํ•ด๋ณด์ž. Step 1. PostgreSQL11 ์„ค์น˜ $ rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm $ yum install -y postgresql11-server postgresql11-contrib Step 2. PostgreSQL ์‹คํ–‰ # init db $cd /usr/pgsql-11/bin $ ./postgresql-11-setup initdb # postgresql ์‹คํ–‰ $ sys..

Database/PostgreSQL 2019.10.23