Ask Your Question
0

How to quickly purge and recreate Keystone Token DB?

asked 2015-04-06 21:56:22 -0500

gnychis gravatar image

My token database grew to 37GB after I didn't catch the part in the guide about periodically running keystone-manage token_flush. So I have finally run keystone-manage token_flush now, and its been running for about 8 hours and it's still going. I'm wondering if there's a faster way to just completely purge the database by dropping the table and recreating it. What's the fastest way to do this and/or how do I properly recreate that table?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-06 23:34:23 -0500

If it is not production system, you can truncate token table or drop and re create it. Also not sure which version you are running. Juno does batch delete which is better than previous versions which does full table lock

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-06 21:56:22 -0500

Seen: 633 times

Last updated: Apr 06 '15