IT Engineer/Database

cluster replica

김골디 2019. 2. 13. 22:47
    2-3. Goldilocks Cluster 주요 기능
        1) replica
        2) shard
        3) failover
        4) online scale out
        5) (etc) global index, sequence



1) Replica

Goldilocks Cluster는 group과 member의 개념이 있고, 동일 한 Group 내 서로 다른 member는 동일한 데이터를 갖는다.
데이터의 복제는 네트워크를 통해 이루어지며 Active-Active 운영이 가능하다. 멤버 간 데이터 복제가 실시간으로 이루어지며 서로 다른 물리적 장비를 사용하기 때문에, 하나의 장비에 장애가 발생하더라도 서비스 중단 없이 운영이 가능하다.

gSQL-G1N1> create table T1 (i1 int primary key, i2 int);

Table created.

gSQL-G1N1> insert into T1 values (1, 1004);

1 row created.

gSQL-G1N2> select * from T1;

I1   I2
-- ----
1 1004

1 row selected.


gSQL-G1N2> update T1 set I2=999 where i1=1;

1 row updated.

gSQL-G1N1> select * from T1;

I1  I2
-- ---
1 999

1 row selected.