weblogic集群例子步骤

合集下载

weblogic的集群与配置图文方法

weblogic的集群与配置图文方法

weblogic的集群与配置图⽂⽅法⼀、Weblogic的集群还记得我们在第五天教程中讲到的关于Tomcat的集群吗?两个tomcat做node即tomcat1, tomcat2,使⽤Apache HttpServer做请求派发。

现在看看WebLogic的集群吧,其实也差不多。

区别在于: 如果我们要布署我们的Web应⽤,需要分别⼿⼯往每个Tomcat的webapp⽬录⾥拷贝⽂件。

Weblogic的集群必须设⽴⼀个总控端,可从上图中看出,然后这个总控端我们把它称为AdminServer,然后在其下可以挂weblogic的集群的node,这个node不是物理上不同的两个weblogic,⽽是不同的domain,我们假设domain1, domain2为两个weblogic的集群的节点。

如果我们要布署我们的Web应⽤,只需要在总控端布署⼀次,然后挂在这个总控端下的节点将会⾃动将我们的web应⽤发布到每⼀个节点。

因此,要实现weblogic的集群必须:安装Weblogic创建⼀个AdminServer的domain在AdminServer上建⽴集群总控端分别创建每⼀个要加⼊此集群总控端的node,也是⼀个个的domain⼆、创建Weblogic集群前的规划根据第⼀节中的内容,我们将我们⽤于实验的Weblogic规划成3个domain,每个domain都包含有下列的必不可少的属性:AdminConsole(总控端) 逻辑名 物理名(domain的系统路径) 端⼝号 计器名(IP) 登录信息(username/password)Cluster node1(集群节点1) 逻辑名 物理名(domain的系统路径) 端⼝号 计器名(IP) 登录信息(username/password)Cluster node2(集群节点2) 逻辑名 物理名(domain的系统路径) 端⼝号 计器名(IP) 登录信息(username/password) 我们⽤表格列出我们将要创建的集群中总控端与每个节点的集息:物理名逻辑名端⼝号主机名(IP)登录信息\bea\user_projects\domains\adminserverAdminServer7001localhost weblogic/password_1\bea\user_projects\domains\server1mycluster17011localhost weblogic/password_1bea\user_projects\domains\server2mycluster27012localhost weblogic/password_1 规划好了,就可以开始来创建我们的集群了。

Weblogic_11g集群搭建

Weblogic_11g集群搭建

Weblogic_11g集群搭建Weblogic集群部署1.Server⽤过tomcat的朋友应该清楚,当我们有多个项⽬部署在同⼀个tomcat服务器下的时候,我们只需要启动这个tomcat就可以根据⽬录的不同,访问这些应⽤,此时我们⽤的端⼝号不需要改变。

在weblogic服务器中,⼀个server同等于⼀个tomcat。

⾸先我们在创建⼀个server的时候需要给它指定⼀个ip和端⼝(这个ip可以是⼀台远程机器的ip)。

创建好server以后,我们就可以将项⽬部署在其中了。

如果我们有多个项⽬,并且我希望每个项⽬能对应不同的端⼝,那么我们就可以通过创建多个server来实现。

有时候我们称server为'节点',所以以后听到别⼈说节点的时候也不要茫然,说的就是它了。

2.Cluster这个,就是我们本⽂要讲的重点,集群。

按照我个⼈的理解,集群就是把具有相同应⽤的⼀些server,放在⼀起,统⼀管理。

举个很简单的例⼦,就是我现在有项⽬,我分别放在三个不同的server⾥⾯(先别管我为什么放三个不同的server中)。

那么问题来了,我项⽬要有改动了怎么办?分别去各⾃的server中重新部署?别开玩笑了,万⼀不是三个是⼗个呢?万⼀不是在同⼀台机器上呢(前⾯说了,可以是⼀台远程机器)?我们带着这个问题再来看⼀下集群,放在⼀起....统⼀管理....现在明⽩了吧,这就是集群给我们带来的便利,将这些server加⼊到同⼀个集群当中,如果项⽬有变动的话,我们只需要在部署项⽬的时候,通过集群去部署,那么weblogic会⾃动帮我们将应⽤分配到各个⼦节点中。

