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

AV-205821 add external httppolicyset in cache #1435

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Conversation

arihantg
Copy link
Contributor

At bootup AKO was making calls to populate httppolicy set in cache for each VS if it was finding missing match in cache for any external policyset. With this fix we will fetch the missing policyset by uuid and add it to cache.

@arihantg
Copy link
Contributor Author

build ako

1 similar comment
@arihantg
Copy link
Contributor Author

build ako

@@ -2006,8 +2062,11 @@ func (c *AviObjCache) AviObjVSCachePopulate(client *clients.AviClient, cloud str
c.PopulateHttpPolicySetToCache(client, cloud)
Copy link
Contributor

Choose a reason for hiding this comment

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

@arihantg: If we look at PopulateHttpPolicySetToCache function, it fetches all httpps which is created by AKO user and populate the cache. And then we retrieve out httpps by uuid at line number 2063. I think fetching all httpps each time is not required here (at line number 2062) as we are going through httpps attached to each VS.

Instead of this call, we can call your function AviPopulateHttpPolicySetbyUUID here. So that it will fetch it from uuid.

All HTTPPS cache update is already happened as part of AviRefreshObjectCache

Copy link
Contributor Author

@arihantg arihantg May 27, 2024

Choose a reason for hiding this comment

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

I have replaced the 2nd call to PopulateHttpPolicySetToCache with AviPopulateHttpPolicySetbyUUID.

Copy link
Contributor

@pkoshtavmware pkoshtavmware left a comment

Choose a reason for hiding this comment

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

LGTM

@arihantg
Copy link
Contributor Author

build ako

3 similar comments
@arihantg
Copy link
Contributor Author

arihantg commented Jun 5, 2024

build ako

@arihantg
Copy link
Contributor Author

arihantg commented Jun 7, 2024

build ako

@arihantg
Copy link
Contributor Author

arihantg commented Jun 9, 2024

build ako

@arihantg
Copy link
Contributor Author

build ako

@arihantg
Copy link
Contributor Author

build ako

@arihantg arihantg merged commit 62bd692 into vmware:master Jun 10, 2024
3 checks passed
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.

4 participants