ubergeek42 / domjudge-aws

A set of scripts for running a DOMjudge cluster on AWS
3 stars 1 forks source link

Load balancing #1

Open JPMallow opened 8 years ago

JPMallow commented 8 years ago

Hi,

How many instances it will create in AWS. Is it straight forward to setup the load balancer for both judgehost and domserver or should I need to do anything specially for this?

ubergeek42 commented 8 years ago

For the DOMjudge Webserver: I believe the default is 1 instance and it will scale up to 4 as needed. This can be adjusted in the terraform-domserver/webservers.tf file. Look for the min_size and max_size variables.

Under the hood all instances are associated with an elastic load balancer and part of an autoscaling group.

For the judgehosts You'll get as many as you specify in the terraform configuration for min_judgehosts. There is some basic support for scaling these up based on the submission load, but I would consider it experimental at the moment. If you are planning on using this right now I would set min_judgehosts and max_judgehosts to the same value to prevent any automatic scaling from happening.

There's nothing special for you to do other than to follow all the instructions(there are a lot of manual steps at this point). I'm working on a rather large rewrite of most of this repository but it should still be usable.

Let me know if you have any more questions.

JPMallow commented 8 years ago

Actually, we are modifying the DomJudge code and will deploy once we complete that. As of now, your response were fine. I will get back if anything in future.