Assess recommendations for Cloud SQL in Database Center

Use assessments in Database Center to assess and test the performance impact of database recommendations before you apply them to your production Cloud SQL for PostgreSQL instances.

To assess a recommendation, the assessment workflow performs these operations:

  • Clones your database instance.

  • Runs benchmarking simulation tests on the clone.

  • Compares the baseline performance of the clone against the performance after you apply the recommended configuration changes.

How it works

When you assess a recommendation, the assessment workflow creates a step-by-step test plan that walks you through the assessment process.

After you've selected an instance for evaluation, the assessment can help measure the potential performance impact of the following kinds of changes:

  • Machine type: scale the machine type up to better meet your specific workload needs.
  • Edition type: upgrade the edition type from Enterprise or Enterprise Plus to access more robust features.
  • Data cache: enable data caching on your Enterprise Plus instances to access more storage for faster reads.

When you assess a recommendation, it does the following:

  1. To test the impact of these changes, the feature creates a temporary clone of the instance and runs a baseline benchmark test.

    The clone is a copy of your instance that uses synthetic data in the form of pgbench tables to abstract your data. Data manipulation language (DML) is used to help simulate traffic, and the parameters available in pgbench let you indicate the workload type and duration.

    For example, you can indicate that you want the clone to run using the following parameters:

    • 10 database client connections.
    • 1,000 transactions per client.
    • Simple query mode.

    Given these parameters, the assessments workflow can first measure performance of the clone with the instance's current configuration, and then compare it with a version of the clone where the recommended modifications are applied. Measured performance metrics include the following temporary results:

    • Scorecard/Table: Average latency, number of transactions
    • Charts: CPU utilization, memory usage
  2. The assessments workflow applies the recommended changes to the clone through a patch operation and runs the benchmark again. Depending on instance capacity and the type of modifications made, changes to configuration settings can take 45 minutes or longer to complete.

  3. The assessments workflow records performance metrics and compares them to the previously recorded baseline.

By using assessments, you can safely validate the recommended changes to a clone in a test environment before applying them manually to its corresponding production instance.

If you're satisfied with the benchmark results, then you can manually apply the recommendation changes to your production instance.

After 48 hours, the assessment plan and the results are deleted.

The clone instance is deleted as soon as the workflow completes.

If the assessment plan is cancelled or interrupted, then you must delete the clone manually.

For more information, see Create an assessment of a recommendation.

Limitations

  • The results from the assessment plan, and any resources the clone requires, are available for 48 hours before being deleted. Resources accrue charges until deletion.

  • If you cancel or interrupt the assessment session, or the assessment fails, you must delete the clone manually to prevent ongoing charges.

  • Database Center assessments are available only for Cloud SQL for PostgreSQL instances.

What's next