-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
feature: support the mixed use of different storages of locks and sessions #3575
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3575 +/- ##
==========================================
Coverage 52.12% 52.13%
- Complexity 3502 3507 +5
==========================================
Files 638 638
Lines 21108 21134 +26
Branches 2618 2622 +4
==========================================
+ Hits 11003 11018 +15
- Misses 9016 9022 +6
- Partials 1089 1094 +5
|
有关于改动前后的性能测试报告吗?预期会对并发的性能有一定的提升,但是提升幅度大概是? |
作为未来lock和session库的拆分的前置,未来扩展支持lock单独一个库,session单独一个库,没具体测过性能,我晚上测测看 |
测试demo: https://gitee.com/itCjb/spring-cloud-alibaba-seata-demo/tree/sample/
lock.mode=db session.mode=redis
db all
redis all
不启用seata:
以下是200并发2000请求量 随机对100件商品下单 3个微服务 1个tc
db all
lock.mode=redis session.mode=db
lock.mode=db session.mode=redis
不启用seata
|
这个能否兼容原有的配置形式? |
script/server/config/file.conf
Outdated
@@ -4,6 +4,14 @@ store { | |||
## store mode: file、db、redis | |||
mode = "file" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is recommended to remove this configuration item, but it is compatible with the program.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
兼容 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@parameter(names = {"--storeMode", "-m"}, description = "log store mode : file, db", order = 3)
这个参数是否需要跟store.session.mode统一?
store.lock.mode是否需要暴露出去?
有道理,我加一下 |
server/src/main/java/io/seata/server/session/SessionHolder.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## develop #3575 +/- ##
=============================================
- Coverage 51.70% 51.68% -0.03%
- Complexity 3518 3521 +3
=============================================
Files 640 640
Lines 21391 21420 +29
Branches 2670 2675 +5
=============================================
+ Hits 11060 11070 +10
- Misses 9229 9241 +12
- Partials 1102 1109 +7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews