edit-icon download-icon

How to accelerate ApsaraDB for RDS response

Last Updated: Jul 13, 2016


If you connect the ApsaraDB for RDS through short connection, run the following commands on the ECS connected to the ApsaraDB for RDS to accelerate ApsaraDB for RDS response. (Note: ECS should have public bandwidth connection)


1. Install NSCD

Run commands on ECS

For Ubuntu: apt-get install nscd

For CentOS and Alibaba Cloud Linux: yum install nscd

 

2. Start NSCD

After NSCD is installed, run: service nscd start

The following result will show


3. Check startup success

After NSCD is started, run: ps -ef|grep nscd

Confirm that NSCD is successfully started. The following information will show


4. Modify DNS Parsing File

In /etc/resolv.conf, add: options timeout:1 attempts:1

Thank you! We've received your feedback.