参考:
https://docs.openstack.org/keystone/queens/admin/identity-performance.html
清楚过期的Token.
Pruning expired tokens from backend storage¶
Using a persistent token format will result in an ever-growing backend store. Keystone will not remove, or prune, tokens from the backend even after they are expired. This can be managed manually using keystone-manage token_flush, which will purge expired tokens from the data store in batches. Diligently pruning expired tokens will prevent token bloat.
This optimization is not necessary for deployments leveraging Fernet tokens, which are non-persistent in nature.
[root@controller ~]# keystone-manage token_flush
[root@controller ~]#
Queens默认采用的是Fernet,所以不需要运行这个命令。
本文介绍如何使用OpenStack Keystone管理命令清除过期的持久化Token,防止Token膨胀导致后端存储空间无限增长。对于使用Fernet格式Token的部署,由于其非持久化特性,无需执行此操作。

被折叠的 条评论
为什么被折叠?



