Re: integrating haproxy with stratos

2014-06-09 Thread Parvez Shaikh
One more question, haproxy frontend always binds itself to 127.0.0.1: for backend auto scaled VMs. haproxy.cfg gets updated with following entries - frontend xyz.xyz.domain-host-127.0.0.1-proxy-8280 *bind 127.0.0.1:8280 * mode http default_backend xy

Re: integrating haproxy with stratos

2014-06-09 Thread Parvez Shaikh
Hi I am observing that haproxy processes kept on spawning.after every one minute - Starting haproxy extension... [2014-06-09 01:57:45,565] INFO - [Main] HAProxy extension started [2014-06-09 01:57:45,620] INFO - [LoadBalancerExtension] Load balancer extension started [2014-06-09 01:57:45,667]

Re: integrating haproxy with stratos

2014-06-09 Thread Nirmal Fernando
Yes, Chris, most of these seems to be not there in wiki. On Mon, Jun 9, 2014 at 12:49 PM, chris snow wrote: > Hi Nirmal, does any of this information need to get added to the wiki? > > On Mon, Jun 9, 2014 at 8:13 AM, Nirmal Fernando > wrote: > > Yes, correct! > > > > > > On Mon, Jun 9, 2014 at

Re: integrating haproxy with stratos

2014-06-09 Thread chris snow
Hi Nirmal, does any of this information need to get added to the wiki? On Mon, Jun 9, 2014 at 8:13 AM, Nirmal Fernando wrote: > Yes, correct! > > > On Mon, Jun 9, 2014 at 12:38 PM, Parvez Shaikh > wrote: >> >> it worked, there seems to be some parameters in our haproxy.cfg which is >> upsetting

Re: integrating haproxy with stratos

2014-06-09 Thread Nirmal Fernando
Yes, correct! On Mon, Jun 9, 2014 at 12:38 PM, Parvez Shaikh wrote: > it worked, there seems to be some parameters in our haproxy.cfg which is > upsetting this extension. On using default haproxy.cfg.template, it worked! > :-) > > Can someone confirm, if following understanding that ports from

Re: integrating haproxy with stratos

2014-06-09 Thread Parvez Shaikh
it worked, there seems to be some parameters in our haproxy.cfg which is upsetting this extension. On using default haproxy.cfg.template, it worked! :-) Can someone confirm, if following understanding that ports from port mapping section of autoscaled cartridge are used by haproxy extension in th

Re: integrating haproxy with stratos

2014-06-08 Thread Parvez Shaikh
Thanks Nirmal, it worked, however I am seeing an exception on the console as follows - [2014-06-08 23:08:02,151] ERROR - [HAProxy] Could not start haproxy [2014-06-08 23:08:02,152] ERROR - [LoadBalancerExtension] Could not start load balancer org.apache.stratos.load.balancer.extension.api.excepti

Re: integrating haproxy with stratos

2014-06-08 Thread Nirmal Fernando
connectionfactoryName=TopicConnectionFactory Please use above as the connection factory name. On Mon, Jun 9, 2014 at 9:01 AM, Parvez Shaikh wrote: > I downloaded activemq-5.9.jar from > http://activemq.apache.org/activemq-590-release.html and put that jar in > lib directory of HAPROXY_EXTENSIO

Re: integrating haproxy with stratos

2014-06-08 Thread Parvez Shaikh
I downloaded activemq-5.9.jar from http://activemq.apache.org/activemq-590-release.html and put that jar in lib directory of HAPROXY_EXTENSION home. I am seeing following message - [2014-06-08 21:18:08,060] ERROR - [TopicSubscriber] Error while subscribing to the topic: topology javax.naming.Name

Re: integrating haproxy with stratos

2014-06-08 Thread Nirmal Fernando
Sorry Parvez, we seems to lack documentation on this aspect. You need to add following jars, to lib directory; org.apache.geronimo.specs geronimo-j2ee-management_1.1_spec 1.0.1 org.fusesource.hawtbuf hawtbuf 1

Re: integrating haproxy with stratos

2014-06-08 Thread Parvez Shaikh
I think we're using ActiveMQ as message broker, is there an easy or quick way to confirm that? Meanwhile the error changed - javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException

Re: integrating haproxy with stratos

2014-06-08 Thread Nirmal Fernando
Hi Parvez, Seems like the extension code is broken. Are you using ActiveMQ as the message broker? If so please replace your jndi.properties file with following; connectionfactoryName=TopicConnectionFactory java.naming.provider.url=tcp://localhost:61616 java.naming.factory.initial=org.apache.activ

Re: integrating haproxy with stratos

2014-06-08 Thread Parvez Shaikh
Thanks Imesh, While it resolved unable to load jndi.properties [2014-06-08 20:22:31,624] ERROR - [TopicSubscriber] Error while subscribing to the topic: topology javax.jms.JMSException: Error creating connection: Unable to Connect at org.wso2.andes.client.AMQConnectionFactory.createConnec

Re: integrating haproxy with stratos

2014-06-08 Thread Imesh Gunaratne
Issue reported: https://issues.apache.org/jira/browse/STRATOS-668 Thanks On Sun, Jun 8, 2014 at 10:45 PM, Imesh Gunaratne wrote: > Hi Parvez, > > Welcome to Stratos, its really nice to hear that you are experimenting > with Stratos. > > Regarding the issue you encountered, it seems like there

Re: integrating haproxy with stratos

2014-06-08 Thread Imesh Gunaratne
Hi Parvez, Welcome to Stratos, its really nice to hear that you are experimenting with Stratos. Regarding the issue you encountered, it seems like there is an invalid entry in the jndi.properties file shipped with the HAProxy extension package. Please open /conf/jndi.properties file and update ja

integrating haproxy with stratos

2014-06-08 Thread Parvez Shaikh
Hi experts, I am new to stratos and exploring on how to integrate existing haproxy cartridge with stratos. I am referring https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Configuring+HAProxy+Load+Balancer After following steps mentioned in the link when I run haproxy-extension.sh, I am