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

enable unstructured cache #19

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cezar-guimaraes
Copy link
Contributor

@cezar-guimaraes cezar-guimaraes commented Sep 18, 2024

image

By enabling the informer cache for unstructured objects, reconciling around 2000 cTTLs object took 2~3 minutes instead of 10~11 minutes.

The memory limit needed to be increased a bit to avoid getting OOM. During startup it hit a peak of 230MB before GC kicked in and stabilized usage at around 157MB
image

The informer cache, however, does not recognize lower case name for kinds, so we need to update our cTTLs to use the correctly cased name: revision -> Revision, service -> Service.

This draft implementation contains a hack to convert the 1st letter to upper case. It's unclear if updating some dependencies might fix this issue.

Usage of cache should also be locked behind a CLI bool flag.

@cezar-guimaraes cezar-guimaraes force-pushed the feat/enable-unstructured-cache branch from 8d2dd05 to af1aeaa Compare September 18, 2024 16:42
@cezar-guimaraes cezar-guimaraes force-pushed the feat/enable-unstructured-cache branch from af1aeaa to bcf0fe5 Compare September 18, 2024 16:54
Copy link

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.

1 participant