Skip to content
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

[prod] Geographically spread hosts #4

Open
jakubgs opened this issue Jul 25, 2019 · 2 comments
Open

[prod] Geographically spread hosts #4

jakubgs opened this issue Jul 25, 2019 · 2 comments
Assignees

Comments

@jakubgs
Copy link
Collaborator

jakubgs commented Jul 25, 2019

If we use Elastic Load Balancers we can spread the Elastic Beanstalk host across multiple geographical locations. Affects #1.

@jakubgs jakubgs self-assigned this Jul 25, 2019
@jakubgs jakubgs mentioned this issue Jul 25, 2019
8 tasks
@jakubgs
Copy link
Collaborator Author

jakubgs commented Jul 29, 2019

There is a setting in the CloudPosse module module that can do this:

  • availability_zones - Choose the number of AZs for your instances.

https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/blob/01d405201c192ee1948ea97bff6742140b1cfbba/variables.tf#L232-L235

But that's only within one region. I don't think I can easily do geographical load balancing with just ELBs. For that I'd need Route 53, but I can't use it because it doesn't support the .ps TLD.

@jakubgs
Copy link
Collaborator Author

jakubgs commented Aug 5, 2019

The issue with geographically spreading EB environments is that they still would share the storage(MongoDB), which would have to be in one geographical location, with possibly read-only replicas in other regions. Though that has the possibility of showing outdated state, though in our case with low writes it could be fine.

This could be achieved through a sharded cluster:

This could work, though usually these kinds of clusters depend on being able to shard data depending on where from it's mostly accessed, which isn't relevant to our use case.

This kind of sharded cluster setup would also require at least 3 hosts in each region for reliability, which would greatly increase costs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant