keystone kvs driver causes process to grow indefinitely and spin on CPU with thousands of keys in a single python dict
Bug #1188301 reported by
Clint Byrum
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Joe Gordon | ||
tripleo |
Fix Released
|
Critical
|
Clint Byrum |
Bug Description
After about 10 days of being up, things got sluggish in our proof of concept rack.
The kvs middleware for tokens is basically just for testing. It is in-process and there is no persistence, and no garbage collection or memory limit at all.
We should use sql if we want to persist tokens, or memcache if we are fine with losing some.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6955 keystone 20 0 3255m 3.0g 5640 S 92 3.2 6532:10 keystone-all
Changed in tripleo: | |
status: | Triaged → Fix Released |
assignee: | nobody → Clint Byrum (clint-fewbar) |
status: | Fix Released → In Progress |
Changed in keystone: | |
importance: | Undecided → Medium |
Changed in keystone: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | havana-3 → 2013.2 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/32970 github. com/stackforge/ tripleo- image-elements/ commit/ 8fa5669f4984503 f62c87ab5f0b797 dbf8e0f416
Committed: http://
Submitter: Jenkins
Branch: master
commit 8fa5669f4984503 f62c87ab5f0b797 dbf8e0f416
Author: Clint Byrum <email address hidden>
Date: Thu Jun 13 15:30:30 2013 -0700
Set keystone token backend to sql.
Because the table could grow forever, also add a cron job to flush tokens
every two hours.
Due to bug #1188378 we need to use percona-toolkit's pt-archiver to
clean out the table on mysql.
Fixes bug #1188301
Change-Id: I90aac347993ee7 41231fbfb99a32d c6e3f3a75ec