读书人

GlassFish集群配备

发布时间: 2012-11-08 08:48:11 作者: rapoo

GlassFish集群配置
Admin Console Series: Create and Start ClustersGlassFish集群配备 This is the first of the Admin Console Series which will cover different topic or functions in GlassFish V2,? and show you? how to accomplish a special task in Admin Console.Thistime, we create a domain with? cluster profile and then create acluster with 2 instances? running on 2 different machines.? I assumeyou have downloadedand installed a copy of GlassFish V2.?? You will need to installGlassFish on all the machines where you want your instance running.Youcan? find the step by step instructions below,? but? it maybe better tosee this in action. So, just click the Screen Cast on the left andenjoy !!1.? Install and create domain with cluster profile Download GlassFish and Install it on your machine where you want you want your DAS and instances running From now on, the following instructions assumes your DAS is running on DasMachineinstance 1 running on FirstMachineinstance 2 running on SecondMachine Ifyou do not have Cluster profile (ie, if you didn't runsetup-cluster.xml during installation), create the cluster profile onDasMachine create-domain --profile cluster --adminport 4848 domainEE Start your cluster profile domain start-domain domainEE2.? Create and start Node Agents Createa node agent and then start the node agent on the machine where youwant your first instance to run on.? These 2 commands need to beexecuted on FirstMachine. create-node-agent --host DasMachine --port 4848 agentOnFirststart-node-agent agentOnFirst Createa node agent and then start the node agent on the machine where youwant your second instance to run on.? These 2 commands need to beexceuted on SecondMachine create-node-agent --host DasMachine --port 4848 agentOnSecondstart-node-agent agentOnSecond3.? Create and start Cluster with Admin ConsoleLogin to Admin Console:?? http://DasMachine:4848 Create a cluster Click? to the Cluster node on the treeClick on the New ButtonEnter the cluster name Click New button on the Server Instance table: Enter the name of the server instance, and select the agentOnFirst for the Node agent Click New button again, Enter the name of the second server instance, and select the agentOnSecond for the Node agentClick OKselect this newly created cluster by clicking the first column check box, and then click the Start Cluster button.?? This will start the cluster for you.Clickon the cluster name on the table, it will bring you to the general pageof the Cluster.?? Explore the tabs of this cluster.Congratulation !!? You have just created a cluster with 2 instances running on 2 different machines.

读书人网 >软件架构设计

热点推荐