CTX139043
CloudPlatform
CloudPlatform 3_0_7
Configuration,Other
2014-06-18
2014-04-07
This article provides information on how to remove "cloud.alert" and "cloud_usage.cloud_event" Tables in the Cloud Database.

Objective

This article describes how to remove cloud_usage.cloud.usage??tables in the Cloud Database.

Background

The "cloud.alert" and "cloud_usage.cloud_usage" table in the CloudPlatform database can grow large over a period of time. However, this might not cause any issues in day-to-day operations but in some scenarios, for example during an upgrade, the large number of records might cause the upgrade to take significantly longer (in hours) to complete.

Instructions

Complete the following steps to remove the tables:

  1. Open the database dump of CloudPlatform??databases.

    mysqldump -u<user> -p<password> -h<hostname> -P<port> cloud > cloud.dump

    mysqldump -u<user> -p<password> -h<hostname> -P<port> cloud_usage > cloud_usage.dump
  2. Stop the cloud usage service.

    Note: This is an optional step.

    service cloud-usage stop
  3. Truncate "cloud_usage.cloud_usage" table.

    truncate table cloud_usage.cloud_usage;

    Note: Do not run this query when the usage job is running. Usage job executes as per the schedule set in the global config.
  4. Start the cloud usage service if you have stopped the service in Step 2.

    service cloud-usage start
  5. Stop the cloud management service.

    Note: This is an optional step.

    ??service cloud-management stop
  6. Truncate the "cloud.alert" table.

    truncate table cloud.alert;
  7. Start the cloud management service??if you have stopped the service in Step 5.

    service cloud-management start

Applicable Products


 

Join the conversation

Citrix Discussions

Open a case

Citrix Support

特别说明


本文来源为Citrix.com所有,翻译后版权归翻译者所有.如需转载请注明出处.

文档版本


.

广告招租


最新留言


.

广告招租


.