|
@@ -21,6 +21,7 @@ public abstract class AbstractClusterConfig {
|
|
|
// 어플리케이션 클러스터 정보
|
|
// 어플리케이션 클러스터 정보
|
|
|
private boolean master = true;
|
|
private boolean master = true;
|
|
|
private int id = -1; // 서버 ID (1부터 시작, 0은 사용하지 않음)
|
|
private int id = -1; // 서버 ID (1부터 시작, 0은 사용하지 않음)
|
|
|
|
|
+ private boolean autoFailbackEnabled = false; // client 모드시 작업을 바로 넘겨주는 옵션(기본 false)
|
|
|
private int masterId = -1;
|
|
private int masterId = -1;
|
|
|
private int syncSeconds = 5; // 데이터 동기화 주기 (초 단위, 기본 5초, 최소 2초, 최대 60초)
|
|
private int syncSeconds = 5; // 데이터 동기화 주기 (초 단위, 기본 5초, 최소 2초, 최대 60초)
|
|
|
private String ip = "127.0.0.1"; // 클러스터 서버의 IP 주소
|
|
private String ip = "127.0.0.1"; // 클러스터 서버의 IP 주소
|
|
@@ -100,6 +101,7 @@ public abstract class AbstractClusterConfig {
|
|
|
masterNode.setPort(this.port);
|
|
masterNode.setPort(this.port);
|
|
|
masterNode.setLogging(this.logging);
|
|
masterNode.setLogging(this.logging);
|
|
|
masterNode.setPacketLogging(this.packetLogging);
|
|
masterNode.setPacketLogging(this.packetLogging);
|
|
|
|
|
+ masterNode.setWitness(false);
|
|
|
this.nodes.add(masterNode);
|
|
this.nodes.add(masterNode);
|
|
|
this.myCluster = masterNode;
|
|
this.myCluster = masterNode;
|
|
|
this.enabled = false;
|
|
this.enabled = false;
|