[ 
https://issues.apache.org/jira/browse/TS-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727894#comment-14727894
 ] 

Alan M. Carroll commented on TS-3848:
-------------------------------------

The more I look at Pushkar's patch, the more I think [~zwoop] is wrong.

The question is, what should be the behavior for {{wait_for_cache==1}}? Leif 
wants this to be an error for an empty {{storage.config}} because in that case 
ATS will come up without any cache and the origin will be pounded. But how is 
that really different from a valid {{storage.config}} but the disks are not 
physically available? Won't this lead to the same issue? Which means ATS 
shouldn't come up in that case either, but then what is the difference between 
1 and 2 for {{wait_for_cache}}? Do we really want the value {{1}} to mean 
"don't run if no storage configured, but do run if there's no cache because the 
disks are dead"? And what if {{storage.config}} isn't empty but has a typo in 
the device path? Should that fail for {{1}} or only the empty 
{{storage.config}}?

> ATS runs without cache or partial cache on disk errors
> ------------------------------------------------------
>
>                 Key: TS-3848
>                 URL: https://issues.apache.org/jira/browse/TS-3848
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache
>            Reporter: Pushkar Pradhan
>            Assignee: Alan M. Carroll
>             Fix For: 6.1.0
>
>
> Problem:
> If ATS fails to initialize the cache (none of the disks were accessible), the 
> behavior depends on proxy.config.http.wait_for_cache:
> If wait_for_cache = 0, it will listen for requests and serve the requests (by 
> fetching from origin/parent/peer). 
> If wait_for_cache = 1, it will never listen for requests. This is almost like 
> a hang.
> We would like to change this so that we can take some action when the cache 
> fails to initialize (even partially):
> Proposed Solution:
> Define a new variable: proxy.config.http.cache.required
> Value range: 0-2
> 0 (default) - Do nothing
> 1 - Abort trafficserver if it failed to initialize all the disks/volumes
> 2 - Abort trafficserver if it failed to initialize even one of the disks or 
> volumes.
> Preconditions for this new behavior are:
> proxy.config.http.cache.required = 1 (HTTP caching enabled) and 
> proxy.config.http.wait_for_cache = 1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to