3.domaindomian我们有时候也会把它称作为'域',他就相当于⼀个⼤的容器,⾥⾯可以存放很多server,其中有⼀个默认的server,它会随着域的启动⽽启动。

有⼀点我们必须要清楚,就是当你想要启动某个domain下的server 的时候,必须先启动这个domain。

linux下weblogic集群部署

linux下weblogic集群部署

Weblogic 8.1.6在LINUX下部署集群一、案例分析:1、上传server816_linux32.bin至三台机器的/home目录下;2、用shell工具分别登录三台服务器3、打开home目录:cd /home4、赋予server816_linux32.bin可读写权限chmod a+x server816_linux32.bin5、启动安装包 ./ server816_linux32.bin 此后会出现解压界面,解压到100%完成5.2欢迎界面直接回车即可出现lience界面,输入“1”,回车;5.3选择BEA 主目录输入“/weblogic/bea”,回车即可。

2.4 选择安装类型选择12.5选择产品的安装目录默认即可,直接回车2.6等待安装2.7等待安装JDK2.8完成安装回车后,安装过程会清除安装过程中的临时文件。

三、Linux系统及weblogic部分系统参数修改1、用FTP工具分别登录三台服务器2、打开下载etc目录下的hosts、exports及/etc/security下的limits.conf3、在hosts文件中加入192.168.80.202 app2192.168.80.201 app1192.168.80.203 app34、在exports文件中加入* 192.168.80.201(rw,sync)* 192.168.80.202(rw,sync)* 192.168.80.203(rw,sync)5、在limits.conf文件末尾中加入* soft nproc 8192* hard nproc 16384* soft nofile 8192* hard nofile 65536* soft nproc 16384 * hard nproc 32768 * soft nofile 16384 * hard nofile 655366、重启服务器 reboot四、创建域:1、/home/weblogic/bea/weblogic81/common/bin目录中的 config.sh 文件,会出现是创建还是扩展域的提示页面,选择第一个,创建一个新的域2、系统会提示选择模板注意选择Basic Weblogic Server Domain,每次的顺序可能不一样,选择数字的时候要注意3、系统会出现是否使用快速模式选项,建议选择非快速模式“2”。

weblogic集群配置方法

weblogic集群配置方法

weblogic集群配置方法案例所属系统案例现象无案例平台环境AIX 5300-04-00AIX 5300-05-CSPWeblogic9.2mp2JDK1.5.0主机结构应用部署案例分析分析过程web应用部署在两台服务器上,客户没有硬件负载均衡器,但要求从唯一的ip和端口登录web应用,通过weblogic集群来实现。

案例解决方法一、在web1主机上执行config.sh脚本建立domain:elndomain11;建立管理server:AdmServer11;建立被管理server: Server11、Server12 (注意:配置被管理server 时把web2主机上的两个被管理server也配置上) 。

