Sandeep | 1 Mar 2005 10:19
Picon
Favicon

Clustering & load balancing


I need my ISOServer to handle a very high no of simultaneous requests
(around 5000) .... how do i implement clustering / load balancing in
the application ? How would software loadbalancing fare compared to
Hardware load balancing in this kind of situation ... 

 
mark_l_salter | 1 Mar 2005 10:45

Re: AmexChannel & AmexATMEPackager classes required .. urgent


> I guess I can try to speak to them and talk this through with 
them.  I
> will wait to see if there is any interest before spending time 
trying
> to though.
> 
> --Mark

Sandeep, do you have any interest in this code?  I have contacted 
Amex and am awaiting a response from their legal people.

--Mark

 
Sandeep | 1 Mar 2005 10:57
Picon
Favicon

Re: AmexChannel & AmexATMEPackager classes required .. urgent


--- In jpos-dev@..., "mark_l_salter" <marksalter <at> d...> wrote:
> 
> 
> > I guess I can try to speak to them and talk this through with 
> them.  I
> > will wait to see if there is any interest before spending time 
> trying
> > to though.
> > 
> > --Mark
> 
> Sandeep, do you have any interest in this code?  I have contacted 
> Amex and am awaiting a response from their legal people.
> 
> --Mark

 Actually I had some code which used this API ... but it was just some
testing i was doing and don't actually require it any more 

Regards
Sandeep

 
mark_l_salter | 1 Mar 2005 15:30

Re: AmexChannel & AmexATMEPackager classes required .. urgent


> 
>  Actually I had some code which used this API ... but it was just 
some
> testing i was doing and don't actually require it any more 
> 
> Regards
> Sandeep

May I ask how you came across this API?

--Mark

 
Sandeep | 1 Mar 2005 17:26
Picon
Favicon

Re: AmexChannel & AmexATMEPackager classes required .. urgent


--- In jpos-dev@..., "mark_l_salter" <marksalter <at> d...> 
wrote:
> 
> > 
> >  Actually I had some code which used this API ... but it was 
just 
> some
> > testing i was doing and don't actually require it any more 
> > 
> > Regards
> > Sandeep
> 
> May I ask how you came across this API?
> 
> --Mark

I don't remember where i came across this API .... was researching 
for jpos related stuff on the net ..

 
Alejandro Revilla | 1 Mar 2005 19:11
Favicon
Gravatar

Re: Clustering & load balancing


> 
> I need my ISOServer to handle a very high no of simultaneous requests
> (around 5000) 
>
Are you talking about 5000 simultaneous connections (sockets) or just
5000 simultaneous request coming over a reasonable (but less than 5000)
number of connections?

If you need to handle a massive number of connections, you may consider
using short-lived connections (one per transaction), or implementing
something like QTP (http://ietfreport.isoc.org/idref/draft-cornish-qtp/).

Then you could use a multi-node jPOS cluster with any distribution
scheme (JavaSpaces, JMS, JGroups) to handle load.

--Alejandro

 
bharavi gade | 2 Mar 2005 05:17
Picon
Favicon

Re: Clustering & load balancing


Hi,

using java.nio may help in handling 5k+ connections..
It means building of new nio based ISOServer

regards,
Bharavi

--- Alejandro Revilla <apr@...> wrote:

> > 
> > I need my ISOServer to handle a very high no of
> simultaneous requests
> > (around 5000) 
> >
> Are you talking about 5000 simultaneous connections
> (sockets) or just
> 5000 simultaneous request coming over a reasonable
> (but less than 5000)
> number of connections?
> 
> If you need to handle a massive number of
> connections, you may consider
> using short-lived connections (one per transaction),
> or implementing
> something like QTP
>
(http://ietfreport.isoc.org/idref/draft-cornish-qtp/).
> 
(Continue reading)

Sandeep | 2 Mar 2005 11:34
Picon
Favicon

Getting following error on starting QServer from Q2Service


16:00:59,408 ERROR [JPOSServer] Starting failed
Q2:service=q2service,type=qbean
java.lang.NullPointerException
	at org.jpos.q2.QBeanSupport.getAttrs(QBeanSupport.java:212)
	at org.jpos.q2.iso.QServer.setPort(QServer.java:110)
	at org.jpos.mbean.JPOSServer.startService(JPOSServer.java:53)
	at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
	at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
	at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

I have the following code in a qbean JPOSServer that is
instantiated/started by Q2 from q2service.xml

Line no 52 :jposServer = new QServer();
Line no 53 :jposServer.setPort(8110);
Line no 54 :jposServer.startService();

 
Alejandro Revilla | 2 Mar 2005 11:40
Favicon
Gravatar

Re: Getting following error on starting QServer from Q2Service


> 	at org.jpos.q2.QBeanSupport.getAttrs(QBeanSupport.java:212)
> 	at org.jpos.q2.iso.QServer.setPort(QServer.java:110)
> 	at org.jpos.mbean.JPOSServer.startService(JPOSServer.java:53)
>
What's that 'JPOSServer.java' ? 

 
Sandeep | 2 Mar 2005 12:01
Picon
Favicon

Re: Getting following error on starting QServer from Q2Service


--- In jpos-dev@..., Alejandro Revilla <apr <at> j...> wrote:
> > 	at org.jpos.q2.QBeanSupport.getAttrs(QBeanSupport.java:212)
> > 	at org.jpos.q2.iso.QServer.setPort(QServer.java:110)
> > 	at org.jpos.mbean.JPOSServer.startService(JPOSServer.java:53)
> >
> What's that 'JPOSServer.java' ?

oh actually i was trying to run Qserver from a new Qbean
(JPOSServer.java weird name ) which was an incorrect way 

.. in the q2modules the Qserver comes built as a qbean which can be
easily deployed ... figured it out just now ... i hope this approach
is ok ..

 

Gmane