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

Remove unnecessary JOIN #5184

Merged
merged 3 commits into from
Oct 22, 2020

Conversation

ocket8888
Copy link
Contributor

What does this PR (Pull Request) do?

Which Traffic Control components are affected by this PR?

  • Traffic Ops

What is the best way to verify this PR?

Make a GET request to /cdn/{{Some CDN}}/configs/monitoring where Some CDN is the name of some CDN containing at least one Delivery Service. Notice the array of Delivery Services is not empty.

If this is a bug fix, what versions of Traffic Control are affected?

  • master
  • 4.1
  • 4.0
  • 5.0 (RC0)

The following criteria are ALL met by this PR

  • This PR includes tests
  • No documentation changes for bug fix
  • This PR includes an update to CHANGELOG.md
  • This PR includes any and all required license headers
  • This PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

@ocket8888 ocket8888 added bug something isn't working as intended Traffic Ops related to Traffic Ops low impact affects only a small portion of a CDN, and cannot itself break one labels Oct 21, 2020
@ocket8888 ocket8888 added this to the 5.0.0 milestone Oct 21, 2020
@mitchell852
Copy link
Member

2 birds w/ one stone. i like it!

@mitchell852
Copy link
Member

seems like more than a minor

@ocket8888
Copy link
Contributor Author

idk, things seem to have been working fine without this fix for the past year and a half, so I think it's minor. But I don't care what you do to the labels, make it whatever you want

@mitchell852
Copy link
Member

idk, things seem to have been working fine without this fix for the past year and a half, so I think it's minor. But I don't care what you do to the labels, make it whatever you want

well ds thresholds have been broken, right? seems more than minor for anyone wanting to use ds thresholds :)

@mitchell852 mitchell852 added medium impact impacts a significant portion of a CDN, or has the potential to do so and removed low impact affects only a small portion of a CDN, and cannot itself break one labels Oct 21, 2020
Copy link
Member

@zrhoffman zrhoffman left a comment

Choose a reason for hiding this comment

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

  • Confirmed that the correct values for TotalTpsThreshold and TotalKbpsThreshold show up in
    • TM's /api/monitor-config
    • API versions 1.1, 2.0, and 3.0 of /cdns/{name}/configs/monitoring

We don't lose any specificity by removing the JOIN, since a Delivery Service (optionally unless using MSO) has only 1 profile.

@zrhoffman zrhoffman merged commit 330ac87 into apache:master Oct 22, 2020
@ocket8888 ocket8888 deleted the to/fix-monitoring-missing-dses branch October 22, 2020 01:14
ocket8888 added a commit that referenced this pull request Oct 22, 2020
* Remove unnecessary JOIN

* Fix tests, also some context leaks

* Add to CHANGELOG

(cherry picked from commit 330ac87)
rawlinp pushed a commit to rawlinp/trafficcontrol that referenced this pull request Oct 27, 2020
* Remove unnecessary JOIN

* Fix tests, also some context leaks

* Add to CHANGELOG

(cherry picked from commit 330ac87)
rawlinp added a commit that referenced this pull request Oct 27, 2020
* Remove unnecessary JOIN

* Fix tests, also some context leaks

* Add to CHANGELOG

(cherry picked from commit 330ac87)

Co-authored-by: ocket8888 <ocket8888@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended medium impact impacts a significant portion of a CDN, or has the potential to do so Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global Max Mbps and Tps is not send to TM Fix Traffic Ops monitoring.json missing DeliveryServices
4 participants