[ https://issues.apache.org/jira/browse/TS-2644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13982100#comment-13982100 ]
Jay Tomolek edited comment on TS-2644 at 4/26/14 8:47 PM: ---------------------------------------------------------- hi guys, i coded in the past a plugin to handle this issue in a per domain fashion it is called domain_tos plugin and works like the cacheurl plugin, where admin can set 3 parameters at domain_tos.config file: ## Format: [regex for domain] [tos_if_miss] [tos_if_hit] ## desidered tos_if_miss, tos_if_hit should be multiplied by 4 (TOS) ## values equal 0 does not alter the native DSCP field value ## QoS for social networks - DSCP 2(miss) 3(hit) http://.*\.facebook\.com 8 12 http://.*\.fbcdn\.net 8 12 http://plus\.google\.com 8 12 ## QoS for porn hosts - DSCP 4 (miss) 5(hit) http://.*(xvideos|redtube|porn) 18 20 ## QoS for others domains DSCP 0(miss) 1(hit) http://.* 0 4 was (Author: jaytomolek): hi guys, i coded in the past a plugin to handle this issue in a per domain fashion it is called domain_tos plugin and works like the cacheurl plugin, where admin can set 3 parameters at domain_tos.config file: Example of domain_tos.config: # Format: [regex for domain] [tos_if_miss] [tos_if_hit] # desidered tos_if_miss, tos_if_hit should be multiplied by 4 (TOS) # values equal 0 does not alter the native DSCP field value # QoS for social networks - DSCP 2(miss) 3(hit) http://.*\.facebook\.com 8 12 http://.*\.fbcdn\.net 8 12 http://plus\.google\.com 8 12 # QoS for porn hosts - DSCP 4 (miss) 5(hit) http://.*(xvideos|redtube|porn) 18 20 # QoS for others domains DSCP 0(miss) 1(hit) http://.* 0 4 > TOS (DSCP) > ----------- > > Key: TS-2644 > URL: https://issues.apache.org/jira/browse/TS-2644 > Project: Traffic Server > Issue Type: New Feature > Components: Cache, Network > Reporter: Faysal Banna > Fix For: sometime > > > Hi Guys > I wonder if it would be possible to have a plugin that we can assign TOS/DSCP > bits to the objects that are being a cache HIT or maybe object type of > video/audio. > such a plugin would give us better performance and control on how to > distribute the output of the cache towards clients. > example : > suppose i set traffic to clients each of different bandwidth. > on a router on a link somewhere on some roof top building i can say this > client can get miss object traffic of 512Kbit/s and 1Mbit/s of Hits from the > cache. > this way if this client is getting a cached object he would get it in 1Mbit/s > while his non cached requests would be of 512Kbit/s > hope whoever does this patch plugin takes into consideration the mime type or > url of the object being retrieved maybe i want to set audio/video being > cached or not to have 768Kbit/s while windows updates and android/iphone apps > should take no more than 512kbit/s > bear in mind that this has nothing to do with Origin servers throttling > feature request. this is just client side feature set. > much regards > Faysal Banna -- This message was sent by Atlassian JIRA (v6.2#6252)