Skip to content

Commit

Permalink
[init_cfg.json] Add new FEATURE and CONTAINER_FEATURE tables (#4137)
Browse files Browse the repository at this point in the history
* [init_cfg.json] Add a new table CONTAINER_FEATURE.

Signed-off-by: Yong Zhao <yozhao@microsoft.com>

* [init_cfg.json] Update the content of table CONTAINER_FEATURE.

Signed-off-by: Yong Zhao <yozhao@microsoft.com>

* [init_cfg.json] Use the template to generate the table
CONTAINER_FEATURE.

Signed-off-by: Yong Zhao <yozhao@microsoft.com>

* [init_cfg.json] Add a new table FEATURE.

Signed-off-by: Yong Zhao <yozhao@microsoft.com>

* [init_cfg.json] Change the order of container names according to
alphabetical order.

Signed-off-by: Yong Zhao <yozhao@microsoft.com>

* [init_cfg.json] Change the dhcp_relay container name and add rest-api.

Signed-off-by: Yong Zhao <yozhao@microsoft.com>
  • Loading branch information
yozhao101 authored Feb 11, 2020
1 parent fb59e9d commit 41958aa
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions files/build_templates/init_cfg.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,21 @@
"{{crm_res}}_high_threshold": "85"{% if not loop.last %},{% endif -%}
{% endfor %}
}
},
"FEATURE": {
{%- for feature in ["sflow", "telemetry"] %}

This comment has been minimized.

Copy link
@banagiri

banagiri Jul 22, 2020

Contributor

@yonzhan

what is the reason behind disabling the sflow and telemetry ?
The critical process monitor "monit" script is checking for the run state of these services, and filling the syslog with error logs.

This comment has been minimized.

Copy link
@yonzhan

yonzhan Jul 22, 2020

You @ the uncorrect person, you should @ yozhao

This comment has been minimized.

Copy link
@banagiri

banagiri Jul 22, 2020

Contributor

Thanks for correcting me

This comment has been minimized.

Copy link
@banagiri

banagiri Jul 22, 2020

Contributor

@yozhao
what is the reason behind disabling the sflow and telemetry ?
The critical process monitor "monit" script is checking for the run state of these services, and filling the syslog with error logs.

"{{feature}}": {
"status": "disabled"
}{% if not loop.last %},{% endif -%}
{% endfor %}
},
"CONTAINER_FEATURE": {
{%- for container in ["bgp", "database", "dhcp_relay", "lldp", "pmon", "radv", "rest-api", "sflow",
"snmp", "swss", "syncd", "teamd", "telemetry"] %}
"{{container}}": {
"auto_restart": "disabled",
"high_mem_alert": "disabled"
}{% if not loop.last %},{% endif -%}
{% endfor %}
}
}

0 comments on commit 41958aa

Please sign in to comment.