Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rheakv #163

Open
wants to merge 398 commits into
base: dev
Choose a base branch
from
Open

add rheakv #163

wants to merge 398 commits into from

Conversation

LXPWing
Copy link

@LXPWing LXPWing commented Jul 14, 2021

1.在JDBC模块中复制DefaultCommonConfigBean、MetadataConfigBean、MetaElectorConfigBean,然后在RaftConfiguration配置类中注入三者。
2.在RaftConfiguration配置类中注入RheaKVStore(通过 @ConditionalOnMissingBean判断用户是否注入RheaKVStore,如果没有自动注入,启动我定义好的RheaKVStore)
3.新增DefaultConfigs(DB_PATH,RAFT_DATA_PATH,ADDRESS,CLUSTER_NAME)
4.新增LeaderLockDomain(lockName(分布式锁名称),dataCenter(集群名称),owner(节点名称),leaderInfo(节点信息),gmtModified(修改时间),duration(过期时间))
5.新增AppRevisionDomain(dataCenter(集群节点 ,revision(revision),appName(应用名),clientVersion(客户端版本),baseParams(基础参数),serviceParams(服务参数),gmtModify(修改时间))
6.在MetaRaftLeaderElector中的JRheaKV存储("DISTRIBUTE-LOCk",Map<String, LeaderLockDomain>
7.Map<String, LeaderLockDomain> leaderInfoMap = new ConcurrentHashMap<>(),表示Map<集群节点,节点信息>

yuzhi.lyz and others added 30 commits January 16, 2021 19:10
… change crc method to crc32c

Merge branch 'bugfix/leader-epoch-change of git@gitlab.alipay-inc.com:sofa-open/sofa-registry.git into EI61836181_20201222

https://code.alipay.com/sofa-open/sofa-registry/pull_requests/145


Signed-off-by: 源三 <yuzhi.lyz@antgroup.com>


* 1. slot epoch change only-when leader changes
2. slot change assembly to ArrangeTaskDispatcher
   2.1 all tasks will be stop until init resharding works
   2.2 reassign task is not allowed for slot-manager directly call ArrangeTaskExecutor

* remove un-used import

* change crc method to crc32c

* all tests passed

* throw exception when raft target cannot find

* change name from crc32 to crc3c

* add unit test

* [feature]assign ok

* [feature]re-assign framework for slot-table

* [feature]slots loss to add complete

* [feature]balance slot functional ok, wait for whole tests

* [unit test]passed

* [test passed]unit test and integration tests all passed

* remove un-used imports

* remove un-used private field

* remove un-used imports

* fix issues according to git comments

* define data-servers to balance by lower water mark instead of high water mark

* remove un-used imports

* registry test cluster test passed

* incr slot table epoch when balance follower only

* scheudled slot arrange task will not stop

* remove un-used imports

* slot.threshold

* add log for empty data server list

* add tests for slot migrate

* unit test change to match code change

* to solve the left issues

* remove un-used imports
 - balance.threshold def = 30
Merge branch bugfix/slot-table-dup-leader-follower of git@gitlab.alipay-inc.com:sofa-open/sofa-registry.git into EI61836181_20201222
https://code.alipay.com/sofa-open/sofa-registry/pull_requests/162?tab=diff

Signed-off-by: 源三 <yuzhi.lyz@antgroup.com>


* add more unit tests

* fix bug that slot table may has dup leader and follower

* remove un-used imports

* refactor slot table constructor to accept list insteadof a map

* for average, take floor rather than ceil in case all data won't fit the average

* fix some issue for code review

* optimize imports

* fix issues fro code review

* fix try lock issue
Merge branch hotfix/change-threshold of git@gitlab.alipay-inc.com:sofa-open/sofa-registry.git into EI61836181_20201222
https://code.alipay.com/sofa-open/sofa-registry/pull_requests/169

Signed-off-by: 源三 <yuzhi.lyz@antgroup.com>


* change threshold
 - fix batch request retry throw midify exception
yuzhi.lyz and others added 15 commits May 9, 2021 16:09
 - not clean slot-follower
 - clean processId without lock
 - clean with deadline
Merge branch hotfix/more-logs-on-http-api of git@gitlab.alipay-inc.com:sofa-open/sofa-registry.git into EI61836181_20201222
https://code.alipay.com/sofa-open/sofa-registry/pull_requests/308?tab=diff

Signed-off-by: 向旭 <xiangxu.lxd@antgroup.com>


* add more logs for http control api

* add response result for log
 - add evit log
* Create maven.yml

* Update maven.yml

* Update README.md

* Update README.md

* Update README.md

remove personal NickNYU

* Update maven.yml

Update README.md

* split executor in session and data (sofastack#152)

* default disable drop connections

* lint

* start check client version cron

* don't use bolt-default-executor (sofastack#151)

Update README.md

Update README.md

remove personal NickNYU

Co-authored-by: dzdx <dzidaxie@gmail.com>
Co-authored-by: 忘禅 <zhuchen.zhu@alibaba-inc.com>
…figBean,然后在RaftConfiguration配置类中注入三者。

2.在RaftConfiguration配置类中注入RheaKVStore(通过 @ConditionalOnMissingBean判断用户是否注入RheaKVStore,如果没有自动注入,启动我定义好的RheaKVStore)
3.新增DefaultConfigs(DB_PATH,RAFT_DATA_PATH,ADDRESS,CLUSTER_NAME)
4.新增LeaderLockDomain(lockName(分布式锁名称),dataCenter(集群名称),owner(节点名称),leaderInfo(节点信息),gmtModified(修改时间),duration(过期时间))
5.新增AppRevisionDomain(dataCenter(集群节点 ,revision(revision),appName(应用名),clientVersion(客户端版本),baseParams(基础参数),serviceParams(服务参数),gmtModify(修改时间))
6.在MetaRaftLeaderElector中的JRheaKV存储("DISTRIBUTE-LOCk",Map<String, LeaderLockDomain>
7.Map<String, LeaderLockDomain> leaderInfoMap = new ConcurrentHashMap<>(),表示Map<集群节点,节点信息>
@sofastack-bot
Copy link

sofastack-bot bot commented Jul 14, 2021

Hi @LXPWing, welcome to SOFAStack community, Please sign Contributor License Agreement!

After you signed CLA, we will automatically sync the status of this pull request in 3 minutes.

@sofastack-bot sofastack-bot bot added cla:yes and removed cla:no labels Jul 30, 2021
2.修改LeaderLockDomain类的属性(原: 替换LeaderInfo类 ,现:改为epoch,leader,expireTimestamp属性,LeaderLockDomain类继承Serializable接口)。
3.修改InterfaceAppsDomain类的属性(原: 替换interfaceMapping类,现:改为nanosVersion,apps属性,InterfaceAppsDomain类继承Serializable接口)。
4.增加ProvideDataRaftRepository类
5.增加AppRevisionRaftRepositoryTest类,
(1)测试AppRevisionRaftRepository类中的register,queryRevisionrefresh,heartbeat,invalidateHeartbeat,getHeartbeatSet方法。
(2)测试 AppRevisionHeartbeatRaftRepository类中的doHeartbeatCacheChecker,doAppRevisionGc方法。
6.增加InterfaceAppsRaftRepositoryTest类,测试InterfaceAppsRaftRepository类中的getAppNames方法。
7.增加ProvideDataRaftRepositoryTest类,测试ProvideDataRaftRepository类中的put,remove,getAll方法。
@seeflood
Copy link
Member

@NickNYU @dzdx Hi guys, could you help review this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SOFARegistry对接JRaft-KV,实现单Jar包启动
5 participants