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

Change default for proxy.config.cache.hostdb.sync_frequency

    XMLWordPrintableJSON

    Details

      Description

      I'd like to propose that we change this setting, to 0, which means disable HostDB Synchronization. This is an incompatible change, but nonetheless a step in the right direction away from persistent HostDB storage. People can of course still enable it.

      diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc
      index ed71b5c..7a7e1c7 100644
      --- a/mgmt/RecordsConfig.cc
      +++ b/mgmt/RecordsConfig.cc
      @@ -1078,7 +1078,7 @@ static const RecordElement RecordsConfig[] =
         {RECT_CONFIG, "proxy.config.hostdb.timed_round_robin", RECD_INT, "0", RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}
         ,
         //       # how often should the hostdb be synced (seconds)
      -  {RECT_CONFIG, "proxy.config.cache.hostdb.sync_frequency", RECD_INT, "120", RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}
      +  {RECT_CONFIG, "proxy.config.cache.hostdb.sync_frequency", RECD_INT, "0", RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}
         ,
         {RECT_CONFIG, "proxy.config.hostdb.host_file.path", RECD_STRING, NULL, RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}
         ,
      

      Note that changing it to 0, or changing it from 0 to something else, requires restart. It's only "dynamic" if it it's not 0 (which turns off the sync cont).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zwoop Leif Hedstrom
                Reporter:
                zwoop Leif Hedstrom
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m