trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Penkar, Cylus" <>
Subject Re: Dynamic config
Date Fri, 22 Jul 2016 18:08:43 GMT
Thanks James! This exactly what I was looking for! I am going to play with it.

Making an assumption that the config will be persisted into records.config right?

- Cylus

On 7/20/16, 6:40 PM, "James Peach" <> wrote:

>> 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