Skip to content

Don't produce events when initial deployment fails - #3527

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
ironcladlou:quieter-config-trigger
Jul 1, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
ironcladlou:quieter-config-trigger

Conversation

@ironcladlou

Copy link
Copy Markdown
Contributor

Don't produce events when initial deployment generation fails. The
most common case is when ImageChange triggers are defined for tags
which don't yet exist. Producing events in practice results in
thousands of duplicate events per deployment in some cases, and the
information is better relayed to users via new API state associated
with the trigger itself or the deployment config.

Closes #3492.

Follow up with API additions in #3526.

Don't produce events when initial deployment generation fails. The
most common case is when ImageChange triggers are defined for tags
which don't yet exist. Producing events in practice results in
thousands of duplicate events per deployment in some cases, and the
information is better relayed to users via new API state associated
with the trigger itself or the deployment config.
@smarterclayton

Copy link
Copy Markdown
Contributor

LGTM [merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/2621/) (Image: devenv-fedora_1907)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin up to 67928a7

openshift-bot pushed a commit that referenced this pull request Jul 1, 2015
@openshift-bot
openshift-bot merged commit c8cd92e into openshift:master Jul 1, 2015
@ironcladlou
ironcladlou deleted the quieter-config-trigger branch July 1, 2015 16:26
@derekwaynecarr

Copy link
Copy Markdown
Member

What happens if you lack compute resources? I thought this was originally
done by me to track quota related failures. The events are compacted, no?

On Wednesday, July 1, 2015, OpenShift Bot [email protected] wrote:

Merged #3527 #3527.

—
Reply to this email directly or view it on GitHub
#3527 (comment).

@smarterclayton

Copy link
Copy Markdown
Contributor

Different error, log it differently? We weren't writing events, we were
glog.Erroring every second.

On Wed, Jul 1, 2015 at 7:25 PM, Derek Carr [email protected] wrote:

What happens if you lack compute resources? I thought this was originally
done by me to track quota related failures. The events are compacted, no?

On Wednesday, July 1, 2015, OpenShift Bot [email protected]
wrote:

Merged #3527 #3527.

—
Reply to this email directly or view it on GitHub
#3527 (comment).

—
Reply to this email directly or view it on GitHub
#3527 (comment).

Clayton Coleman | Lead Engineer, OpenShift

@ironcladlou

Copy link
Copy Markdown
Contributor Author

I think you're both confused?

This issue reverts the change made for #2743. And this is the removal of event writing, not log writing.

@smarterclayton

Copy link
Copy Markdown
Contributor

Event writing isn't a problem?

On Jul 2, 2015, at 9:10 AM, Dan Mace [email protected] wrote:

I think you're both confused?

This issue reverts the change made for #2743
#2743. And this is the removal
of event writing, not log writing.

—
Reply to this email directly or view it on GitHub
#3527 (comment).

@smarterclayton

Copy link
Copy Markdown
Contributor

3492 is not events. It's handle error.

@smarterclayton

Copy link
Copy Markdown
Contributor

I think we need to revert this.

@ironcladlou

Copy link
Copy Markdown
Contributor Author

Now I see the confusion. The entire time we've been talking about events. You're saying the event duplication is okay but the log spam is the problem?

@ironcladlou

Copy link
Copy Markdown
Contributor Author

Created #3549 to restore events and remove the source of the server logging.

@smarterclayton

Copy link
Copy Markdown
Contributor

HandleError sends an event to Sentry, which is where this was being
reported. It also logs it to glog. The stack trace in the original issue
shows the message being sent. That is not a "HandleError" kind of error -
it's "we shouldn't even need to print this". That said, we should also not
be sending excessive events for deployment, so we should be checking that
the count is manageable (couple thousand a day is probably ok, but a lot)

On Thu, Jul 2, 2015 at 10:59 AM, Dan Mace [email protected] wrote:

Created #3549 #3549 to restore
events and remove the source of the server logging.

—
Reply to this email directly or view it on GitHub
#3527 (comment).

Clayton Coleman | Lead Engineer, OpenShift

@ironcladlou

Copy link
Copy Markdown
Contributor Author

HandleError sends an event to Sentry, which is where this was being reported. It also logs it to glog. The stack trace in the original issue shows the message being sent. That is not a "HandleError" kind of error - it's "we shouldn't even need to print this". That said, we should also not be sending excessive events for deployment, so we should be checking that the count is manageable (couple thousand a day is probably ok, but a lot)

Thanks for the clarification. I agree that the events are still excessive, but necessary as the only way to communicate to the user at the moment. For that reason, I say #3526 is still valid as a followup to replace the events with something more sensible.

@smarterclayton

Copy link
Copy Markdown
Contributor

Let's set a general rule. If your component sends more than 1 event per
sync loop continuously without termination that is too many. If your
component deals with N items continually (all deployment configs) vs a
smaller M (running deployments), then 1 event per sync loop is potentially
too many.

On Thu, Jul 2, 2015 at 1:21 PM, Dan Mace [email protected] wrote:

HandleError sends an event to Sentry, which is where this was being
reported. It also logs it to glog. The stack trace in the original issue
shows the message being sent. That is not a "HandleError" kind of error -
it's "we shouldn't even need to print this". That said, we should also not
be sending excessive events for deployment, so we should be checking that
the count is manageable (couple thousand a day is probably ok, but a lot)

Thanks for the clarification. I agree that the events are still excessive,
but necessary as the only way to communicate to the user at the moment. For
that reason, I say #3526 #3526
is still valid as a followup to replace the events with something more
sensible.

—
Reply to this email directly or view it on GitHub
#3527 (comment).

Clayton Coleman | Lead Engineer, OpenShift

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.

4 participants