We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
由于目前的主机身份协议存在诸多问题,需要对该协议进行优化调整。 调整的主机内容为,删除了部分主机字段,层级信息中删除了拓扑实例名称等信息,同时进程中删除了bind_modules字段信息。
调整前的协议示例为:
{ "associations": { "58": { "bk_biz_id": 5, "bk_biz_name": "测试", "bk_module_id": 58, "bk_module_name": "Cloud_Linux", "bk_service_status": "1", "bk_set_env": "3", "bk_set_id": 5003702, "bk_set_name": "NEK_专属固定使用", "layer": null }, "57": { "bk_biz_id": 5, "bk_biz_name": "测试", "bk_module_id": 57, "bk_module_name": "集群-agent", "bk_service_status": "", "bk_set_env": "", "bk_set_id": 93619, "bk_set_name": "公有云集群", "layer": null } }, "bk_cloud_id": 158, "bk_cloud_name": "固定测试", "bk_cpu": 1, "bk_disk": 49, "bk_host_id": 117, "bk_host_innerip": "192.168.1.1", "bk_host_name": "centos", "bk_host_outerip": "", "bk_mem": 1868, "bk_os_name": "", "bk_os_type": "1", "bk_supplier_account": "", "process": [ { "bind_info": [ { "enable": true, "ip": "127.0.0.1", "port": "", "protocol": null, "template_row_id": 1, "vip": null, "vport": null, "vprotocol": null } ], "bind_ip": "127.0.0.1", "bind_modules": [ 619957 ], "bk_enable_port": true, "bk_func_name": "ONE_more", "bk_process_id": 8012275, "bk_process_name": "set", "bk_start_param_regex": "", "port": "", "protocol": "" } ] }
调整后的协议示例如下:
{ "bk_host_id": 2, "bk_cloud_id": 0, "bk_host_innerip": "192.168.1.1", "bk_os_type": "2", "bk_supplier_account": "0", "associations": { "51": { "bk_biz_id": 3, "bk_set_id": 19, "bk_module_id": 51, "layer": { "bk_inst_id": 29, "bk_inst_name": "国家", "bk_obj_id": "nation", "child": { "bk_inst_id": 26, "bk_inst_name": "prv1", "bk_obj_id": "province", "child": null } } } }, "process": [ { "bk_process_id": 14, "bk_process_name": "ssd", "bind_ip": "", "port": "", "protocol": "", "bk_func_name": "ssd", "bk_start_param_regex": "", "bk_enable_port": false, "bind_info": [] }, { "bk_process_id": 15, "bk_process_name": "asdd", "bind_ip": "", "port": "", "protocol": "", "bk_func_name": "asdd", "bk_start_param_regex": "", "bk_enable_port": false, "bind_info": [] } ] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
由于目前的主机身份协议存在诸多问题,需要对该协议进行优化调整。
调整的主机内容为,删除了部分主机字段,层级信息中删除了拓扑实例名称等信息,同时进程中删除了bind_modules字段信息。
调整前的协议示例为:
调整后的协议示例如下:
The text was updated successfully, but these errors were encountered: