Skip to content

[202205] Remove jinja2_cache#12155

Merged
yxieca merged 1 commit intosonic-net:202205from
dprital:remove_jinja2_cache_202205
Sep 23, 2022
Merged

[202205] Remove jinja2_cache#12155
yxieca merged 1 commit intosonic-net:202205from
dprital:remove_jinja2_cache_202205

Conversation

@dprital
Copy link
Collaborator

@dprital dprital commented Sep 22, 2022

Why I did it

To fix issue : #12140

This cache was added to speed up template rendering in start scripts. There were a lot of them rendered during system start. This caused a delay in warm boot LAG restore time. It was tested and verified that with and without the cache we don't see any difference in this timing now. It is probably due to a lot of other optimizations done to sonic-cfggen. Since there is no noticeable improvement made by j2 cache now it is safe to remove it.

How I did it

Remove redis_bcc.py file and and remove the bytcode_cache from sonic-sfggen

How to verify it

Warm boot was tested with \ without this jinja2_cache and it there is no difference in performance

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@dprital
Copy link
Collaborator Author

dprital commented Sep 22, 2022

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@dprital
Copy link
Collaborator Author

dprital commented Sep 22, 2022

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca yxieca merged commit 9191779 into sonic-net:202205 Sep 23, 2022
@dprital dprital deleted the remove_jinja2_cache_202205 branch October 20, 2022 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants