users@glassfish.java.net

Domains vs. instances, mysql replication in cluster.

From: <glassfish_at_javadesktop.org>
Date: Sat, 19 Apr 2008 06:01:58 PDT

Hello everybody,
I have lost my job as php/perl/apache admin and now I have got new one as Java EE/glassfish admin. But there is a problem I’m total newbie to glassfish. I have read most of the lengthy manuals Sun provides (with only some understanding) so I’m having more questions then answers and big headache. Glassfish is full of terms which did not existed in apache world.
I need a little advice from somebody with experience. Company has Java EE developers which are working on one server and production Enterprise applications deployed on the same server. Server is running Linux FC5, latest glassfish v2, and apache 2.2.x. in developer profile. Now company wants to have some kind of backup.
So data from one server would be backup to second, and if one fails second can pick up.
Two servers have been bought, I have already installed FC5 with apache 2.2.2-1.2 (rpm) newest glassfish v2, mysql 5.0.x.
Developer/production server (leased) will be terminated shortly. We will have more clients shortly and developers have to be separated from production.
Reading SUN manual I figured out that I should install cluster (on 2 new servers).
1) Cluster will take care of backing up all the applications to both servers, so I will not have to backup it manually ?
2) If load balancing module be added do apache 2.2.x I will have failover functionality ?
3) How should I proceed when it comes to separating developer from production, should I created one domain for developers and another for production, or maybe all should be in one domain and developers should work in one instance and production in second instance (each instance would work on both servers in cluster). I having a problem between full comprehending when to multiply domains and when to multiply instances. Does multiplying instances means using more RAM (because as I understand each instance have separate JVM) and domains would work on the same JVM ? Servers have only 2GB of RAM each.
4) In each domain different services have different ports 4848, 8080, 7676, etc. Do each service have to have different pots in different instances too ? Clients will not be managing their applications.
5) Do instances share JDNI or more like in domains they are separated.
6) Is it difficult to implement load balancing with apache on Fedora, do I have to patch apache and reinstall it form source ?
7) What about mysql database which is used by EAR application. Will cluster take care of replicating it ? When request comes and server A answers, records are added to mysql on server A, next request comes and is being answered by server B and hence record is added to mysql on server B. Will I have two heterogeneous databases ?

Any suggestion to any of my questions will be very appreciated.
Regards to you all.
[Message sent by forum member 'chenin' (chenin)]

http://forums.java.net/jive/thread.jspa?messageID=270175