1

Any idea why this might be happening? We have the same mysql (*.sql file) data being imported into two virtually identical mysql databases every day, but one consistently takes 30% longer to load than the other.

We're using the RDS system on Amazon's AWS. We have a "staging" db and a "production" db. The staging db is the one that loads slowly. We are loading the data through a mysql client that sits on an EC2 Container. The staging container is virtually identical to the production container. The staging db is virtually identical to the production db. The staging RDS instance is virtually identical to the production RDS instance.

In the past, the staging db loaded at the same speed as the production db. At one point, we did some experiments with staging on a different RDS instance. When those didn't work out, we went back to our previous staging RDS instance and began getting consistently slower import times.

The sql file that gets loaded is a large one and takes almost 30 minutes to load on the production db and 40 minutes on staging.

I can see in the Monitoring charts that the write operations per second on production are a lot higher ... spiking to over 600 vs. only spiking to 240.

EDIT (more info)

These are where they are exactly the same ...

  • Engine: MySQL 5.1.73b
  • Option Group: default: mysql-5-1
  • Parameter Group: barracuda-mysql51
  • Availability Zone: us-east-1b
  • Instance class: db.m1.small
  • Storage Type: General Purpose (SSD)
  • IOPS: disabled
  • Storage: 20 GB
  • Multi AZ: No

They are in different VPC's and different security groups. Also, the production EC2 container that does the upload is in us-east-1b but the staging one is in us-east-1a. I'll have to check if that could make a difference.

asked Nov 18, 2015 at 15:12
2
  • Keyword here is "virtually". Is there any way you can test with identical systems? Commented Nov 18, 2015 at 19:50
  • It looks like the sub region of the uploading container was probably the issue. I'll check again later today. Commented Nov 19, 2015 at 13:09

1 Answer 1

1

It looks like it must have been the zone (sub-region) that was the issue. The slow loading happened when the EC2 container with the *.sql file was in us-east-1a and the RDS instance was in us-east-1b.

answered Nov 20, 2015 at 13:45

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.