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

Toggle bug in ProductCatalogService for demos #85

Merged
merged 2 commits into from
Dec 17, 2018
Merged

Toggle bug in ProductCatalogService for demos #85

merged 2 commits into from
Dec 17, 2018

Conversation

MrTrustor
Copy link
Member

@MrTrustor MrTrustor commented Oct 23, 2018

Fixes #84

@ahmetb let me know what you think. I've used 150 microseconds because 200 slows the website down too much.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 23, 2018
Copy link
Contributor

@ahmetb ahmetb left a comment

Choose a reason for hiding this comment

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

Thanks a lot, mostly LGTM.

I still wonder if we should do your original proposal which is USR1=turn on, USR2=turn off. If signaling turns out to be unreliable (kubectl exec is not reliable), then you can't reliably introduce the problem.

But I'll let you decide.

@MrTrustor
Copy link
Member Author

I switched back to using USR2 to remove the bug. I don't have a strong opinion on this, but if you think that kubectl exec is not reliable (personally never had an issue with it), it's probably better like this.

@ahmetb
Copy link
Contributor

ahmetb commented Nov 28, 2018

We decided not to instrument Go services with debugger just yet because of the issues you pointed out. If the code above is good to you, I'll take this in.

@MrTrustor
Copy link
Member Author

MrTrustor commented Nov 28, 2018 via email

This delay is implemented as a broken feature.
It can be triggered and removed via USR1/USR2.
@MrTrustor
Copy link
Member Author

@ahmetb I finally took the time to come back to this. I changed my thinking on it.
The delay is now implemented as a broken "reload catalog" feature that actually reads and parse the full catalog on each request.
It introduces a noticeable delay in the frontend and does show up in Stackdriver Profiler.

It still is triggered and removed with USR1/USR2.

Let me know what you think.

@ahmetb
Copy link
Contributor

ahmetb commented Dec 14, 2018

If that gets you what you want, sounds good to me. Left a code comment.

@ahmetb
Copy link
Contributor

ahmetb commented Dec 17, 2018

Looks good. Thanks.

@ahmetb ahmetb merged commit c91dca7 into GoogleCloudPlatform:master Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants