大网数据广告活动
服务器运维问答

Is it possible to determine the type of instance for an AWS RDS MySQL instance from within MySQL?

· 52CE 我爱测

I would like to know if it is possible for me to determine the instance type and storage available from the MySQL command line while connected to the RDS server. I have a project where the database efficiency degraded horribly as…

问题原文

原帖链接 · Karl Buys · CC BY-SA 3.0

I would like to know if it is possible for me to determine the instance type and storage available from the MySQL command line while connected to the RDS server.

I have a project where the database efficiency degraded horribly as soon as I switched from querying my dedicated development server's MySQL database to the client's AWS RDS instance (located in the same availability zone as the EC2 instance hosting the web application). The difference being that the EC2 instance is in North America, the development server is in South Africa, and despite traversing the Atlantic ocean, the RDS instance was still approximately 55% slower on intensive queries.

Because the infrastructure is being hosted by a third-party managed hosting service provider, I cannot directly ask the service provider what instance type they've deployed. The only access rights I have are basic grant, create, select, update, insert. I cannot access the AWS Management Console.

Assuming it's possible, could someone please give me some guidance on what command(s) to run to determine this?

已采纳解答

原帖链接 · Michael - sqlbot · CC BY-SA 3.0

It isn't possible to determine the instance type, available storage, or any similar properties of an RDS instance from "within" MySQL (within meaning via the SQL interface, which is the only exposed interface on RDS -- there's no shell/OS access).

The only way to learn these things or to examine the performance metrics is with access to the AWS account via the AWS console or API.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-01-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。