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

For a Regional Delivery Service, MaxOriginConnections should only be divided among Servers within a single Cache Group #7097

Closed
2 of 3 tasks
zrhoffman opened this issue Sep 28, 2022 · 0 comments · Fixed by #7127
Labels
cache-config Cache config generation new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops Traffic Portal v1 related to Traffic Portal version 1 Traffic Portal v2 Related to the experimental Traffic Portal version 2

Comments

@zrhoffman
Copy link
Member

zrhoffman commented Sep 28, 2022

This Feature Request affects these Traffic Control components:

Description

The MaxOriginConnections property of a Delivery Service determines how many connections to the origin can be made, across all caches in child Cache Groups of the Origin Cache Groups. The max origin connections per cache is computed as that MaxOriginConnections value divided by the number of caches in child Cache Group of the Origin Cache Group:

maxOriginConnectionsPerServer := int(math.Round(float64(*ds.MaxOriginConnections) / float64(numLastTierServers)))

However, if a Delivery Service is only intended to be used in a specific Region, despite that Delivery Service having Cache Groups outside of that region, the computed maxOriginConnectionsPerServer value is lowered when more caches exist outside of that region, which is undesirable. In the case of a Regional Delivery Service, the maxOriginConnectionsPerServer should only divide MaxOriginConnections among caches within a given cache's own Cache Group.

@zrhoffman zrhoffman added new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops cache-config Cache config generation Traffic Portal v1 related to Traffic Portal version 1 Traffic Portal v2 Related to the experimental Traffic Portal version 2 labels Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cache-config Cache config generation new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops Traffic Portal v1 related to Traffic Portal version 1 Traffic Portal v2 Related to the experimental Traffic Portal version 2
Projects
None yet
1 participant