You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deployment status (and build status, to a smaller degree) dominates in memory usage #5504
The status message calculation is probably too aggressive - we look to be trying to update too much status, and not doing it efficiently (calculating a message and then throwing it away for a large percentage of the time).
It's also doing a lot of expensive lookups (like getting all buildconfigs across all namespaces for every image trigger in the config), and all this happens every time we handle a config.
I wonder if this should be using cache.Store for the things it needs to analyze and deferring string building until it knows there's something to render.
Also, if you update yourself, you're going to trigger an update... which
will result in yourself getting notified.
So first step - for both deployment (identified here) and build (@bparees)
let's do a quick triage to verify that we only update status when we have
to, not optimistically. If the controller decides not to take action, we
should record it. IF the controller hits an error, we should record it.
We shouldn't write status just because something changed.
I wonder if this should be using cache.Store for the things it needs to
analyze and deferring string building until it knows there's something to
render.
—
Reply to this email directly or view it on GitHub #5504 (comment).
So first step - for both deployment (identified here) and build (@bparees) let's do a quick triage to verify that we only update status when we have to, not optimistically. If the controller decides not to take action, we should record it. IF the controller hits an error, we should record it. We shouldn't write status just because something changed.
Just riffing at the moment:
So, the status being reported here is based on externalities/associated resources. I think framing the update around the config updates might not be ideal. One option for a quick improvement in the short term would be to do the status updates in another controller that just periodically reconciles the config status with other resources.
I'm pretty sure (after surveying the code) builds only attempt to update the build.status.message if an error occurs during the handling process or we are explicitly changing the state (eg from running to complete)...
So first step - for both deployment (identified here) and build (@bparees https://github.com/bparees) let's do a quick triage to verify that we
only update status when we have to, not optimistically. If the controller
decides not to take action, we should record it. IF the controller hits an
error, we should record it. We shouldn't write status just because
something changed.
Just riffing at the moment:
So, the status being reported here is based on externalities/associated
resources. I think framing the update around the config updates might not
be ideal. One option for a quick improvement in the short term would be to
do the status updates in another controller that just periodically
reconciles the config status with other resources.
—
Reply to this email directly or view it on GitHub #5504 (comment).
Activity
smarterclayton commentedon Oct 29, 2015
Showing up in the BU cluster, but could potentially be broader
ironcladlou commentedon Oct 29, 2015
Ouch, yeah.
ironcladlou commentedon Oct 29, 2015
It's also doing a lot of expensive lookups (like getting all buildconfigs across all namespaces for every image trigger in the config), and all this happens every time we handle a config.
ironcladlou commentedon Oct 29, 2015
I wonder if this should be using
cache.Storefor the things it needs to analyze and deferring string building until it knows there's something to render.smarterclayton commentedon Oct 29, 2015
Also, if you update yourself, you're going to trigger an update... which
will result in yourself getting notified.
So first step - for both deployment (identified here) and build (@bparees)
let's do a quick triage to verify that we only update status when we have
to, not optimistically. If the controller decides not to take action, we
should record it. IF the controller hits an error, we should record it.
We shouldn't write status just because something changed.
On Thu, Oct 29, 2015 at 4:53 PM, Dan Mace [email protected] wrote:
ironcladlou commentedon Oct 29, 2015
Double ouch
smarterclayton commentedon Oct 29, 2015
Double ouch
On Thu, Oct 29, 2015 at 5:04 PM, Dan Mace [email protected] wrote:
ironcladlou commentedon Oct 29, 2015
Just riffing at the moment:
So, the status being reported here is based on externalities/associated resources. I think framing the update around the config updates might not be ideal. One option for a quick improvement in the short term would be to do the status updates in another controller that just periodically reconciles the config status with other resources.
bparees commentedon Oct 29, 2015
I'm pretty sure (after surveying the code) builds only attempt to update the build.status.message if an error occurs during the handling process or we are explicitly changing the state (eg from running to complete)...
smarterclayton commentedon Oct 29, 2015
Are we setting a Reason? Or just message?
On Oct 29, 2015, at 5:09 PM, Dan Mace [email protected] wrote:
So first step - for both deployment (identified here) and build (@bparees
https://github.com/bparees) let's do a quick triage to verify that we
only update status when we have to, not optimistically. If the controller
decides not to take action, we should record it. IF the controller hits an
error, we should record it. We shouldn't write status just because
something changed.
Just riffing at the moment:
So, the status being reported here is based on externalities/associated
resources. I think framing the update around the config updates might not
be ideal. One option for a quick improvement in the short term would be to
do the status updates in another controller that just periodically
reconciles the config status with other resources.
—
Reply to this email directly or view it on GitHub
#5504 (comment).
ironcladlou commentedon Oct 30, 2015
Just a message.
smarterclayton commentedon Jan 13, 2016
What's the status of this?
ironcladlou commentedon Jan 13, 2016
#5530 needs resurrected if the approach is still valid (hasn't been reviewed in a long time).
0xmichalis commentedon May 21, 2016
This is not an issue anymore since #4941 was reverted.