We are experiencing an issue in our Google Cloud environment related to max_connections settings displayed for replica databases. Specifically, the primary database and its replica have different max_connections values configured, but the monitoring trend graph is displaying both of them with the same maximum connections value. This discrepancy does not align with the actual database settings.
Primary Database: Configured with max_connections set to 10,000.
Replica Database: Configured with max_connections set to 6,000.
Trend Graph Issue: In Cloud Monitoring, the trend graph displays both the primary and replica databases as having 10,000 maximum connections, even though the replica is configured with a lower value.
This issue seems to be impacting the accuracy of monitoring data for all master-replica database configurations in our environment.
Verified that each database's max_connections settings are correct (i.e., 10,000 for the primary and 6,000 for the replica).
Checked the data source in Cloud Monitoring and confirmed that the values displayed do not match the actual configuration.
This issue appears to be a UI display error within Cloud Monitoring.
It can be replicated by following similar steps in a comparable master-replica setup.
We kindly request any insights or recommendations on how to ensure that Cloud Monitoring accurately displays the max_connections values for replica databases. Is this a known issue with the display in monitoring, or is there a specific configuration step we might be missing?
Any help or guidance would be greatly appreciated.
Thank you!
Best Regards
David
Hi @davidhsu,
Welcome to Google Cloud Community!
The problem you're describing is a display error in Google Cloud Monitoring, not a misconfiguration of your databases. Since you've verified the max_connections
settings are correct on both the primary and replica instances.
Here's a breakdown of how to proceed, based on general Google Cloud best practices and troubleshooting approaches:
1. Report the bug to Google Cloud Support:
Since you've replicated the issue and confirmed the database settings are correct. Google Cloud Support can investigate this further, potentially identifying a known issue or a fix in the works or you can follow up on the ticket. Providing them with steps performed, screenshots, project ID (anonymized if necessary for private reasons), database type and version numbers will greatly aid their investigation.
2. Alternative monitoring approaches:
While waiting for a resolution from Google Cloud Support, consider these temporary workarounds to get accurate monitoring data:
max_connections
. This requires more development effort but guarantees accurate data.I hope the above information is helpful.