TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Migrating from AWS to AWS

206 pointsby mikeykover 10 years ago

6 comments

legoheadover 10 years ago
We just migrated over to VPC as well, and came across a really weird &quot;bug&quot;.<p>We auto-scale EC2, and <i>randomly</i> when auto-scaling, the new server couldn&#x27;t connect to memcache (ElastiCache). Note that when you migrate over to VPC you have to migrate everything -- launch new ElastiCache servers in VPC, EC2 servers, RDS servers, etc.<p>Back to the bug.. I&#x27;d ssh into the EC2 server, and when I telnetted to memcache, it wouldn&#x27;t connect. I terminated the EC2 server, and a new server comes up and can connect fine. I made a forum post in AWS forums and got zero responses. We then bought into AWS support and I submitted a ticket.<p>The problem: I launched my ElastiCache servers in the same subnet as my EC2 servers. Apparently the ElastiCache servers by default remembers servers in the same subnet by Mac address. Since we were cycling EC2 servers, eventually we&#x27;d get one with the same Mac address but new internal IP address, and I&#x27;m no networking guy but apparently this caused a routing problem.<p>Solution: create a new subnet and launch all the ElastiCache servers in that subnet. I did that, and it fixed the problem. The AWS support rep said if the ElastiCache servers are launched in their own subnet it will force them to go by IP instead of Mac address.<p>Anyway, hope this helps someone out ;)
评论 #8500848 未加载
评论 #8501004 未加载
评论 #8502750 未加载
roncohenover 10 years ago
We also migrated a while back (opbeat.com). While we run a smaller setup, I imagine that might be the case for most readers. We run a pretty standard setup with ELB, Postgres (master&#x2F;replica), webservers and job processing servers.<p>This recipe details what we did (as i recall it):<p><pre><code> 1) Prerequisites: Running at least two of everything in separate AZs and expertise (or courage) to fail over to a replica DB. 2) Boot up instances of everything in the VPC 3) Set up a new ELB inside the VPC, add the web servers inside to the ELB 4) Make sure your instances inside the VPC can talk to which ever service they need outside (replica database and web servers needs to reach master outside + memcached). Use `telnet` to make absolutely sure :) 5) Make sure web and job servers can reach the replica db and memcached inside 6) Test out the new VPC ELB from outside 7) Switch DNS over to the new VPC ELB, wait for it to propagate. 8) Do a failover from your master to the replica inside. 9) Same for memcached 10) Shutdown everything in EC2 classic. 11) Drinks </code></pre> EDIT: formatting
Someone1234over 10 years ago
I&#x27;m used to AWS pricing but I&#x27;m still a little fuzzy on how AWS VPC pricing works.<p>It is $0.05 per VPN Connection-hour. But in this context what is a &quot;VPN connection?&quot; Do you literally just set up your cloud for &quot;free&quot; (aside from paying for instances, etc) and then only pay $0.05 for every hour you spend connected to the private cloud externally?<p>Does the VPC have any external visibility aside from the VPN connections? And if it does, what is stopping you just setting up your own VPN server and bypassing the $0.05&#x2F;hour rate?
评论 #8500060 未加载
评论 #8500063 未加载
dantiberianover 10 years ago
This has to be pretty high up the list of &quot;Most creative uses of Zookeeper&quot;. I&#x27;m really impressed with the ingenuity involved with building such a glorious hack.
giovannibajo1over 10 years ago
The details of the migration are juicy and it&#x27;s probably a good idea to do it anyway, but I can&#x27;t stop thinking that the initial stumbling block (clashing of private IP addresses) wouldn&#x27;t have happened with IPv6.
wldcordeiroover 10 years ago
Is Instagram still using a modified version of Django 1.1 (if I recall that was the version they were on) or do they stay on the newest version now?