Bug 1938923

Summary: Router HAProxy config file template is slow to render due to repetitive regex compilations
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: NetworkingAssignee: Andrew McDermott <amcdermo>
Networking sub component: router QA Contact: Arvind iyengar <aiyengar>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aiyengar, aos-bugs, bperkins, hongli, mmasters
Version: 3.11.0   
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-28 14:23:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1938922    
Bug Blocks:    

Comment 2 Hongan Li 2021-04-06 05:46:57 UTC
verified with 4.5.0-0.nightly-2021-04-05-191932 and no regression, moving to verified.

router logs with more that 3k routes:
I0406 03:48:43.500628       1 router.go:425] template "msg"="writeConfig"  "duration"="482.545799ms"
I0406 03:48:48.524396       1 router.go:425] template "msg"="writeConfig"  "duration"="506.148406ms"
I0406 03:48:53.515454       1 router.go:425] template "msg"="writeConfig"  "duration"="497.081666ms"

Comment 5 errata-xmlrpc 2021-04-28 14:23:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.5.38 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.