i want to try out RDS for our company workload. Currently we have a managed DB server at a managed Datacenter and performance is rather weak. Certain queries take forever and we‘re on the look for another solution.
That being said, i‘m trying to find the best way to create a copy of our database in RDS. I was thinking of using DMS. It seems like the easiest solution to replicate the data from our DB to a new one in RDS.
We have rather sensible data and my boss worries about that a lot. How does DMS connect to our DB? I suppose I have to enter a DB user… how does it establish the connection? Is it http? What it boils down to: Is it a secure way of transferring the data?
Another thing that is an obstacle for me is that there is a firewall that controls incoming and outgoing requests from and to our datacenter. How do I determine which IP i have to grant access to our datacenter? is it the VM on top of which the DMS runs?
One more thing that has nothing to do with DMS but is still on my mind. Our DB is about 1TB large. So i have to provision about that much storage. On the pricing page it states the price per GB/month… we only want to test it for a couple days, would I still have to pay for the whole months?
DMS connects to your database as a regular database client (ie using the mysql protocol, postgres protocol etc.). If it supports ssl then you can use that to protect the connection. You could also connect via a VPN if you have set that up between your datacenter network and your aws VPC.
The IP you need to authorize is that of the replication instance you set up. If you create the instance in a private subnet of a VPC then it’s external IP of your nat gateway/instance you need to setup.
Storage prices are displayed in GB/month but they are usually billed by the hour. I couldn’t tell from your post, but if you don’t already know then the storage on the DMS instance isn’t for storing the whole database - just for storing temporary data & logs as it transfers data from one endpoint to the other
A very clear and correct answer. The only thing I would add is that transferring the data could take some time. You pay for the DMS instance until you turn it off. So you could keep it online full time as a sort of replication (I have a client who does this).
I’ve seen DMS work very well at a few clients. Other commenters answered the tech questions. I’ve also seen the AWS Professional Services team come onsite to handle hardcore Oracle migrations and they did a fantastic job.
Database performance isn’t necessarily tied to server resources. It could be a number of factors slowing your existing database down. For example, improper indexing (row vs columnar, clustered vs unclustered) for the workload, not using separate volumes for transaction logs or tempd, or network performance issues can all slow down your queries.
Edit:. Removed comment about DMS. I had a bad experience with trying to use it for a customer. However, it could have been attributed to operator error.
I agree that DB performance isn’t necessarily tied to hardware. You may transfer your DB to RDS and find it’s still sluggish. Make sure your queries are efficient and have proper indexing before looking for a silver bullet.
We recently migrated a 1TB database (Oracle prem to Oracle RDS…total time about 8 hours) using DMS. We setup a VPN tunnel between the premise database and the VPC in the cloud. That creates a secure environment to transfer the data.
DMS connects to each database using the standard connection port and login credentials just like you were connecting to the DB using your favorite client. (Exampe, Oracle connects over port 1521)
GB/month pricing is how much 1GB costs for an entire month. For example, 3 days would cost 1/10th that (roughly) per GB. For $0.115/hr for all SSD, it’s a pretty good deal IMO.
Finally…experiment with different transfer methods. For us, we used a mix of DMS and Oracle impdp/expdp and for a few large tables, we ran delta migrations on a regular basis to keep the table up to date in a temporary database in the cloud.
Thank you very much for this response! This helps a lot to understand the process better!
I was thinking of using a VPN too, but since our service provider for the datacenter is rather slow in doing stuff for us, I didn’t want to get into setting this up. As far as I see I can create a “Virtual Private Gateway” for the VPC in which RDS and DMS is running on Amazons side. What would our service provider need to set up in order for the connection to take place? Would that be a lot of effort?
I’ve never set this up - all our resources are inside AWS so I haven’t needed it. You could also use an ssh tunnel, but obviously then you need to worry about ensuring the tunnel reconnects if it goes down
Thank you!
We are using Oracle. We are aware that it’s not necessarily due to the server, but the thing is we currently don’t have any insides into how the database is set up. We don’t even have access to the server, we only communicate to Oracle directly. Anything else our service provider takes care of. Their quality of service has sharply declined though, so I’m looking for alternatives.
We tried rewriting the queries, using another index etc. We also have two consultants working on it. Testing another Database in another Datacenter is just one of the things we want to try out.
What we saw is that parsing and execution of the SQL query in question didn’t took many CPU seconds at all. 99% of the time it took to retrieve the data was for I/O. Since I don’t know anything about the setup of our DB, I wanted to primarily try RDS so that I can test the queries with SSD storage.
Why do you think that DMS is not a good fit for Oracle?
Essentially you need to use data pump to dump the database into a bridge instance for a database your size. Also, there are some preparation steps in order to speed things along.
Depending on how your contract is written, the data itself should belong to your organization. Perhaps it’s time to find a different vendor?
I’m not saying don’t go to AWS. Only that it has huge configuration overhead from a migration perspective and a possibility that it may not solve your problem.
Even if AWS solves the problem, you still need a DBA to index and optimize the data.
I do understand your predicament though as the talent of your next vendor is a crapshoot. Just make sure you are asking the right questions during the presales process to gauge this ahead of time.
I removed that comment. Everyone else here says it works fine. I just had a bad experience. Similar situation as the original poster. Customer had a third party managing the source. We nor the customer were allowed into the source. So we had to depend on them for everything. Fast forward to the finish line, we dropped using DMS and instead had the other vendor dump the database and migrated it manually.
That’s a valuable ressource! I will consider using a dump. We use dumps occasionally to sync our test db server with our prod data.
The data itself belongs to us of course. Our vendor just takes very long to respond to tickets and generally it’s not easy to work with them. I would gladly switch vendors, but the contracts have been renewed recently and yeah. I only joined the company six months ago, so I just have to live with it. My boss is open to AWS which is a good sign, so I want to test AWS (I do have some experience with S3, EC2 but didn’t host a DB in RDS yet) for certain kind of tasks and just see how it goes.
Yeah a dedicated DBA would be awesome. But unfortunately I’m not in a position to make any decisions.
Yes, we used the VPN from AWS. Since your data is going over a tunnel over the internet, the speed of your Internet connection upload will have a huge impact on how fast you can push data up to the cloud.
VPN cost is quite cheap, DMS cost is also quite cheap (we used the largest DMS instance available)
Once the tunnel is configured, DMS can access your premise database.