-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create replication documentation and formalize the process #932
Comments
Create a new AWS server & database
|
NetworkingGenerally this went well. The general architecture is:
The trick is to set this all up from bottom to top and to have it all work at the end. You have to do it that way so each piece can connect to the piece before. The RDS instanceSee above. No major tricks here. EC2 & HAProxyThis is running on an EC2 micro instance that's built from a saved AMI. Just launch that AMI:
Launch! Once launched, ssh into the instance...
...and tweak the proxy settings to point to the RDS instance. (see bash history in the AMI for details) Restart HAProxy for good measure and check its logs. They should say almost nothing. Check that you can use ELB Target GroupsCreate a target group on port 5432 and register the EC2 instance as a target:
Elastic Load Balancer
It may take a moment to provision (note the "State" field). Even once it's live, it can take a minute, but eventually you'll be able to use psql to connect directly to the DNS name. Route 53This part is easy. Just set up an A record as an alias to the ELB. Remember that subdomains aren't private, so use codenames here if needed. Once it's done, you should be able to Set up ReplicationReplication Ingress and EgressThere are two steps. First, you have to allow the client server's IP address for inbound and outbound traffic. Get their IP and allow it. Second, you have to allow inbound traffic from the external IP address of the new client RDS server. You can get that IP address by pinging it from your laptop. Something like:
The above is done in the Security Group settings. Set up replication
|
In a few days, we launch our replication system, and we have one other client so far that's ready to turn it on. This is great! But we need to be better at setting people up. Our first client helped us a lot along the way, our second will probably find more issues, but our third needs it to be smooth, and our second needs to have formal documentation.
So, lets:
The text was updated successfully, but these errors were encountered: