Hi Swapnil, I do not think using HAProxy with AWS load balancer is a good approach.
According to the AWS load balancer architecture, IMO we may need to create a load balancer per cluster. The reason is that an AWS load balancer instance could only have one set of port mappings and one set of members. This maps to a cluster in Stratos. DNS based domain mappings can be used for handling hostnames. Thanks On Sat, May 23, 2015 at 9:56 PM, Swapnil Patil <swapnil.r...@gmail.com> wrote: > Hi Imesh, > > Thanks for the feedback. > > 1. OK, I will do the changes accordingly and share the updated design > document. > > 2. As mentioned in the proposal, as AWS load balancer cannot route > traffic based on the hostname field of the request, we need to use HA Proxy > between AWS load balancers (one per cluster) and requests. > So configure() method of AWSLoadBalancer will create updated config > file of HAProxy, along with creating/updating AWS load balancers. So I > thought instead of putting the code to create HA Proxy config file here in > configure() method, it is better if we have a separate config writer class > say AWSHAProxyCofigWriter. > > Could you please let me know if this is OK or we need to change our > approach? > > Okay, I will fork the Stratos repository and make changes there. > > Thanks and Regards, > Swapnil > > On Sat, May 23, 2015 at 8:56 AM, Imesh Gunaratne <im...@apache.org> wrote: > >> Hi Swapnil, >> >> Thanks for the update, regarding the class diagram: >> >> - We have now removed active instances count from Requests In Flight >> autoscaling factor. You may need to update your statistics reader classes >> accordingly. >> - Why do we have haproxy related classes in this? >> - Other classes and relationships look ok. >> >> It would be great if you could commit your code to a public git >> repository and send us the link. Then it will be easier for us to review >> the code and provide feedback as early as possible. >> >> Thanks >> >> On Fri, May 15, 2015 at 5:02 PM, Swapnil Patil <swapnil.r...@gmail.com> >> wrote: >> >>> Hi, >>> >>> Here is the update for this week. >>> >>> 1. I designed a UML diagram and have shared it. Waiting for feedback. >>> 2. Setting up Stratos on my local machine. I also plan to try HAProxy >>> extension as well. So I am currently configuring Stratos. I have installed >>> all the prerequisites and configured puppet. >>> >>> Next steps will be completing Stratos setup, try HAProxy extension and >>> also work on design suggestions if any. >>> >>> Please let me know If there is anything else that you would like me to >>> focus on. >>> >>> Thanks and Regards, >>> Swapnil >>> >>> On Thu, May 14, 2015 at 8:26 AM, Imesh Gunaratne <im...@apache.org> >>> wrote: >>> >>>> Thanks Swapnil! We will review it and get back to you soon. >>>> >>>> On Wed, May 13, 2015 at 8:49 PM, Swapnil Patil <swapnil.r...@gmail.com> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I have completed UML diagram for the project. Please find it attached. >>>>> >>>>> I would appreciate any suggestions for improvements. >>>>> >>>>> Thanks and Regards, >>>>> Swapnil >>>>> >>>>> On Sun, May 10, 2015 at 3:30 PM, Swapnil Patil <swapnil.r...@gmail.com >>>>> > wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I need to start working on design documentation. Before that just >>>>>> wondering what kind of documentation is needed like class diagram, >>>>>> workflow >>>>>> diagram etc. >>>>>> >>>>>> Thanks and Regards, >>>>>> Swapnil >>>>>> Thank you Udara! >>>>>> >>>>>> I will go ahead with 14. >>>>>> >>>>>> Thanks and Regards, >>>>>> Swapnil >>>>>> >>>>>> On Thu, May 7, 2015 at 1:47 PM, Udara Liyanage <ud...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I am running Stratos on Ubuntu 14 currently. It works fine. Earlier >>>>>>> there were an issue when installing puppet on 14(May be this is why the >>>>>>> earliest version is not mentioned as the recomended). I don't think it >>>>>>> still exist. >>>>>>> >>>>>>> On Thu, May 7, 2015 at 1:45 PM, Swapnil Patil < >>>>>>> swapnil.r...@gmail.com> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I am trying to setup Stratos. As per the documentation [1], we need >>>>>>>> Ubuntu 12.04 64 bit server version. Just wondering if it is OK to use >>>>>>>> Ubuntu 14.04 64 server instead of 12.04? >>>>>>>> >>>>>>>> [1] : >>>>>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Prerequisites >>>>>>>> >>>>>>>> Thanks and Regards, >>>>>>>> Swapnil >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Udara Liyanage >>>>>>> Software Engineer >>>>>>> WSO2, Inc.: http://wso2.com >>>>>>> lean. enterprise. middleware >>>>>>> >>>>>>> web: http://udaraliyanage.wordpress.com >>>>>>> phone: +94 71 443 6897 >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Imesh Gunaratne >>>> >>>> Senior Technical Lead, WSO2 >>>> Committer & PMC Member, Apache Stratos >>>> >>> >>> >> >> >> -- >> Imesh Gunaratne >> >> Senior Technical Lead, WSO2 >> Committer & PMC Member, Apache Stratos >> > > -- Imesh Gunaratne Senior Technical Lead, WSO2 Committer & PMC Member, Apache Stratos