There is a related PR[1] being fixed here.

[1] https://github.com/apache/apisix/pull/6202 
<https://github.com/apache/apisix/pull/6202>

Leslie Tsang
leslie.ts...@icloud.com

> On 14 Feb 2022, at 4:12 PM, Zhiyuan Ju <juzhiy...@apache.org> wrote:
> 
> Hi,
> 
> If there have any updates, please let us know :)
> 
> Best Regards!
> @ Zhiyuan Ju <https://github.com/juzhiyuan>
> 
> 
> Ming Wen <wenm...@apache.org> 于2022年1月21日周五 17:10写道:
> 
>> So I think it's a serious bug, we should fix it ASAP.
>> 
>> Thanks,
>> Ming Wen, Apache APISIX PMC Chair
>> Twitter: _WenMing
>> 
>> 
>> Bozhong Yu <imbozh...@gmail.com> 于2022年1月21日周五 16:32写道:
>> 
>>> I'm not sure if it can be defined as a bug, but it would cause etcd to
>> slow
>>> down and increase cpu usage, which is unreasonable.
>>> The server-info plugin is only used to report whether the Apache APISIX
>>> node is survival and should not write a lot of data to etcd.
>>> 
>>> Ming Wen <wenm...@apache.org> 于2022年1月21日周五 15:45写道:
>>> 
>>>>> Currently, server-info plugin adds a revision every time the status
>> is
>>>> updated, and some users set a relatively short reporting time, which
>> may
>>>> result in millions or even tens of millions of data in etcd after a
>> long
>>>> run, resulting in a slow connection and high cpu usage. So I give a
>>>> proposal to refractory the server-info plugin.
>>>> 
>>>> Is this a serious bug?
>>>> 
>>>> Thanks,
>>>> Ming Wen, Apache APISIX PMC Chair
>>>> Twitter: _WenMing
>>>> 
>>>> 
>>>> Bozhong Yu <imbozh...@gmail.com> 于2022年1月21日周五 14:02写道:
>>>> 
>>>>> Hi Community.
>>>>> 
>>>>> Currently, server-info plugin adds a revision every time the status
>> is
>>>>> updated, and some users set a relatively short reporting time, which
>>> may
>>>>> result in millions or even tens of millions of data in etcd after a
>>> long
>>>>> run, resulting in a slow connection and high cpu usage. So I give a
>>>>> proposal to refractory the server-info plugin.
>>>>> 
>>>>> Here is a new implement:
>>>>> 
>>>>> 1. get the server-info data, if it does not exist, initialize the
>>>>> server-info information
>>>>> 2. bind the lease to the key "server-info"
>>>>> 3. call keepalive to refresh the TTL to ensure the node is alive
>>>>> 
>>>>> Flowchart:
>>>>> 
>>>>> [image: image.png]
>>>>> 
>>>>> What about your opinions?
>>>>> 
>>>> 
>>> 
>> 

Reply via email to