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

Fix DS "ACTIVE" flag to work as expected #3746

Closed
rgresino opened this issue Jul 23, 2019 · 6 comments · Fixed by #7099
Closed

Fix DS "ACTIVE" flag to work as expected #3746

rgresino opened this issue Jul 23, 2019 · 6 comments · Fixed by #7099
Labels
cache-config Cache config generation medium impact impacts a significant portion of a CDN, or has the potential to do so tech debt rework due to choosing easy/limited solution Traffic Ops related to Traffic Ops
Milestone

Comments

@rgresino
Copy link

image
It appears that this is not what this does. This does not remove traffic from a DS or inactivate it. It removes the DS from the Traffic Router so it is not routed to. Any established connections like linear streams will continue to use this delivery service since they rarely, if ever, go back to the traffic router.We need something that sets a flag so that the DS is held in TODB, but is not copied into records.config on the caches, so that the DS is removed from the caches, but could be re-enabled quickly, but not deleted from TODB (and the associated Keys and Certs deleted from Traffic Vault.)

@mitchell852 mitchell852 added Traffic Ops related to Traffic Ops cache-config Cache config generation bug something isn't working as intended high impact impacts the basic function, deployment, or operation of a CDN labels Jul 23, 2019
@rob05c
Copy link
Member

rob05c commented Jul 23, 2019

Big +1. This is a terrible foot-gun. It's incredibly unintuitive, and further, if the wrong DS were left inadvertently serving at the edge, it could easily be a security issue.

I suggest we add an additional DS flag, "active-caches," and rename this in the UI to reflect that it is "active-routed." Of course, with documentation and UI tooltips indicating exactly what each does.

The "active-caches" flag to remove a DS from cache configs should be a tiny amount of work, it's basically a single if-statement in remap.config generation, unless I'm mistaken.

I'm also +1 on labelling this 'bug' and 'major'. It may have been by-design, but it's a dangerous and deceptive design, and effectively a user interface bug.

@mitchell852
Copy link
Member

@rob05c - active-routed AND active-caches? would you ever want active-routed=false, active-caches=true or vice versa? I thought the fix here was simply if DS.active=false exclude from crconfig (snapshot) and any/all applicable cache config files (maybe an oversimplification).

@rgresino
Copy link
Author

Have to snap before you can remove from ATS. So it is a two step process.

@rob05c
Copy link
Member

rob05c commented Jul 23, 2019

would you ever want active-routed=false, active-caches=true or vice versa?

Yes. You might want to stage the removal, to remove a DS from routing, and then make sure the Origin own was right and there actually aren't clients still going to caches, and then remove from the cache maybe a week later.

Likewise, you may want to stage a new deployment to caches, and test that your requests to the cache work as expected, before deploying globally to the Router.

Being able to "stage" the router-cache deployment changes is a big safety win for operations.

@ocket8888
Copy link
Contributor

As of today, inactive DSes are already omitted from remap.config generation, I think parent.config is the only place they will have data inserted. I think.

@rawlinp rawlinp mentioned this issue Apr 21, 2020
7 tasks
@mitchell852 mitchell852 added tech debt rework due to choosing easy/limited solution and removed bug something isn't working as intended labels Oct 5, 2020
@mitchell852
Copy link
Member

mitchell852 commented Oct 5, 2020

removed bug label and applied tech debt label as this is more a product of bad design imo. don't worry, it's being addressed regardless by @ocket8888

@mitchell852 mitchell852 added medium impact impacts a significant portion of a CDN, or has the potential to do so and removed high impact impacts the basic function, deployment, or operation of a CDN labels Jan 25, 2021
@rawlinp rawlinp mentioned this issue Jun 15, 2021
7 tasks
@rimashah25 rimashah25 added this to the 8.0.0 milestone Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cache-config Cache config generation medium impact impacts a significant portion of a CDN, or has the potential to do so tech debt rework due to choosing easy/limited solution Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants