TencentBlueKing / legacy-bk-paas

蓝鲸智云PaaS平台(BlueKing PaaS)

Home Page:https://bk.tencent.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

login inactive_expire_time频繁续期导致的数据库性能问题

linxiaowu1992 opened this issue · comments

BUG反馈还是需求提交(Is this a BUG REPORT or FEATURE REQUEST)? (choose one):
bug反馈

PaaS/PaaSAgent版本(The versions used):

发生了什么(What happened):
image
inactive_expire_time 的续期,在认证和用户信息接口频繁被访问的情况下,过多数据库写,会有性能问题,导致token认证失败

优化方式:
update前,先对inactive_expire_time进行一个时间差检查,例如相差10分钟,才进行update,避免频繁数据库写

如何复现(How to reproduce it):

相关的日志详情(访问日志及应用日志: paas.log/login.log/esb.log/esb_api.log)和截图等(Log & Screenshot):

备注(Anything else we need to know):