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
Clouddriver with Mysql unable to invalidate stale cache #5958
Comments
Assigning to the Kubernetes SIG as it seems like it might be more related to how the cloud provider itself is caching. |
@ajordens - Thanks. Yeah makes sense. Waiting for guys to debug on this along with them. Looks like a blocker for us right now to move clouddriver to mysql. |
We have both ec2 and kubernetes accounts configured. Looking through our
Looking at the original issue #4803 and corresponding PR spinnaker/clouddriver#4232 that added the cleanup agent I see there is a flag which was commented in the PR:
Do we need to enable this for Kubernetes? is it an 'unknown-agent' ?? |
@ezimanyi : Hi Eric. Any updates on this? Would love to hear your stance on same. |
Per RZ's guidance in Slack we enabled As always with Databases, suggest taking a snapshot first. Here's a validating query (I think).
I'll work on a PR to the Clouddriver SQL docs but ideally as suggested this could be enabled automatically if using SQL and Kubernetes. |
@robzienert : Any thoughts on whether it would be safe to set I think it should be enabled by default for |
@ezimanyi and @kskewes - I believe apart from older accounts cleanup, the main reason for opening up issue was if the cluster state changes, then the infrastructure tab doesn't change real time along with cluster giving a stale view of cluster. Let me cross verify the configuration which @kskewes suggested and will update the issue. |
@piyushGoyal2 : If you're seeing the cluster tab fail to update to account for changes, the root cause is likely that your caching cycles are not completing quickly enough. There is ongoing performance improvement work to make this less likely, and a discussion of workarounds on the closed issue #5611. |
This issue hasn't been updated in 45 days, so we are tagging it as 'stale'. If you want to remove this label, comment:
|
This issue is tagged as 'stale' and hasn't been updated in 45 days, so we are tagging it as 'to-be-closed'. It will be closed in 45 days unless updates are made. If you want to remove this label, comment:
|
This issue is tagged as 'stale' and hasn't been updated in 45 days, so we are tagging it as 'to-be-closed'. It will be closed in 45 days unless updates are made. If you want to remove this label, comment:
|
This issue is tagged as 'to-be-closed' and hasn't been updated in 45 days, so we are closing it. You can always reopen this issue if needed. |
Issue Summary:
Clouddriver Mysql unable to invalidate stale cache.
Cloud Provider(s):
AWS, EKS, Kubernetes
Environment:
1.19.x - EKS -Clouddriver - Aurora Mysql 5.7.12
Feature Area:
Kubernetes CloudDriver, CloudDriver MySQL
Description:
My clouddriver is backed by Aurora Mysql - 5.7.12. Somehow Mysql is not able to actually invalidate stale cache. On infrastructure page, under cluster tab, even if the kuberntes resource(deployment, replicaset or pod) gets deleted either through the cluster tab or kubectl or a delete manifest stage, it still gets listed on the cluster tab ever and ever. Checking Mysql tables, the cats_pod table still contains the older pods entries with a ttlseconds=-1.
Steps to Reproduce:
Deploy a spinnaker managed kubernetes resource.
Delete it from cluster tab on infrastructure page.
The resource still exists.
Additional Details:
The text was updated successfully, but these errors were encountered: