Uploaded image for project: 'Traffic Control'
  1. Traffic Control
  2. TC-454

remap.config and parent.config generation are resource intensive

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: Traffic Ops API
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dg4prez Derek Gelinas
                Reporter:
                dg4prez Derek Gelinas
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: