History | Log In     View a printable version of the current page.  
HQ 4.0 EE Release is Now Available | HQ 3.2.5-EE Maintenance Release is Now Available
Issue Details (XML | Word | Printable)

Key: HHQ-1788
Type: Developer Developer
Status: Reopened Reopened
Priority: Major Major
Assignee: Scott Feldstein
Reporter: Nipuna Bhayani
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hyperic HQ

Upgrade takes around 26 minutes 25 seconds to complete

Created: 07/Mar/08 12:56 PM   Updated: 14/Nov/08 01:59 PM
Component/s: Installer
Affects Version/s: 4.0.0
Fix Version/s: 4.0.2

File Attachments: 1. File hq-install.log.debug (3.33 Mb)

Environment: Server:Upgrade from 3.2.1-EE build 631 to 4.0.0-EE 646,Platform:Linux,db:Built-in
Issue Links:
Depends

Verify By: Nipuna Bhayani
Last comment: 23 weeks, 3 days ago


 Description  « Hide
Steps to Reproduce

Upgrade from 3.2.1-EE build 631 to 4.0.0-EE 646 takes around 159 minutes and 17 seconds.






 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Ryan Morgan - 09/Mar/08 04:45 PM

I noticed this problem with GSX1's database when I loaded it locally on my machine. However, demo's database which is 2x the size completed in a few minutes. Do you have other environments we can test? Maybe it's confined to upgrades which use postgres 8.1?

Kashyap Parikh - 10/Mar/08 08:53 AM
Upgrade is running raw measurement delete from eam_measurement for 11 hours on performance stack which is running Postgres8.2.5.

DELETE FROM EAM_MEASUREMENT WHERE measurement_class='R'

Ryan Morgan - 10/Mar/08 04:31 PM
Link to root cause bug which will be fixed in 3.2.2 and 4.0

Ryan Morgan - 10/Mar/08 05:18 PM

I have fixed the problem with deletes from EAM_MEASUREMENT taking too long via HHQ-1795.

There are still some slow statements:

DELETE FROM EAM_MEASUREMENT_TEMPL WHERE default_interval=0

This is because there is no index on default_interval. I'll log another bug to handle this case.

The other slow part is the migrations info the HQ_AVAIL_DATA_RLE for availability, but I'm not sure what we can do about that.

Ryan Morgan - 10/Mar/08 05:24 PM

On second thought, we don't need an index on default_interval for normal HQ operation.

I'm going to close this ticket, please retest and post upgrade times. (on gsx1 since we have complete times for this upgrade) If they are unacceptable, we can create a temporary index on this column so deletes occur quickly.

Nipuna Bhayani - 11/Mar/08 10:33 AM
It still takes 90 minutes and 5 seconds in build 652

Ryan Morgan - 11/Mar/08 01:35 PM

The upgrade of hq.hyperic.net's DB took 221 minutes 7 seconds before failing creating the index noted in HHQ-1799.

Ryan Morgan - 01/Apr/08 12:31 PM

Fixes have gone in for both the RLE upgrade and Measurement upgrade. Please retest.

Nipuna Bhayani - 10/Jun/08 07:18 AM
It still takes 26 minutes 25 seconds to upgrade.Attached is a hq-install.log.debug

Upgrade points that are slow :

[dbupgrade] Upgrading 3.96.7 -> 3.97
[schema-addColumn] >>>>> Adding column RESOURCE_ID (type=INTEGER) to table

[dbupgrade] Upgrading 3.102 -> 3.103
[schema-addColumn] >>>>> Adding column RESOURCE_ID (type=INTEGER) to table EAM_EVENT_LOG

[dbupgrade] Upgrading 3.105 -> 3.105.1
[availRLEUpgrade] *** UPGRADE TASK: migrating availability data to Run Length Encoded Availability