Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4235

Deprecate fuzzy cache revalidation ?

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0, 7.0.0
    • Component/s: Configuration, HTTP
    • Labels:
      None

      Description

      I'm starting this as a discussion here. I think there are good reasons to deprecate (for now) and later remove the fuzz logic. These configs are currently in place:

        {RECT_CONFIG, "proxy.config.http.cache.fuzz.time", RECD_INT, "240", RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}
        {RECT_CONFIG, "proxy.config.http.cache.fuzz.min_time", RECD_INT, "0", RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}
        {RECT_CONFIG, "proxy.config.http.cache.fuzz.probability", RECD_FLOAT, "0.005", RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}
      

      The reason for eliminating these are:

      1) They are difficult to setup correctly, particularly if you have a mix of various cache TTL on objects.

      2) Currently, they have next to no value, since you lock out all other readers from the object anyways. So you are likely to benefit / use this only for objects which are infrequently accessed.

      3) With the new proxy.config.http.cache.open_write_fail_action it's possible that #2 improves, but in that case, I'd argue that if you allow it to serve stale, you are better off letting it expire and not "prematurely" revalidate the object.

      4) It seems to cause confusing behavior as it is today (with default settings), e.g. anything with less than 240s TTL is likely to trip up and prematurely expire long before intended (this is why we added the proxy.config.http.cache.fuzz.min_time option, but it's disabled by default, and makes configuration even more complicated).

      So what does everyone think? Is anyone actually using and relying on the fuzz logic? It feels better to spend some time on adding more features to the fail_action feature.

        Attachments

          Activity

            People

            • Assignee:
              zwoop Leif Hedstrom
              Reporter:
              zwoop Leif Hedstrom
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: