3.7 카프카 미러메이커2
카프카 미러메이커2
미러메이커1
단방향 토픽 복제
/**
* 복제할 클러스터의 닉네임 작성
* 토픽이 복제될 때 접두사(prefix)로 붙게 된다.
* ex) A -> B 인 경우 A.click_log로 토픽이 생성
* 복제된 토픽이 어디에 위치하는지 명확히 제시하는 클러스터 이름으로 작성
*/
clusters = A, B
// 클러스터 접속 정보
A.bootstrap.servers = a-kafka:9092
B.bootstrap.servers = b-kafka:9092
// 클러스터 A에서 클러스터 B로 test 토픽을 복제
A->B.enabled = true
A->B.topics = test
// 복제 X
B->A.enabled = false
B->A.topics = .*
// 복제되어 신규 생성된 토픽의 복제 개수
replication.factor=1
// 토픽 복제에 필요한 데이터를 저장하는 내부 토픽의 복제 개수
checkpoints.topic.replication.factor=1
heartbeats.topic.replication.factor=1
offset-syncs.topic.replication.factor=1
offset.storage.replication.factor=1
status.storage.replication.factor=1
config.storage.replication.factor=1실행
지리적 복제(Geo-Replication)
액티브 -스탠바이(Active-standby) 클러스터 운영
액티브-액티브(Active-active) 클러스터 운영
허브 앤 스포크(Hub and spoke) 클러스터 운영
Last updated