trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <>
Subject Re: Dynamic config
Date Thu, 21 Jul 2016 01:40:04 GMT

> On Jul 21, 2016, at 7:03 AM, Penkar, Cylus <> wrote:
> Folks,
> I am in a processing for writing a plugin (will talk more about it in the future) and
need config to be dynamic. What do we have currently in ATS (and plugins) that I can reuse?

This depends a lot on how you want to configure your plugin. These are the main options:

- Add custom records to records.config using APIs like TSMgmtStringCreate() and TSMgmtStringGet().
- Get notified on configuration events using TSMgmtUpdateRegister().
- Remap plugins get automatic reconfiguration support using TSRemapNewInstance() and TSRemapDeleteInstance().
- Receive a custom configuration message using the plugin message hook, TSLifecycleHookAdd(TS_LIFECYCLE_MSG_HOOK).
- Periodically poll for configuration changes using TSContScheduleEvery().

View raw message