Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

Non-performant code causing purge (invalidate content) api to timeout #1304

Closed
mitchell852 opened this issue Apr 14, 2016 · 0 comments · Fixed by #1307
Closed

Non-performant code causing purge (invalidate content) api to timeout #1304

mitchell852 opened this issue Apr 14, 2016 · 0 comments · Fixed by #1307
Assignees
Milestone

Comments

@mitchell852
Copy link
Member

POST /api/1.2/user/current/jobs creates a purge job which involves inserting a record in the Job table, snapshotting regex_revalidate.config and setting upd_pending flag on each server of the applicable CDN to 1.

This process takes too long and causes a timeout.

I suspect the offending code is in snapshot_regex_revalidate() of https://github.com/Comcast/traffic_control/blob/master/traffic_ops/app/lib/MojoPlugins/Job.pm

specifically, the identical query performed for each server found on line 58 and 59.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants