
计 算 机 研 究 与 发 展
DOI
:
10.7544∕issn1000G1239.2020.20190686
JournalofCom
p
uterResearchandDevelo
p
ment 57
(
12
):
2703 2716
,
2020
收稿日期
:
2019
-
09
-
19
;
修回日期
:
2020
-
02
-
17
基金项目
:
国家自然科学基金青年科学基金项目
(
61802106
)
Thisworkwassu
pp
ortedb
y
theNationalNaturalScienceFoundationofChinaforYoun
g
Scientists
(
61802106
)
.
通信作者
:
王彦骉
(
w
y
bhbu@163.com
)
一种基于
HashGra
p
h
的
NoS
Q
L
型分布式存储因果一致性模型
田 俊 峰
王 彦 骉
(
河北大学网络空间安全与计算机学院
河北保定
071002
)
(
河北省高可信信息系统重点实验室
(
河北大学
)
河北保定
071002
)
(
t
j
f@hbu.edu.cn
)
CausalGPdh
:
CausalConsistenc
y
ModelforNoS
Q
LDistributedDataStora
g
eUsin
g
HashGra
p
h
TianJunfen
g
and Wan
g
Yanbiao
(
Schoolo
f
C
y
berSecurit
y
andCom
p
uter
,
HebeiUniversit
y
,
Baodin
g
,
Hebei
071002
)
(
Ke
y
Laborator
y
on Hi
g
hTrustedIn
f
ormationS
y
stemin HebeiProvince
(
HebeiUniversit
y
),
Baodin
g
,
Hebei
071002
)
Abstract Thecausalconsistenc
y
ofdatainadistributedenvironmentmeansthatwhendata with
causalde
p
endenceisu
p
dated
,
thede
p
endenc
y
metadatainotherdistributedco
p
iesmustbeu
p
dated
simultaneousl
y
,
while meetin
g
hi
g
her availabilit
y
and
p
erformance re
q
uirements.To solve the
p
roblemofusers
p
utlatenc
y
andu
p
datin
g
visiblelatenc
y
inexistin
g
results
,
basedonthedatacenter
stablevectors
,
combinedwiththe
p
rinci
p
leofh
y
bridlo
g
icalclocksandtheHashGra
p
h
,
we
p
ro
p
ose
theCausalGPdh model.Toreducethecommunicationoverheadcausedb
y
exchan
g
in
g
databetween
re
p
licates
,
p
artialstabelvectorsre
q
uired b
y
s
y
nchronizin
g
dataand Hash valueasthe messa
g
e
si
g
naturesareusedinsteadofthewholedatacenterstablevectors.The
p
rinci
p
leofvirtualvotin
g
in
HashGra
p
hisusedtoim
p
rovethe
p
rocessofs
y
nchronizin
g
thelatestentriesineachdatacenter.Just
likeGossi
p
aboutGossi
p
:
each
p
arentnodealsorandoml
y
exchan
g
esthelateststatus
,
andu
p
datesthe
clockre
g
ularl
y
.This
p
ro
g
ressreducesthetimeofvirtualvotin
g
betweenthere
p
licates.Finall
y
,
itis
verifiedb
y
ex
p
erimentsthattheCausalGPdhmodelnotonl
y
doesntaffectthethrou
g
h
p
utoftheclient
q
uer
y
,
butalsoreducesthewaitlatenc
y
ofusers
p
uto
p
erationb
y
20.85% whentheclockskewis
severe.Whenthe
q
uer
y
isam
p
lifiedinthes
y
stem
,
theres
p
onsetimeofre
q
uestisreducedb
y
23.37%.
Ke
y
words dataconsistenc
y
;
causalconsistenc
y
;
distributedstora
g
e
;
HashGra
p
h
;
h
y
bridlo
g
ical
clocks
摘
要
分布式环境中的数据因果一致性指的是对具有因果依赖性的数据进行更新时
,
须同步更新其他
分布式副本中的依赖性元数据
,
同时满足较高的可用性和性能需求
.
为解决现有成果中更新可见延迟较
高的问题
,
在数据中心稳 定向 量 的基 础 上
,
结合 混 合逻 辑 时 钟 和
HashGra
p
h
原 理
,
提 出 了
CausalGPdh
模型
.
使用部分向量和校验值作为消息签名代替了所有向量
,
并且借鉴
HashGra
p
h
的原理
,
改进了各个
数据中心同步最新条目的过程
,
各个父节点随机与其他父节点同步最新状态
,
从而降低了虚拟投票所使
用的时间
.
最后通过实验验证了
CausalGPdh
模型不仅没有影响客户端的吞吐量
,
而且在时钟偏移较严重时
降低了
20.85%
的用户
PUT
等待延迟
,
在系统中存在查询放大的情况时
,
PUT
响应时间降低了
23.27%.
评论