You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Derek Gelinas (JIRA)" <ji...@apache.org> on 2017/07/24 13:09:00 UTC
[jira] [Created] (TC-454) remap.config and parent.config generation
are resource intensive
Derek Gelinas created TC-454:
--------------------------------
Summary: remap.config and parent.config generation are resource intensive
Key: TC-454
URL: https://issues.apache.org/jira/browse/TC-454
Project: Traffic Control
Issue Type: Improvement
Components: Traffic Ops API
Affects Versions: 2.1.0
Reporter: Derek Gelinas
Assignee: Derek Gelinas
Generation of parent.config and remap.config files, which are both server scope and therefore required for each host, take too long too generate. Large numbers of delivery services cause the generation times to be upwards of 14 seconds in some instances.
I've modified the generic ds_info subroutine in favor of two specialized subroutines to give only the information required for each file type as well as adding several other small optimizations. This appears to have cut the time down by close to 50%.
I've also included code to sort the text results before output, making them more consistent from one run to the next. This is a request from operations.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)