Skip to content

[202211][config reload] Config Reload Enhancement#64

Merged
StormLiangMS merged 2 commits intosonic-net:202211from
dgsudharsan:cfg_rel_2211
Jun 10, 2023
Merged

[202211][config reload] Config Reload Enhancement#64
StormLiangMS merged 2 commits intosonic-net:202211from
dgsudharsan:cfg_rel_2211

Conversation

@dgsudharsan
Copy link
Copy Markdown
Contributor

Backporting #45
Code changes for config reload Enhancement sonic-net/SONiC#1203.
Enhancing config reload to sequence the services and faster system initialization.

Immediately restart the critical services during config reload.
The non critical should be started only after all the ports are initialized.
Services can be configured to be started immediately or delayed. This can be using a field in FEATURE table.
The existing timers should be removed by this event driven approach.
This flow is applicable in case of all reboots (warm/fast/cold) as well as config reload.

dgsudharsan and others added 2 commits May 26, 2023 19:36
Code changes for config reload Enhancement sonic-net/SONiC#1203.
Enhancing config reload to sequence the services and faster system initialization.

Immediately restart the critical services during config reload.
The non critical should be started only after all the ports are initialized.
Services can be configured to be started immediately or delayed. This can be using a field in FEATURE table.
The existing timers should be removed by this event driven approach.
This flow is applicable in case of all reboots (warm/fast/cold) as well as config reload.
@dgsudharsan dgsudharsan requested a review from qiluo-msft June 5, 2023 19:05
@StormLiangMS StormLiangMS merged commit cdc621b into sonic-net:202211 Jun 10, 2023
feature_cfg (dict): Feature CONFIG_DB configuration
deviec_config (dict): DEVICE_METADATA section of CONFIG_DB
"""
if 'has_timer' in feature_cfg:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @dgsudharsan , wonder why you don't want 'has_timer' in config_db.json, FEATURE section?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wenyiz2021 Please refer to this comment #45 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants