Re: Jetspeed-2 Clustering

2005-01-29 Thread David Sean Taylor
Andre Bonhote wrote:
Hi!
It's my first post, and I am completely new to Jetspeed, so bear with me
please.
The idea is to deploy a portal on n machines, where n is 4 at the
moment. We would like to have some pretty load balancers in front of
them, the boxes are located in two countries. As this is usual for good
portals, the user/customer should not care about where he is.
The jetspeed-2 installation will access an oracle 10 database. Now
there's my question: Since it doesn't make sense (IMHO) to put the
oracle beast on all the 4 machines, is it possible to have all 4
jetspeed installations access the same database? Or even, the same
tablespace? Or do I have to create users for each server?
I have clustered Jetspeed 1.6-dev and 1.5 in several installations.
Jetspeed-2 is not quite cluster ready, but I think it was designed much 
better than Jetspeed-1 for clustering. Many of the components already 
persist their state in a database, so therer is not a lot of need for 
tweaking the implementations like we had to do in 1.6.

The plan is to work on clustering for the final release.
Current problems I see with Jetspeed-2 and clustering:
* PSML stored on the file system
* lots of use of the session
* cache synchronization on a number of components
Is there a clustering guide somewhere? I am quite stuck at the moment,
to be honest.
Thanks for your kind help in advance
Cheers
André


--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Jetspeed-2 Clustering

2005-01-27 Thread Andre Bonhote
Hi!

It's my first post, and I am completely new to Jetspeed, so bear with me
please.

The idea is to deploy a portal on n machines, where n is 4 at the
moment. We would like to have some pretty load balancers in front of
them, the boxes are located in two countries. As this is usual for good
portals, the user/customer should not care about where he is.

The jetspeed-2 installation will access an oracle 10 database. Now
there's my question: Since it doesn't make sense (IMHO) to put the
oracle beast on all the 4 machines, is it possible to have all 4
jetspeed installations access the same database? Or even, the same
tablespace? Or do I have to create users for each server?

Is there a clustering guide somewhere? I am quite stuck at the moment,
to be honest.

Thanks for your kind help in advance

Cheers

André


-- 
___ ___ ___ ___
\C/ \O/ \L/ \T/   Andre Bonhotet: +41 (0)1 5 600 600
 V   V   V   VPlatform Infrastructure  f: +41 (0)1 5 630 501
we make business  Senior Engineer
straight.forward  COLT Telecom e: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jetspeed-2 Clustering

2005-01-27 Thread Dan Moore
Hi Andre,

I want to preface this with the fact that I haven't clustered JS2, nor
JS1.  In fact, I don't even use JS2.

That said, I wanted to comment on how I'd design this system, or at
least start.

--- Andre Bonhote [EMAIL PROTECTED] wrote:

 Hi!
 
 It's my first post, and I am completely new to Jetspeed, so bear with
 me
 please.
 
 The idea is to deploy a portal on n machines, where n is 4 at the
 moment. We would like to have some pretty load balancers in front of
 them, the boxes are located in two countries. As this is usual for
 good
 portals, the user/customer should not care about where he is.
 
 The jetspeed-2 installation will access an oracle 10 database. Now
 there's my question: Since it doesn't make sense (IMHO) to put the
 oracle beast on all the 4 machines, is it possible to have all 4
 jetspeed installations access the same database? Or even, the same
 tablespace? Or do I have to create users for each server?

You shouldn't have to create database users for each server.  You
should be able to set up oracle to live on a fifth box, and have each
JS server connect over tcp/ip.  Set up your tnsnames.ora on each box
and it should be easy.

 Is there a clustering guide somewhere? I am quite stuck at the
 moment,
 to be honest.

If I were to want to cluster JS2, I'd first make sure tomcat was
sharing session information across the cluster:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
(this message will provide some comfort, but I'm not sure if it applies
to JS2
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=500554)

Then I'd disable the data cache of JS2, if there is any.  You can test
that easily enough if you get two boxes running with a simple portlet
that changes a row in the db--see if the other change is reflected.

