Skip to content
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

Remove jinja2_cache #11996

Merged
merged 4 commits into from
Sep 20, 2022
Merged

Conversation

dprital
Copy link
Collaborator

@dprital dprital commented Sep 7, 2022

Why I did it

As part of Persistent log level HLD , LOGLEVEL_DB content is moved to CONFIG_DB.
In addition, it was decided to remove jinja2_cache which currently appear on LOGLEVEL_DB

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

Link to config_db schema for YANG module changes

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

@lgtm-com
Copy link

lgtm-com bot commented Sep 7, 2022

This pull request introduces 1 alert when merging bcceffc into 38cc35f - view on LGTM.com

new alerts:

  • 1 for Unused import

@dprital
Copy link
Collaborator Author

dprital commented Sep 8, 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.

@yxieca
Copy link
Contributor

yxieca commented Sep 21, 2022

@dprital this change cannot be cherry-picked cleanly to 202205. Please raise separate PR.

@dprital
Copy link
Collaborator Author

dprital commented Sep 22, 2022

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

Done --> #12155

Thanks,
Dror.

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.

6 participants