I am testing ATS 6.1.0 as a
reverse proxy cache.
There are two client connections requesting the same .mp4 object. I expect there shall be only one request to the origin server for one of the objects. But each hit or each request is fetching the data from origin instead of ATS cache.
I have enabled the Read While Writer option followed the guide:
CONFIG proxy.config.cache.enable_read_while_writer INT 1
CONFIG proxy.config.http.background_fill_active_timeout INT 0
CONFIG proxy.config.http.background_fill_completed_threshold FLOAT 0.000000
CONFIG proxy.config.cache.max_doc_size INT 0
And also set the Open Read Retry Timeout:
CONFIG proxy.config.http.cache.max_open_read_retries INT 10
CONFIG proxy.config.http.cache.open_read_retry_time INT 10
I have tried the proxy.config.http.cache.max_open_read_retries as -1
or 100, but the results are the same.
Any configuration am I missing? Is it possible to force ATS to retrieve an object from origin server for only once for a cache-miss object?