database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 30290 게시물 읽기
No. 30290
MySQL 이중화 관련 질문. ReadOnly DB사용
작성자
백동주(djpaek)
작성일
2012-07-24 10:03
조회수
8,812

 MySQL의 DRBD 기능을 활용하여 이중화를 구성하였습니다.

총 3대인데요

 

구성은 아래와 같습니다.

 01 : Active  

 02 : Backup

 03 : Backup

 

용량상의 이유로

03 : Backup 시스템에서 Select만 발생시켜 Read Only로 사용하고 싶습니다.

이게 가능한 구성인가요? 혹시 좀더 좋은 방법이 있다면 조언 부탁드립니다.

 

 

이 글에 대한 댓글이 총 3건 있습니다.

 

 

그럼 리플리케이션 구현 하면 되죠 ^^

민족님이 2012-07-24 14:56에 작성한 댓글입니다. Edit

 Replication 이라면 

  - 3기 모두 Active 구성을 말씀하시는 것인가요??

  - 시스템 구성을 바꿀수 없는 상황이라 Active, Backup, Backup 구성을 유지해야한답니다. ㅠ_ㅠ

 

 

백동주(djpaek)님이 2012-07-24 15:30에 작성한 댓글입니다.

윗분이 말씀한 구조는 replication 기능을 사용하시면 될 것 같습니다.

01 - master node

02, 03 - slave nodes ( read only ) with backup

그러나 용량상의 문제라고 하시니 해당 구조를 사용하기 어려울 수도 있습니다. replication을 사용하면

binary log, relay log 를 사용하기 때문에 disk 용량이 더 필요할 수 있습니다. 그러나 구조 자체를 놓고 보면

slave nodes 은 모두 read only 로 사용하실 수 있습니다. 그리고 3대 모두 active mode 가 되며

db에 접근하는 application은 load valance 를 고려해 주셔야 합니다.

참고로...

The target uses for replication in MySQL include :


  • Scale-out solutions
    • Spreading the load among multiple slaves to improve performance.
    • All writes and updates must take place on the master server.
    • Reads may take place one or more slaves.
  • Data security
    • Because data is replicated to the slave, and the slave can pause the replication process, it is possible to run backup services on the slave without corrupting the corresponding master data.
  • Analytics
    • Live data can be created on the master, while the analysis of the information can take place one the slave without affecting the performance of the master.
  • Long-distance data distribution
    • If a branch office would like to work with a copy of your main data, you can use replication to create a local copy of the data for their use without requiring permanent access to the master.

 

루키(leesoch)님이 2012-07-24 16:49에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
30293Mysql 인덱스 사용에 대해 궁금합니다. [2]
할로우
2012-07-30
9029
30292서버export 시킨 sql -> import 시킬때 에러 [1]
김양훈
2012-07-27
7686
30291Cardinality가 `none` 으로 나옵니다. [1]
정진섭
2012-07-26
8713
30290MySQL 이중화 관련 질문. ReadOnly DB사용 [3]
백동주
2012-07-24
8812
30289foreign_key 무시하고 컬럼타입 변경 하는 방법 없을까요? [1]
김상묵
2012-07-20
8333
30288Cygwin 에 mysql 설치 시 질문 입니다. [1]
십년만에
2012-07-18
9310
30287use index 사용하기 [1]
태양
2012-07-17
9829
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다