datasophon icon indicating copy to clipboard operation
datasophon copied to clipboard

[Bugfix] 修复代理grafana 时不会生成配置文件的问题

Open 88fantasy opened this issue 1 year ago • 1 comments

Purpose of the pull request

#371

Brief change log

no change

Verify this pull request

This pull request is code cleanup without any test coverage.

88fantasy avatar Aug 13 '24 08:08 88fantasy

兄弟,你提交的这个应该解决不了不生成配置文件的问题,我试了下不行。

  1. api启动的时候会从meta加载元数据信息到frame_service表,此时会维护了generator和config_map的关系,在grafana这个服务中,config_map是空的,因为没有parameter对的上。
  2. 配置集群-服务配置的时候会写入cluster_role_group_config表,此时会把generator和config_map的关系带过来到config_file_json字段上
  3. MasterServiceActor在下发安装服务命令的时候,会读cluster_role_group_config表
  4. ConfigServiceActor会通过genertor和config_map的对应关系来决定是否加载配置

人家源代码这点没毛病的,是可以生成custom.ini配置文件的。你把ConfigureServiceHandler那几行代码删了,反而导致configs集合为空,不生成配置文件。 1737613575516

FishingDanDan avatar Jan 23 '25 06:01 FishingDanDan