-
Notifications
You must be signed in to change notification settings - Fork 247
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
LXPWing
wants to merge
398
commits into
sofastack:dev
Choose a base branch
from
LXPWing:feature/add_RheaKV
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add rheakv #163
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- add proms metrics
- add metrics
… change crc method to crc32c Merge branch 'bugfix/leader-epoch-change of [email protected]:sofa-open/sofa-registry.git into EI61836181_20201222 https://code.alipay.com/sofa-open/sofa-registry/pull_requests/145 Signed-off-by: 源三 <[email protected]> * 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
…s which has 0 publisher
Merge branch bugfix/slot-table-dup-leader-follower of [email protected]:sofa-open/sofa-registry.git into EI61836181_20201222 https://code.alipay.com/sofa-open/sofa-registry/pull_requests/162?tab=diff Signed-off-by: 源三 <[email protected]> * 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 [email protected]:sofa-open/sofa-registry.git into EI61836181_20201222 https://code.alipay.com/sofa-open/sofa-registry/pull_requests/169 Signed-off-by: 源三 <[email protected]> * change threshold
- not clean slot-follower - clean processId without lock - clean with deadline
Merge branch hotfix/more-logs-on-http-api of [email protected]:sofa-open/sofa-registry.git into EI61836181_20201222 https://code.alipay.com/sofa-open/sofa-registry/pull_requests/308?tab=diff Signed-off-by: 向旭 <[email protected]> * 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 <[email protected]> Co-authored-by: 忘禅 <[email protected]>
…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<集群节点,节点信息>
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. |
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方法。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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<集群节点,节点信息>