Now, this will of course hurt performance, since you'll be accessing
data across the network every time, but it's a cheap way to cluster. 
I'm really not sure what the JS2 data layer looks like.  Checkt that'
it looks like it might be Torque from the docs on the site.  In that
case, you'll probably be interested in this document:
http://db.apache.org/torque/managers-cache.html
which might help you use torques cache in a clustered environment.
(Not sure what version of torque is being used, though.) 

Also, I'd recommend you develop, or at the very least test, with at
least two machines, as having a dev environment similar to production
can save you a lot of grief.

Good luck and let us know how it goes.

Dan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jetspeed-2 Clustering

2005-01-27 Thread Jeff Sheets
I know in Jetspeed 1 there is JMS messaging support that is supposed
to help clustering.  I haven't used it though.

Here's a link:  http://portals.apache.org/jetspeed-1/messaging.html


On Thu, 27 Jan 2005 07:58:42 -0800 (PST), Dan Moore [EMAIL PROTECTED] wrote:
 Hi Andre,
 
 I want to preface this with the fact that I haven't clustered JS2, nor
 JS1.  In fact, I don't even use JS2.
 
 That said, I wanted to comment on how I'd design this system, or at
 least start.
 
 --- Andre Bonhote [EMAIL PROTECTED] wrote:
 
  Hi!
 
  It's my first post, and I am completely new to Jetspeed, so bear with
  me
  please.
 
  The idea is to deploy a portal on n machines, where n is 4 at the
  moment. We would like to have some pretty load balancers in front of
  them, the boxes are located in two countries. As this is usual for
  good
  portals, the user/customer should not care about where he is.
 
  The jetspeed-2 installation will access an oracle 10 database. Now
  there's my question: Since it doesn't make sense (IMHO) to put the
  oracle beast on all the 4 machines, is it possible to have all 4
  jetspeed installations access the same database? Or even, the same
  tablespace? Or do I have to create users for each server?
 
 You shouldn't have to create database users for each server.  You
 should be able to set up oracle to live on a fifth box, and have each
 JS server connect over tcp/ip.  Set up your tnsnames.ora on each box
 and it should be easy.
 
  Is there a clustering guide somewhere? I am quite stuck at the
  moment,
  to be honest.
 
 If I were to want to cluster JS2, I'd first make sure tomcat was
 sharing session information across the cluster:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
 (this message will provide some comfort, but I'm not sure if it applies
 to JS2
 http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=500554)
 
 Then I'd disable the data cache of JS2, if there is any.  You can test
 that easily enough if you get two boxes running with a simple portlet
 that changes a row in the db--see if the other change is reflected.
 
 Now, this will of course hurt performance, since you'll be accessing
 data across the network every time, but it's a cheap way to cluster.
 I'm really not sure what the JS2 data layer looks like.  Checkt that'
 it looks like it might be Torque from the docs on the site.  In that
 case, you'll probably be interested in this document:
 http://db.apache.org/torque/managers-cache.html
 which might help you use torques cache in a clustered environment.
 (Not sure what version of torque is being used, though.)
 
 Also, I'd recommend you develop, or at the very least test, with at
 least two machines, as having a dev environment similar to production
 can save you a lot of grief.
 
 Good luck and let us know how it goes.
 
 Dan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jetspeed-2 Clustering

2005-01-27 Thread Dan Moore
That's a great point.  With any setup, you're going to want to be sure
that the PSML and Registry data is shared, especially if it's going to
be changed.  If JS2 doesn't have JMS support, you might be able to
store this data in your Oracle database.

Dan

--- Jeff Sheets [EMAIL PROTECTED] wrote:

 I know in Jetspeed 1 there is JMS messaging support that is supposed
 to help clustering.  I haven't used it though.
 
 Here's a link:  http://portals.apache.org/jetspeed-1/messaging.html
...snip...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jetspeed-2 Clustering

2005-01-27 Thread Andre Bonhote
Guys,

Keep answering, you're making my day. It's a hell lot of information,
and I am happy to learn about all that!

Thanks a lot!

André (pleased to get so much feedback)


-- 
___ ___ ___ ___
\C/ \O/ \L/ \T/   Andre Bonhotet: +41 (0)1 5 600 600
 V   V   V   VPlatform Infrastructure  f: +41 (0)1 5 630 501
we make business  Senior Engineer
straight.forward  COLT Telecom e: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]