I'm submitting a ...
Traffic Control components affected ...
Current behavior:
Currently any delivery service that uses the slice plugin is limited to a single remap line. While this is easy and straightforward it is non optimal, especially for effeciency reasons.
Sample remap rule:
remap http://sliced/ http://parent/ @plugin=url_sig.so @plugin=slice.so @plugin=cachekey.so @plugin=cache_range_requests.so
This for this remap rule the incoming request and every single slice request will run through the url_sig.so plugin for each request.
Expected / new behavior:
Split the DS remap lines into a passthru and sliced request:
map http://slice/ http://parent/ @plugin=url_sig.so @plugin=slice.so @pparam=--remap-host=virt @plugin=cachekey.so
map http://virt/ http://parent/ @plugin=only_allow_port_0.so @plugin=cachekey.so @plugin=cache_range_requests.so @pparam=--consider-ims
In this case the url_sig.so is run only once per incoming request. Any cachekey mods need to be run on the passthru or on the virtual sliced side.
Also note if cachekey plugin is used, on the http://virt/ line
- cachekey needs @pparam=--include-headers=Range
- cache_range_requests needs @pparam=--no-modify-cachekey
Minimal reproduction of the problem with instructions:
Anything else:
The slice plugin with above features hasn't yet been mainlined into ATS. The features will remain but it's possible that plugin option names may change (--remap-host to --remap-host-virt)
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
Currently any delivery service that uses the slice plugin is limited to a single remap line. While this is easy and straightforward it is non optimal, especially for effeciency reasons.
Sample remap rule:
This for this remap rule the incoming request and every single slice request will run through the url_sig.so plugin for each request.
Expected / new behavior:
Split the DS remap lines into a passthru and sliced request:
In this case the url_sig.so is run only once per incoming request. Any cachekey mods need to be run on the passthru or on the virtual sliced side.
Also note if cachekey plugin is used, on the http://virt/ line
Minimal reproduction of the problem with instructions:
Anything else:
The slice plugin with above features hasn't yet been mainlined into ATS. The features will remain but it's possible that plugin option names may change (--remap-host to --remap-host-virt)
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->