login inactive_expire_time频繁续期导致的数据库性能问题
linxiaowu1992 opened this issue · comments
linxiaowu1992 commented
是BUG反馈
还是需求提交
(Is this a BUG REPORT or FEATURE REQUEST)? (choose one):
bug反馈
PaaS/PaaSAgent版本(The versions used):
发生了什么(What happened):
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):