<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On a few occasions, Daniel has mentioned running a LNT instances from a PaaS cloud. A while back I decided to see if that is possible. I am happy to report it is.<div class=""><br class=""></div><div class="">In <font face="Helvetica Neue" class="">r210134 I made the necessary changes to allow LNT to run on the Heroku PaaS cloud.</font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><font face="Helvetica Neue" class=""><a href="https://www.heroku.com" class="">https://www.heroku.com</a></font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><font face="Helvetica Neue" class="">The commit is all configuration changes to instruct the cloud on how to run the app. I have a live instance of LNT here:</font></div><div class=""><font face="Helvetica Neue" class=""><br class=""></font></div><div class=""><div class=""><a href="http://llvm-lnt.herokuapp.com/" class="">http://llvm-lnt.herokuapp.com/</a></div><div class=""><br class=""></div><div class="">Some of the reasons I think this is a good idea:</div><div class=""> - you don’t maintain the infrastructure,</div><div class=""> - this is a much higher reliability setup,</div><div class=""> - it is probably faster,</div><div class=""> - you can scale it indefinitely,</div><div class=""> - collaboration on the LNT installation is easy.</div><div class=""><br class=""></div><div class="">The setup I built uses 1 Heroku “dyno” (a unit of compute power) and 1 database. This setup falls into the Heroku free category so they are not charging me to run it, although real use would push it into the pay categories.</div><div class=""><br class=""></div><div class="">The cloud configuration makes the web servers and database separate. The web servers are stateless, spawned on http requests, and sleep during periods of inactivity. They can also move between machines transparently. The database is a high availability Postgres cluster.</div></div><div class=""><br class=""></div><div class="">If anyone else would like to make their very own instance, all you need to do is approximatly follow the instructions for setting up Heroku for a flask app:</div><div class=""><br class=""></div><div class=""><a href="https://devcenter.heroku.com/articles/getting-started-with-python" class="">https://devcenter.heroku.com/articles/getting-started-with-python</a></div><div class=""><br class=""></div></body></html>