详细方法如下:config.shUnable to instantiate GUI, defaulting to console mode.<--------------------- BEA WebLogic Configuration Wizard --------------------->Welcome:--------Choose between creating and extending a domain. Based on your selection,the Configuration Wizard guides you through the steps to generate a new or extend an existing domain.->1|Create a new WebLogic domain| Create a WebLogic domain in your projects directory.2|Extend an existing WebLogic domain| Extend an existing WebLogic domain. Use this option to add|applications and services, or to override existing database access (JDBC) |and messaging (JMS) settings. You can also incorporate additional|functionality in your domain, for example, by including AquaLogic Service |Bus.Enter index number to select OR [Exit][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Select Domain Source:---------------------Select the source from which the domain will be created. You can create the domain by selecting from the required components or by selecting from alist of existing domain templates.->1|Choose Weblogic Platform components| You can choose the Weblogic component(s) that you want supported in |your domain.2|Choose custom template| Choose this option if you want to use an existing template. This|could be a custom created template using the Template Builder.Enter index number to select OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Application Template Selection:-------------------------------Available Templates|_____WebLogic Server (Required)xEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>1、设置管理帐号和口令<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________|1| *User name: | weblogic |2| *User password: | |3| *Confirm user password: | |4| Description: | This user is the default administrator. |Use above value or select another option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"Enter option number to select OR [Exit][Previous][Next]> 2<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers."*User password:" = []Enter new *User password: OR [Exit][Reset][Accept]> xxxxxxxx<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________|1| *User name: | weblogic |2| *User password: | ********* |3| *Confirm user password: | |4| Description: | This user is the default administrator. |Use above value or select another option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers."*Confirm user password:" = []Enter new *Confirm user password: OR [Exit][Reset][Accept]> xxxxxxxx<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________|1| *User name: | weblogic |2| *User password: | ********* |3| *Confirm user password: | ********* |4| Description: | This user is the default administrator. |Use above value or select another option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]><--------------------- BEA WebLogic Configuration Wizard --------------------->Domain Mode Configuration:--------------------------Enable Development or Production Mode for this domain.->1|Development Mode2|Production ModeEnter index number to select OR [Exit][Previous][Next]> 2<--------------------- BEA WebLogic Configuration Wizard ---------------------> Java SDK Selection:-------------------->1|IBM SDK 1.5.0 @ /usr/java5_642|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Choose Configuration Option:----------------------------*Do you want to modify any of the preconfigured settings or defaults in*your template?**To keep the default or template settings, and proceed directly to name and *create your domain, leave No selected.1|Yes->2|NoEnter index number to select OR [Exit][Previous][Next]> 12、建立管理server<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to perform administrative tasks.| Name | Value |_|__________________|_____________________|1| *Name: | AdminServer |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"Enter option number to select OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to perform administrative tasks.| Name | Value |_|__________________|_____________________|1| *Name: | AdminServer |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Enter value for "Name" OR [Exit][Previous][Next]> AdmServer11<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to perform administrative tasks.| Name | Value |_|__________________|_____________________|1| *Name: | AdmServer11 |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to perform administrative tasks.| Name | Value |_|__________________|_____________________|1| *Name: | AdmServer11 |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Enter value for "Listen address" OR [Exit][Previous][Next]> 134.32.9.61<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to perform administrative tasks.| Name | Value |_|__________________|_____________|1| *Name: | AdmServer11 |2| Listen address: | 134.32.9.61 |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to perform administrative tasks.| Name | Value |_|__________________|_____________|1| *Name: | AdmServer11 |2| Listen address: | 134.32.9.61 |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Enter value for "Listen port" OR [Exit][Previous][Next]> 9001<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration Console which is used to perform administrative tasks.| Name | Value |_|__________________|_____________|1| *Name: | AdmServer11 |2| Listen address: | 134.32.9.61 |3| Listen port: | 9001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]>3、配置被管理server<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled |_|_______|________________|_____________|_________________|_____________| Enter name for a new OR [Exit][Previous][Next]> Server11<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port |SSL listen port |SSL enabled | _|_________|___________________|____________|________________|____________| 1->|Server11 |All Local Addresses| 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port |SSL listen port |SSL enabled |_|_________|___________________|____________|________________|____________| 1->|Server11 |All Local Addresses| 7001 | N/A | false |Modify "Listen address" OR [Exit][Previous][Next]> 134.32.9.61<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- BEA WebLogic Configuration Wizard ---------------------> Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 7001 | N/A | false |Modify "Listen port" OR [Exit][Previous][Next]> 10011<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Use above value or select another option:1 - Add2 - Modify3 - Delete4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Enter name for a new OR [Exit][Previous][Next]> ProxyServer11<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listen port|SSL enabled| _|_____________|__________________|___________|_______________|___________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11|All Local Addre...| 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listen port|SSL enabled| _|_____________|__________________|___________|_______________|___________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11|All Local Addre...| 7001 | N/A | false |Modify "Listen address" OR [Exit][Previous][Next]> 134.32.9.61<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 7001 | N/A | false |Modify "Listen port" OR [Exit][Previous][Next]> 8090<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 8090 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5继续添加被管理server,最终web1主机上被管理server如下:<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers. Each Managed Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2| Server12 | 134.32.9.61 | 10012 | N/A | false | 3|ProxyServer11 | 134.32.9.61 | 8090 | N/A | false | 4| Server21 | 134.32.9.138 | 10021 | N/A | false | 5->| Server22 | 134.32.9.138 | 10022 | N/A | false |Use above value or select another option:1 - Add2 - Modify3 - Delete4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]>4、配置集群<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_______|___________________|________________|_________________|Enter name for a new Cluster OR [Exit][Previous][Next]> elnclu1<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7001 | |Use above value or select another option:1 - Modify "Name"2 - Modify "Multicast address"3 - Modify "Multicast port"4 - Modify "Cluster address"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7001 | |Modify "Multicast port" OR [Exit][Previous][Next]> 7777<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7777 | |Use above value or select another option:1 - Modify "Name"2 - Modify "Multicast address"3 - Modify "Multicast port"4 - Modify "Cluster address"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7777 | |Use above value or select another option:1 - Add Cluster2 - Modify Cluster3 - Delete Cluster4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]><--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.Cluster|_____elnclu1 [1]Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu11|Server112|Server123|ProxyServer114|Server215|Server22Use above value or select another option:1 - Select2 - Select AllEnter option number to select OR [Exit][Discard][Accept]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu11|Server112|Server123|ProxyServer114|Server215|Server22Select( Enter index numbers and/or index ranges separated by commas. For example, 1, 4-5 ) OR [Exit][Discard][Accept]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu1->1|Server112|Server123|ProxyServer11。

WebLogic集群详细方案

WebLogic集群详细方案

From here数据库层:数据库:oracle 10g 数据库服务器:2台以上F5 设备:2台部署图:采用RAID 0+1的磁盘阵列部署描述:1.F5虚拟地址作为对数据用户的唯一地址。

2.F5有主备2台设备,相互之间部署心跳线,在F5的配置中设定其中一台作为主机,配置心跳的告警设置和数据库服务器的告警设置。

3.ORACLE需要安装F5的管理插件以监控数据库服务器性能参数和状态。

4.数据库采用RAC的方式进行集群,数据库之间有心跳线。

5.服务器Cluster需要一个统一的时间,在整个应用中由统一的服务器提供同步服务。

6.在数据库服务器集群和文件系统之间的交换机需要有主备线路。

访问控制:1.对F5虚拟地址的访问需要在数据库防火墙中配置白名单2.数据库的实地址只有DBA等数据库管理角色才能访问负载均衡:1.F5设备通过在Oracle服务器上的插件获取各个数据库本身的连接数,内存使用量,CPU占用率等参数,以及在F5配置中设置负载分发的规则来分发对数据库的真实访问。

2.对于数据库Cluster来说,采用10g以上版本的RAC的方式会有一个公用的缓存区。

数据安全:1.在文件系统中采用RAID 0+1的方式进行数据存放和备份2.磁带库作为文件系统的最终容灾备份。

故障处理:1.在F5主机出现故障时,由F5备用的心跳监控到并做自动切换,同时可以按告警配置进行对应操作。

2.数据库节点中一台出现问题时,会由别的节点接手,同时F5会监控到数据库的状态出现异常并按照告警配置进行对应操作,例如【发送告警邮件】等。

3.在数据库集群和文件系统的网络中,当主要线路出现问题,由备用线路接手。

优点:1.可扩展性好,在性能出现瓶颈的时候不需要修改整体布局,只需要增加服务器并配置2.可靠性好,所有设备都至少有一个备用节点。

3.访问无缝隙,对于用户来说只有一个访问接口,对于内部所有节点的备用节点都能实现自动切换或自动故障点剔除。

缺点:1.采用RAC进行数据库集群需要一个统一的文件存取管理系统,数据和存取基于网络,对网络性能和稳定性要求非常高。

Weblogic集群在俩台服务器搭建

Weblogic集群在俩台服务器搭建

Weblogic集群在俩台服务器搭建⼀、⾸先安装部署没问题,调整⼀下⾸先安装部署没问题,调整⼀下weblogic的启动内存⼤⼩⼀、在$HOME/***_domain/bin建域的bin⽬录下,有setDomainEnv.sh⽂件,控制默认的java进程参数配置。

1、修改前,先将该⽂件备份:cp setDomainEnv.sh setDomainEnv.sh.bk2、修改⽬标参数配置:vi setDomainEnv.sh找到如下配置,蓝⾊部分为被修改的内容:最⼩、最⼤启动内存红⾊部分是64 或者32位的if [ "${JAVA_VENDOR}" = "Sun" ] ; thenWLS_MEM_ARGS_64BIT="-Xms2048m -Xmx2048m"export WLS_MEM_ARGS_64BITWLS_MEM_ARGS_32BIT="-Xms256m -Xmx512m"export WLS_MEM_ARGS_32BITelseWLS_MEM_ARGS_64BIT="-Xms256m -Xmx512m"export WLS_MEM_ARGS_64BITWLS_MEM_ARGS_32BIT="-Xms512m -Xmx512m"export WLS_MEM_ARGS_32BITfi修改后保存退出,并重启所有Server使参数⽣效。

⼆、启动adminServercd ********domain/bin 就是weblogic的bin⽬录./startWebLogic.sh输⼊username/password:weblogic/weblogic(密码为创建域时输⼊的密码)⾸次启动时间⽐较长,约5min左右。

直到标准输出提⽰两⾏RUNNING,说明启动完成,如下:<Nov 8, 2016, 6:10:53,958 AM PST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>… …<Nov 8, 2016, 6:10:53,981 AM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>三、创建服务1. 打开Weblogic管理控制台:(使⽤管理IP或任何⽹络通的IP登录控制台)2.点击“锁定并编辑”,点击“环境”,点击集群,创建⼀个Cluster-0的集群。

Weblogic Server系列【高级篇】集群配置实战

Weblogic Server系列【高级篇】集群配置实战

集群配置实战1集群配置设计作用:集群管理主机服务名:AdminserverIP:10.253.1.118端口:91002资源管理Adminserver的建立2.1打开d omain管理器选择Create a new Weblogic domain,点击下一步。

2.2用自定义方式创建d omain选择Generate a domain configured automatically to support the following BEA products,点击下一步。

2.3打开d omain管理器设置domain的管理员帐户及密码,这里我们username输入weblogic;userpassword输入weblogic,点击下一步。

2.4选择JDK版本在这里JDK的版本我们选择SUN的,点击下一步。

2.5是否进阶设置是否继续进行配置,如果选择否则采用默认参数,如果选择是则对参数进行进阶设置。

这里我们选择“是”,点击下一步。

2.6设置d omain名称、IP地址及端口信息根据集群配置设计,我们在Adminserver内填写server名称为Adminserver,IP选择固定IP,端口填写9100,点击下一步。

2.7设置Adminserver管理的server实例列表根据集群配置设计,我们填写server118、server119、以及proxy信息后,点下一步。

2.8设置多播服务器将server118、server119实例填写到Claster Address内,以逗号分割。

点击下一步。

2.9设置受播服务列表在这里我们需要设置上一步新建的多播的服务列表,我们选择server118、server1192.10为proxy创建webl ogic提供的默认分发项目首先选择Create HTTP proxy for cluster new _Cluster_1,然后在Proxy server地址里选择proxy2.11JMS设置这里我们没有相关实例,所以直接下一步。

一步一步学WebLogic集群配置(Windows环境)

一步一步学WebLogic集群配置(Windows环境)

一步一步学WebLogic 集群配置(Windows XP+WebLogic923)版本说明概要描述本例测试例规划一、安装篇1.安装WebLogic1) WebLogic安装过程2) 安装WebLogic完成后生成的目录结构如下2.Apache安装1) Apache安装过程2) 安装Apache完成后生成的目录结构3) 自动生成Apache启动服务4) 测试安装Apache是否成功二、配置篇1.WebLogic配置1) 从开始菜单→BEA Products→Tools→ConfigurationWizard启动2) 创建域A.Create a new WebLogic domainB.Select Domain SourceC.Configure Administrator UserName and PasswordD.Configure Server Start Mode And JDKE.Customize Environment And Services SettingsF.Configure the Administration ServerG.Configure Managed ServersH.Configure ClustersI.Assign Servers to ClustersJ.Configure MachinesK.Assign Servers to MachinesL.Review WebLogic DomainM.Create WebLogic DomainN.Creating DomainO.配置Domain成功后生成的目录结构3) 配置域启动信息A.新增启动用户名、密码文件B.初始化各个Server内存参数大小C.拷贝bin目录底下的startManagedWebLogic.cmd到域目录底下D.分别重命名为startServer7081.cmd、startServer7082.cmdE.修改startServer7081.cmd文件对应的SERVER_NAMEF.修改startServer7082.cmd文件对应的SERVER_NAMEG.修改各Server控制台日志文件输出位置4) 启动域A.双击startWebLogic.cmd启动域5) 配置Data Sources A. 配置Data Source 过程B.点击“Activ ate Changes”按钮生效变更配置C.类似创建其它Data Source6) 配置Multi Data SourcesA.配置Multi Data Source过程B.类似创建其它Multi Data Source7) 部署应用服务A.先在本地取得某应用程序拷贝文件(集群多机器需分别拷贝,且目录位置一致)B.分别修改ManagedServer底下的Staging Mode模式为nostageC.重新启动所有的Server(第一次启动ManagedServer,需保证AdminServer处于已启动状态)D.部署应用服务过程E.启动应用Servicing all requestsF.类似部署其它应用G.配置应用复制session信息修改对应的App\WEB-INF\底下的weblogic.xml文件,可用于复制server间的session信息。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

一,注意:1,不要通过控制台启动ManagedServer2,做集群的电脑上的ManagedServer 名字要和其他机器上的相同ManagedServer 名字相同。

二,具体步骤:1,2, 两台电脑分别安装好weblogic10.3.2版本3,第一台电脑Machine1上创建一个域cluster_domainRun as follow “Configuration Wizard”创建一个域例如叫cluster_domain,其中有一步要选择yes,这样可以配置proxy server,cluster 等信息在这个步骤中要创建cluster_domain,并在创建cluster_domain的过程中配好一下对象:1,两个Machine :3,一个cluster new_Cluster_1 并将new_ManagedServer_2, new_ManagedServer_1给new_Cluster_1, 将new_Cluster_1 给proxy Server4,第二台电脑machine2上也建一个域名字同上交cluster_domain 当然也可以是任何其5,创建该域是不需要被指cluster ,代理服务等信息,建一个受管server名称new_ManagedServer_2 一定要和machine1中做集群的那个受管server名称new_ManagedServer_2完全相同,端口号7002也要同三、创建启动Managed Server 的文件1,第一台电脑Machine1在目录C:\bea\user_projects\domains\cluster_domain新建startWebLogic.cmd 内容为:SETLOCALset DOMAIN_HOME=C:\bea\user_projects\domains\cluster_domaincall "%DOMAIN_HOME%\bin\startWebLogic.cmd" %*ENDLOCALstopWebLogic.cmd 内容为:SETLOCALset DOMAIN_HOME=C:\bea\user_projects\domains\cluster_domaincall "%DOMAIN_HOME%\bin\stopWebLogic.cmd" %*ENDLOCALstartProxy_server.cmd 内容为:start .\bin\startManagedWebLogic proxy_server http://192.168.128.1:7001stop Proxy_server.cmd内容为:start .\bin\stopManagedWebLogic proxy_serverstartManagedServer_1.cmd 内容为:start .\bin\startManagedWebLogic new_ManagedServer_1 http://192.168.128.1:7001stopManagedServer_1.cmd内容为:start .\bin\stopManagedWebLogic new_ManagedServer_12,在第二台电脑Machine2上的目录/opt/bea/cluster_domain 下新建startWebLogic.sh 内容为:DOMAIN_HOME="/opt/bea/user_projects/domains/ cluster_domain "nohup ${DOMAIN_HOME}/bin/startWebLogic.sh &stopWebLogic.sh内容为:DOMAIN_HOME="/opt/bea/user_projects/domains/ cluster_domain "${DOMAIN_HOME}/bin/stopWebLogic.sh $*startManagedServer_2.sh内容为:DOMAIN_HOME="/opt/bea/user_projects/domains/cares_domain"nohup ${DOMAIN_HOME}/bin/ startManagedWebLogic.sh new_ManagedServer_2 http://192.168.128.1:7001 > startManagedServer_2.log 2>&1 &stopManagedServer_2.sh 内容为:DOMAIN_HOME="/opt/bea/user_projects/domains/cares_domain"${DOMAIN_HOME}/bin/stopManagedWebLogic.sh new_ManagedServer_2 http://192.168.128.1:7001四,开始运行各个server,顺序为:为了避免在启动时要求在命令行输入用户名和密码:我们新建一个文件boot.properties 内容为(假设电脑一的控制台密码为weblogic/weblogic) password=weblogicusername= weblogic将这个文件复制到电脑一的目录下C:\bea\user_projects\domains\cluster_domain同时将这个文件复制到电脑二的目录下/opt/bea/user_projects/domains/cares_domain/servers/new_ManagedServer_2/security如果没有security文件夹就新建一个。

1,启动电脑一上的管理server,可以通过开始菜单启动如图也可以运行C:\bea\user_projects\domains\cluster_domain下的startWebLogic.cmd2,启动电脑一上的受管管理代理server proxy_server运行startProxy_server.cmd3,启动电脑一上的受管管理server new_ManagedServer_1运行startManagedServer_1.cmd若启动受管服务器报错的话,可能是因为这些server已经启动的原因,只需要将这些server停掉在启动即可(停掉的方法:用软件aports(进程管理器).exe查找这些server对应的ip和端口号,结束任务即可);4,启动电脑二上的管理server,运行startWebLogic.sh5, 启动电脑二上的受管管理server new_ManagedServer_2运行startManagedServer_2.sh若在启动startManagedServer_2.sh时报错则可能因为startManagedServer_2.sh已经启动,运行ps -ef | grep -i startManagedServer_2 ,kill -9 杀掉进程后继续运行startManagedServer_2.sh即可,运行startManagedServer_2.sh过程中提醒输入用户名和密码是应输入电脑一上管理服务器AdmainServer的用户名密码(如weblogic/weblogic)至此启动完毕四,通过控制台查看电脑一:http://192.168.128.1:7001/console1,server 如图:可以看到所以server都处于running 状态了,一定要注意new_ManagedServer_2是在电脑二上启动的。

2,machines 如图3,clusters 如图可以看到包含了两个受管服务4,部署,如图点击Start按钮先后分别启动这两个应用其中,第一个是代理应用程序,这个应用是配置集群代理后自动生成并部署到proxy_server受管服务器下的(磁盘位置是C:\bea\user_projects\domains\cluster_domain\servers\proxy_server\stage\),其内容为一个WEB-INF文件夹,下面有两个文件weblogic.xml和web.xml内容如下:weblogic.xml<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "/servers/wls810/dtd/weblogic810-web-jar.dtd"><weblogic-web-app><context-root>/</context-root></weblogic-web-app>web.xml<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "/dtd/web-app_2_3.dtd"><web-app><servlet><servlet-name>HttpClusterServlet</servlet-name><servlet-class>weblogic.servlet.proxy.HttpClusterServlet</servlet-class><init-param><param-name>WebLogicCluster</param-name><param-value>192.168.128.1:7002|192.168.128.127:7002</param-value> </init-param><init-param><param-name>DebugConfigInfo</param-name><param-value>OFF</param-value></init-param><init-param><param-name>verbose</param-name><param-value>true</param-value></init-param></servlet><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>/</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.jsp</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.zul</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.do</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.htm</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.html</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.jpd</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.jcx</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.dtf</url-pattern></servlet-mapping><servlet-mapping><servlet-name>HttpClusterServlet</servlet-name> <url-pattern>*.jws</url-pattern></servlet-mapping></web-app>第二个是部署到集群中的应用clusterTest,具体不是见下图最后这个应用clusterTest就会同时部署到电脑一的new_ManagedServer_1和电脑二的new_ManagedServer_2下的stag目录下(其实应用直接使用的是\domains\cluster_domain\servers\new_ManagedServer_1\tmp\_WL_user\clusterTest\hj6sc7\w ar)注意,尽管, new_ManagedServer_2是在电脑一下建的,但实际上电脑一上并没有实际的new_ManagedServer_2文件夹(如图),他直接引用的是电脑二上的同名服务器new_ManagedServer_2(可能你会问既然电脑一上没有new_ManagedServer_2为什么会在电脑一上的控制台看到new_ManagedServer_2呢?,这主要是因为在电脑一的config.xml中配置了new_ManagedServer_2,并且将其指向了电脑二上的同名服务器,因此我们在电脑一上看到的new_ManagedServer_2实际上就是电脑二上new_ManagedServer_2的影子)因此应用clusterTest直接就部署到了第二台电脑上的new_ManagedServer_2中了(如图)电脑二:http://192.168.128.127:7001/console1, servers 如图:可以看到new_ManagedServer_2的状态虽然是shutdown但是实际上从电脑一可以看到他是处于运行状态的,我们以后的所有监控、部署以及数据源的创建都是在电脑一上进行的,电脑二只负责启动服务即可。

相关文档
最新文档