Hi Bryan,
Thanks for your response.
Yes. I checked as per your suggestion and got output as:
sudo bin/traffic_via 'uSc sSf pSeN:tOc i p sS'
Via header is uSc sSf pSeN:tOc i p sS, Length is 24
Via Header Details:
Request headers received from client :simple request (not conditional)
Result of Traffic Server cache lookup for URL :no cache lookup
Response information received from origin server :connection opened successfully
Result of document write-to-cache: :no cache write performed
Proxy operation result :served or connection opened successfully
Error codes (if any) :no error
Tunnel info :tunneling because cache is turned off
Cache Type :unknown
Cache Lookup Result :cache miss or no cache lookup
ICP status :no icp
Parent proxy connection status :no parent proxy or unknown
Origin server connection status :connection opened successfully
***@p206:/usr/local$ sudo bin/traffic_ctl config get proxy.config.http.cache.http
[sudo] password for gvelusam:
proxy.config.http.cache.http: 0
But when I check with free command, it shows as below:
***@p206:/usr/local$ free -m
total used free shared buffers cached
Mem: 15894 15712 181 0 29 11965
-/+ buffers/cache: 3716 12177
Swap: 2861487 42 2861445
Is this normal?
Thanks
Gandhimathi
On Apr 4, 2017, at 2:05 PM, Bryan Call <***@apache.org<mailto:***@apache.org>> wrote:
ATS should not cache If proxy.config.http.cache.http is set to 0. Here is a test with the 7.0.0 branch:
Cache Enabled:
[***@homer mgmt]$ sudo /usr/local/bin/traffic_ctl config get proxy.config.http.insert_response_via_str
proxy.config.http.insert_response_via_str: 3
[***@homer mgmt]$ sudo /usr/local/bin/traffic_ctl config get proxy.config.http.cache.http
proxy.config.http.cache.http: 1
[***@homer mgmt]$ curl -D - -o /dev/null -s http://127.0.0.1:8080/200_cache.php | grep Via
Via: http/1.1 homer.bryancall.com<http://homer.bryancall.com/> (ApacheTrafficServer/7.0.0 [uScRs f p eN:t cCHi p s ])
[***@homer mgmt]$ /usr/local/bin/traffic_via 'uScRs f p eN:t cCHi p s '
Via header is uScRs f p eN:t cCHi p s , Length is 24
Via Header Details:
Request headers received from client :simple request (not conditional)
Result of Traffic Server cache lookup for URL :in cache, fresh Ram hit (a cache "HIT")
Response information received from origin server :no server connection needed
Result of document write-to-cache: :no cache write performed
Proxy operation result :unknown
Error codes (if any) :no error
Tunnel info :no tunneling
Cache Type :cache
Cache Lookup Result :cache hit
ICP status :no icp
Parent proxy connection status :no parent proxy or unknown
Origin server connection status :no server connection needed
Cache Disabled:
[***@homer mgmt]$ sudo /usr/local/bin/traffic_ctl config set proxy.config.http.cache.http 0
set proxy.config.http.cache.http, please wait 10 seconds for traffic server to sync configuration, restart is not required
[***@homer mgmt]$ curl -D - -o /dev/null -s http://127.0.0.1:8080/200_cache.php | grep Via
Via: http/1.1 homer.bryancall.com<http://homer.bryancall.com/> (ApacheTrafficServer/7.0.0 [uSc sSf pSeN:tOc i p sS])
[***@homer mgmt]$ /usr/local/bin/traffic_via 'uSc sSf pSeN:tOc i p sS'
Via header is uSc sSf pSeN:tOc i p sS, Length is 24
Via Header Details:
Request headers received from client :simple request (not conditional)
Result of Traffic Server cache lookup for URL :no cache lookup
Response information received from origin server :connection opened successfully
Result of document write-to-cache: :no cache write performed
Proxy operation result :served or connection opened successfully
Error codes (if any) :no error
Tunnel info :tunneling because cache is turned off
Cache Type :unknown
Cache Lookup Result :cache miss or no cache lookup
ICP status :no icp
Parent proxy connection status :no parent proxy or unknown
Origin server connection status :connection opened successfully
-Bryan
On Apr 2, 2017, at 1:53 AM, Velusamy, Gandhimathi <***@Central.UH.EDU<mailto:***@Central.UH.EDU>> wrote:
Hi,
I am working on load balancing plugin and developed some dynamic policies. To evaluate them, I tried to disable caching. But it did not stop caching.
proxy.config.http.cache.http of records.config was set to 0.
sudo bin/traffic_ctl config get proxy.config.http.cache.http
proxy.config.http.cache.http: 0
I even commented the path to cache in Storage.config file.
Previously I was working with Traffic server 6.2 and I was able disable caching.
May I please know how to disable caching in Traffic server-7.0.0.
Thanks
Gandhimathi