Bug 869210
| Summary: | Custom report cause the db server to oom | ||
|---|---|---|---|
| Product: | [Other] TCMS | Reporter: | jianchen <jianchen> |
| Component: | Database | Assignee: | Yang Ren <ryang> |
| Status: | VERIFIED --- | QA Contact: | Nobody <nobody> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.8.1 | CC: | junzhang, ryang, vchen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
jianchen
2012-10-23 09:43:26 UTC
This bug was fixed in tcms 3.8.2. Previously, tcms custom report raise complex SQL query statement stacked up and eventually caused the database server to oom. It's will only involve RHEL6/RHEL7 custom report because this products exist a large number testcaseruns. Query and statistical testcaserun to a high load on the database server. Solutions: Add property (eg. failed_case_run_num, passed_case_run_num) to testrun, each time change testcaserun's status will update relevent testrun's properties. The report will query testrun's properties directly and no need to queries testcaserun one by one which reduce database server pressure. Verify 3.8.2 on tcms-test -->PASS cpuinfo, processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 13 model name : QEMU Virtual CPU version (cpu64-rhel6) stepping : 3 cpu MHz : 2400.056 cache size : 4096 KB memory: 1002M swap: 3148732 Verify steps: 1. use customer report to create RHEL 7 report. And at the same time, another user do advanced Search operation. 2. check the tcms-test env resources while tcms query data, such as, %CPU, %MEM. Actual result: after 15s, report generated successfully, And didn't effect advanced search. But, actually tcms-test env cpu utilization rate reached 95.6% at the beginning of query. this means tcms performance is still not very well, and Query algorithm need to be improved in the future. |