Clio frontend
====

Analyzed Historical Postgres Query Logs

This is the web app, front end of clio. The application utilizes sqs and rds. A cron job runs daily to collect PostgreSQL logs for a specified amount of time, configured in puppet. Once the datacollection is finished running, an sqs message is sent to the data-dev box that will analyze the logs. If you configure the datacollection to run for 30 minutes, it typically collects logs for double the amount of time you wanted it to. The datadev box is listening to the sqs queue to pick up jobs. If the analysis is running already, the sqs message will be wait in the sqs queue to be picked up. We do not allow concurrent analysis jobs. 

For the backend process reference, https://git-aws.internal.justin.tv/d8a/healthcheck


[Initial Design](https://docs.google.com/a/justin.tv/document/d/1EUveTXMypO05r5_xaDKmKha22tFDQCQ0z8_dRKSubgw/edit?usp=sharing)


POST : http://host:port/snapshots/rds_input to run sqs poll

This is application deployed through elastic beanstalk. To view the application 
clio.elasticbeanstalk.com

clio is not viewable currently through vpn due to s3 trying to host html files through public internet.

Deployment
====
Once master branch changes to the files will be zipped up and a tarballed which is uploaded to the beanstalk environment's s3 bucket. To Deploy the New code you will visit `https://us-west-2.console.aws.amazon.com/elasticbeanstalk/home?region=us-west-2#/application/versions?` and choose to deploy your new version
