**To implement a load balanced learnexa environment, we had a look at the following areas -** What is the current cost of the solution and how does it compare with other offerings in the marketplace?\\ What are the options available for implementing a load balanced / fault tolerant solution?\\ What is the best possible solution?\\ Estimated Cost of implementing the solution\\ **Comparing the cost of the current setup at different Service providers** |Purpose and Configuration|Opsource|HP Cloud|Rackspace Cloud|AWS (1 Year Reserved)|AWS (on demand)| |Prodapp01- 2 CPU, 4 GB Ram, 10 GB storage + 50 GB persistent storage|143|102|175|50|88| |prddb-mast01 - 2 CPU, 4 GB RAM, 10 GB storage + 150 GB persistent|160|102|175|50|88| |prddb-slav01 - 2 CPU, 2 GB RAM, 10 GB + 150 GB persistent|150|75|95|50|88| |prodcollab01 - 4 CPU, 4 GB RAM, 10 GB + 100 GB persistent|213|204|200|199|351| |webserver - 2 CPU, 2 GB RAM, 10 + 20 GB persistent|100|75|80|50|88| |stagecollab01 - 2 CPU, 4 GB RAM, 10 GB + 50 GB persistent|143|102|175|50|88| |Plan Cost|909|660|908|449|815| |discounts|175|0|0|0|0| |Monthly cost|734|660|908|449|815| |One time fee|0|0|0|1072|0| |Annual Cost|8808|7920|10896|6460|9780| Sources -\\ https://www.hpcloud.com/pricing\\ http://aws.amazon.com/ec2/#pricing\\ http://www.opsource.net/Services/Cloud-Hosting/Pricing\\ http://www.rackspace.com/cloud/servers/pricing/\\ **What are the options available for implementing a solution?**\\ (1) Using a hardware loadbalancer like Cisco ASA\\ (2) Load balancer provided by service provider\\ AWS or Opsource provides a hardware load balancer or through their marketplace offers software load balancers. The typical costs are at around USD 100 /month with some variable costs which are hard to estimate now.\\ (3) Configuring our own\\ **Optimal Solution**\\ At a high level\\ (1) We provide a host name for the customer to add in his DNS.\\ (2) currently we are redirecting *.learnexa.com to a specific IP address.\\ (3) we will follow the instructions as per the link given\\ http://www.opsource.net/video/Part-4-of-8-Cloud-Load-Balancing-Building-a-Multi-tier-Cloud-Application\\ **Immediate implementation steps at Opsource**\\ (1) Build another app server Prodapp02\\ (2) Start the virtual IP configuration by going to Network configuration -> VIP\\ https://community.opsourcecloud.net/View.jsp?procId=31d3aef896d6e01e4cc8ac174fdc01c4 (3) Click on the physical servers tab and Prodapp01 and Prodapp02.\\ (4) Configure the probes which will keep checking the servers every (options with screenshots will be added shortly).\\ (5) Configure a server farm with options as per screenshot.\\ (6) Configure the virtual IP with the target as the server farm containing two physical servers prodapp01 and prodapp02.\\ (7) Save and test the configuration.\\ (8) Create customerxx.learnexa.com name in learnexa.com\\ *.learnexa.com\\ customerxx.learnexa.com\\ customeryy.learnexa.com\\ will point to the same single ip of the load balancer in Opsource.\\ Some sample suggestions -\\ http://stackoverflow.com/questions/975877/how-to-give-cname-forward-support-to-saas-software\\ http://stackoverflow.com/questions/2622740/how-to-handle-session-domains-in-a-cname-forward-supporting-rails-saas-software\\ http://httpd.apache.org/docs/2.2/vhosts/mass.html\\ (9)Apache configuration\\ \\ will serve folder 1\\ \\ will serve folder 2\\ Currently based on IP based virtual hosts are serving specific folders.\\ The new setup based on cname approach will use Name based virtual hosting and serve contents from their own folders.\\ (10) both the servers prodapp01 and prodapp02 will have the same folders / content and structure.\\ customerxx.learnexa.com\\ customeryy.learnexa.com\\ will both be available in these servers.\\ Confirmed from Opsource that this is part of the growth package and it is a hardware load balancer.\\ **Estimated Cost for implementing the solution**\\ |Role|Configuration|Opsource|AWS|AWS(on demand)|HP Cloud*| |Prodapp |4 CPU 8 GB RAM|280|41|175.80|204.40| |Proddb |8 CPU 12 GB RAM|486|82|351.36|408.80| |DB slave server| 2 CPU 4 GB RAM|185|21|87.84|102.20| |Collab server |4 CPU 8 GB RAM|285|82|175.68|204.40| |search server |4 CPU 8 GB RAM|285|82|175.68|204.40| |Add ons| |0|900|262|0| |discounts| |320|0|0|0| |Monthly| |1206|623|1228|1125| |One time| |0|5577|0|0| |Annual Cost| |14472|13047|14736|13500| * HPCloud - Load balancer is a software load balancer. No pricing information is available. **To be added--**\\ (1) Estimated Timeline to implement the above Solution\\ Building up another app server and setting up the deployment and maintenance processes - duration for that needs to be verified from Uday.\\ As soon as the second app server is ready, the load balanced configuration can be implemented.\\