Skip to content

An elastic cluster of web servers that is able to solve sudoku puzzles, on-demand, by executing a set of Sudoku puzzle solving algorithms.

Notifications You must be signed in to change notification settings

oddeirikigland/ist-cnv-sudoku

Repository files navigation

ist-cnv-sudoku

The cloud architecture for the checkpoint consists of an Amazon EC2 instance which runs the web server as well as the tools needed for the instrumentation and collection of metrics. Additionally, a load balancer and an auto-scaling group are in use, which, for now, are created from standard Amazon services and have not been enhanced with their own code. As MSS we currently use a simple log file.

The load balancer sends the incoming requests to port 8000 where we run our webserver. The auto scaler spawn instances from an AMI image. When the CPU utilization is above 50% for a minute a new instance is launched, and when the utilization is below 20% one instance is terminated. The instances use 300 seconds to warm up.

Attention

use "source setup.sh XXX" instead of "./setup.sh XXX" to avoid mistakes with the environment variables"

Configure environment

chmod +x setup.sh
source setup.sh configure

Compile sources

source setup.sh compile

Run WebServer

source setup.sh WebServer

In case of Adress already in use error:

sudo lsof -i:8000
sudo kill <pid>

To test DynamoDB connection

java awsclient.AmazonDynamoDBSample

Check your DynamoDB console, you should now have a table with an item.

About

An elastic cluster of web servers that is able to solve sudoku puzzles, on-demand, by executing a set of Sudoku puzzle solving algorithms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published