-
Notifications
You must be signed in to change notification settings - Fork 397
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
support configServer V2 #1592
support configServer V2 #1592
Conversation
请问配置同步功能是否可以支持在ilogtail agent启动的时候指定一些环境变量的key,然后将key与环境变量的值作为一组label上传到config server,config server可以通过这些key对group进行管控? |
有个FillAttributes,可以重载该函数来自定义实现这部分 |
filesystem::create_directories(mSourceDir, ec); | ||
ConfigWatcher::GetInstance()->AddSource(mSourceDir, &mMux); | ||
filesystem::create_directories(mPipelineSourceDir, ec); | ||
ConfigWatcher::GetInstance()->AddPipelineSource(mPipelineSourceDir, &mMux); |
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.
看看这个锁能不能删掉,感觉作用不大
unordered_map<string, Config*>& configMap = ConfigManager::GetInstance()->mNameConfigMap; | ||
unordered_map<string, Config*>::iterator it = configMap.find("commonreg.com"); | ||
unordered_map<string, PipelineConfig*>& configMap = ConfigManager::GetInstance()->mNameConfigMap; | ||
unordered_map<string, PipelineConfig*>::iterator it = configMap.find("commonreg.com"); |
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.
LOG_WARNING(sLogger, | ||
("failed to create dir for local config", | ||
"manual creation may be required")("error code", ec.value())("error msg", ec.message())); | ||
{ |
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.
这部分代码下一步抽离到LocalProvider的Init里。
No description provided.