-
Notifications
You must be signed in to change notification settings - Fork 8.9k
optimize: seata-server log configuration #7259
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #7259 +/- ##
============================================
- Coverage 54.24% 54.22% -0.02%
Complexity 7266 7266
============================================
Files 1178 1178
Lines 41952 41958 +6
Branches 4923 4925 +2
============================================
- Hits 22758 22753 -5
- Misses 17040 17053 +13
+ Partials 2154 2152 -2 🚀 New features to boost your workflow:
|
slievrly
left a comment
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 looks like these configuration files need to be modified as well.
https://github.com/apache/incubator-seata/blob/2.x/server/src/main/resources/application.example.yml
https://github.com/apache/incubator-seata/blob/2.x/server/src/main/resources/application.raft.example.yml
xingfudeshi
left a comment
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
slievrly
left a comment
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
Optimisation Points:
If you need to collect seata-server logs to Kafka and logstash, you need to modify the logback-spring.xml configuration file (uncomment the corresponding appender), and you need to revise the specific configuration of Kafka-appender by revising kafka-appender.xml and application.yml.
It's a hassle.
Optimisation Scheme: Establish SpringProperty mapping
The configuration of open Kafka, logstash and metric's appender will be transferred to application.yml.
Transfer the specific configuration of Kafka to application.yml.
About dynamic updates to configuration changes
in logback-spring.xml,
configuration scan="true" scanPeriod="60 seconds" debug="false"The configuration is scaned every minute, so if you introduce a configuration center to change the yml configuration, it is visible to logback originally.
Ⅱ. Does this pull request fix one issue?
#4648
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews