xuanyu66 edited a comment on issue #6114:
URL: https://github.com/apache/skywalking/issues/6114#issuecomment-760011860
> > config server(nacos,zk) <--update Event--> OAP --command--> agent
> > did I get that right?
>
> Yes, but we need more details about how to make this happens. Such as
>
> 1. The gRPC service between agent and OAP
> 2. How to define the configuration of every servic in the configuration
center. Such as, do you provide one key with a YAML as value for all services?
> 3. How the agent core and plugin declare the config is changeable, and
listening to the change event from the command.
1. define a gRPC service
```
import "common/Common.proto";
service AgentDynamicConfigTask {
// query all sniffer need to execute dynamic config task commands
rpc getDynamicConfigCommands (DynamicConfigTaskCommandQuery) returns
(Commands) {
}
message DynamicConfigTaskCommandQuery {
// last command timestamp
int64 lastCommandTime = 1;
}
```
2. implement ConfigChangeWatcher called AgentConfigWatcher, if notified,
save task to AgentDynamicConfigTaskCache
3. On agent side implement DynamicConfigTaskChannelService, schedule a
thread to poll grpc service. same as
_org.apache.skywalking.apm.agent.core.profile.ProfileTaskChannelService_
4. I don‘t know whether yaml is proper way to save agent config. Do we need
to validate yaml?
---
hope some suggestions.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]