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

Load balancing on heroku #276

Open
ddfridley opened this issue Sep 30, 2020 · 1 comment
Open

Load balancing on heroku #276

ddfridley opened this issue Sep 30, 2020 · 1 comment
Labels
Node Requires a Node Developer

Comments

@ddfridley
Copy link
Contributor

In order to scale up for the Nov 2020 elections, we need to have the ability to do load balancing on heroku, as a tool in our pocket.

We are not looking for the perfect solution, just something what we can implement in the short term that works.

The head of the load balancer will need to be the cc.enciv.org domain, but we will need to test with another domain name before we switch over.

While we are doing load balancing, we will still need to support HTTPS.

Multiple undebate severs will spin up and connect to the same Mongo database URI. The proxy/redirect will distribute requests to the undebate servers in a round robin fashion (or whatever is simplest), without trying to figure out the load.

When a user visits a URL, would we proxy the request to the undebate server, or would we redirect? What's works, what's fastest to implement.

Would NGINX be a good choice.

@ddfridley ddfridley added the Node Requires a Node Developer label Sep 30, 2020
@ddfridley
Copy link
Contributor Author

Turns out we were able to do really well putting a reveres cashing CDN in front of the sever and didn't have to change the server at all.

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

No branches or pull requests

1 participant