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
Agent service discorvery #5120
Agent service discorvery #5120
Conversation
I will add unit tests later, thanks for review first |
Codecov Report
@@ Coverage Diff @@
## master #5120 +/- ##
============================================
- Coverage 53.08% 52.94% -0.14%
+ Complexity 3166 3163 -3
============================================
Files 820 822 +2
Lines 20508 20531 +23
Branches 1972 1976 +4
============================================
- Hits 10887 10871 -16
- Misses 8739 8776 +37
- Partials 882 884 +2 Continue to review full report at Codecov.
|
fixing unit test,please wait for a moment |
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.
I think I mentioned before, neither service discovery tech should not be bounded in the agemt core level. If you want to contribute this feature, you need to put it as an optional plugin only. Take a look on Kafka transport plugin and zipkin branch.
Don't change the backend serive url config, it will break many deployed system. Please don't do that. |
|
so i cannot extension with service mode , i would be add a new extension interface ? |
The concern is, the default config changed. And new backend service path added. This would be very confused. How to write plugin doc would be an issue. |
…/skywalking into agent-service-discorvery
By thinking the PR and Kafka transport PR, I prefer you work on a new PR. What do you think? @dmsolr @kezhenxu94 @arugal @EvanLjp Let's make that decision first, then back to this feature. |
i open a new issue first |
Once we have this feature, this plugin will be more elegant, because there will be no code changed in the agent core, purely plugin. Same as the Kafka transport plugin. |
I wonder if the plug-in configuration needs to be refactored,for example mysql |
At the code level, yes. But you still could keep the config name unchanged. You just create more Config classes in different plugins. |
no porblem , i would like be to open a new issue first |
I think you could improve this PR now. I have set up the new Config initialization core. |
ok |
# Conflicts: # apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/Config.java # apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/conf/SnifferConfigInitializer.java # apm-sniffer/apm-agent-core/src/main/resources/META-INF/services/org.apache.skywalking.apm.agent.core.boot.BootService # apm-sniffer/apm-agent-core/src/test/java/org/apache/skywalking/apm/agent/core/boot/ServiceManagerTest.java
Do we still plan to do this? I think we discussed, cliemt load balance is not a very good way. It is hard to be balaned. |
i read the oap code and agent code. oap transform data from one oap server to another oap server is get client form a grpc client pool. so oap server can load balance. |
i don't think keep alive one by one is a good way.Don't you think this is not a skywalking's current problem?Why don't we try to optimize? |
Rechecking, whether this feature should be or is planned to continue? It has been no update for a month. |
may be close is a good choose, thx |
Please answer these questions before submitting pull request
Why submit this pull request?
New feature provided
Related issues
build connection between agent client and oap server with service discover #5063
New feature or improvement