WebLogic集群详细方案设计

合集下载

创建Weblogic集群

创建Weblogic集群

一、创建Weblogic集群规划二、配置导航创建集群服务器1.创建集群的总控制端(adminserver)Windows:Windows下通过菜单->OracleWeblogic->Weblogic Server11gR1->Tools->Configuration Wizard来启动创建domain的wizard。

来启动创建domain的wizard。

选择“创建新的Weblogic域”,选下一步(下面全部跟着我的操作步骤与界面填选的参数走,所有的用户名啦、密码啦、端口号啦、IP啦,都请根据第一节中的那个表格里的参数填写)下一步后界面类似,但是是有区别的,注意了哦,不要下手太快了上面这个配的就叫集群广播地址的界面。

因为集群是通过广播(有unicast和multicast两种)来同步集群中的节点,并且把每个节点中的session通过这个广播地址来进行复制和同步,即主控域不断的时时刻刻的会和它下面的子节点间保持通讯、经常去询问各个子节点的。

∙名称:可以任意∙集群信息传送模式:有unitcast与multicast两种,在11G版本前都是multicast10G后开始支持unicast协议。

如果指定了multicast,就必须指定一个“多点传送地址”,此地址和端口都可以采用weblogic默认的。

如果在域环境,还需要在防火墙中配置这个“多点传送地址”与“多点传送端口”,使其在防火墙中被打开,协议为both of tcp and udp。

Look,右边这块我们把它称为“集群的逻辑拓卜图”。

此处是对每个集群里的节点指定相应的“计算机名/IP”,由于我们的实验是建立在同一台机器上的即纵向集群,因此这步什么都不需要填,直接下一步。

完成后可以启动adminserver然后通过http://localhost:7001/console来查看我们的集群规划,如下图:这样,我们就完成了创建一个新的domain并且将且扩展成为了集群的总控制端服务器,同时在这上面我们制作了一个“集群拓卜图”,那么下面要做的就是:∙创建该集群拓卜图中的节点1∙创建该集群拓卜图中的节点22.创建集群中的节点(mycluster1,mycluster2)启动Weblogic的Configuration Wizard按照普通的域,就是一个普通的域来创建(为了实验方便我们的用户名与密码全部为weblogic/password_1):∙user_projects\domains\server1(逻辑名为:mycluster1,端口:7011)∙user_projects\domains\server2(逻辑名为:mycluster2,端口:7012)下一步,下一步,创建,完成。

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 规划好了,就可以开始来创建我们的集群了。

weblogic12.1.3集群搭建(包括远程机器)

weblogic12.1.3集群搭建(包括远程机器)

Weblogic12.1.3集群搭建1基本概念WebLogic的一些基本概念:熟悉Weblogic的必经了解的概念——1.1域(Domain):1.概念(1)域是管理的单元或边界;(2)作为一个单元来管理的,并相互关联的一组WebLogic服务器资源被称为域;(3)Domain是webLogic Server管理的一个基本单元,包括一个管理server和一个管理的入口。

(4)在创建server和使用server的时候需要先创建Domain。

(5)每个Domain都包括一个config.xml文件,在domain的根目录下的config目录中。

2.组成——(1)由server组成(2)server分Administration server和Managed Servers(3)Administration server负责domain的管理,一般不负责应用(4)Managed server部署实际的应用(5)Cluster3.总结:Domain是一个逻辑上的概念Domain是一组Sever的集合一个域有且只有一个管理服务器1.2服务器(Server):1.分类——服务器(Server)分Administration Server(管理服务器)和Managed Server(被管理服务器,也称受管服务器)2.Administration Server(管理服务器)——是控制整个域配置的中心操作节点,管理服务器维护着整个域Domain 的配置并将配置分配到每个被管理服务器Managed Server 中,每个域中都必须有一个Administration Server。

Admin Server如果挂了,对于Domain中的ManagedServer不会产生影响,如果配置了集群,对于负载均衡和Failover机制也不会产生影响,因为这些都是基于配置文件的(config.xml),而不依赖与AdminServer的实例。

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 10.3.6.0 集群搭建

Weblogic 10.3.6.0 集群搭建

Weblogic 集群搭建Oracle的Weblogic分开发者版本和生产版本,有32位和64位。

一般生产版本的weblogic是64位的,安装文件是一个大小为1G多的jar包。

去oracle官网上下载64版weblogic。

这里使用的版本是weblogic11g,版本号是10.3.6,文件名为“wls1036_generic.jar”。

安装weblogic前要确认已安装好jdk(如果安装的是64位weblogic则需要64位版本的jdk)。

目前,weblogic可免费使用,需要oracle的weblogic服务时才需要向Oracle付费买服务,即产品免费服务收费。

一、安装weblogic(windows和Linux操作步骤相同)1、在命令行,进入安装文件wls1036_generic.jar所在文件夹然后输入命令:Java -jar wls1036_generic.jar点击回车后程序会启动weblogic安装文件的图形安装界面。

按下来的安装和在windows中安装普通文件一样了。

2、点击“下一步”,到下图界面,然后输入weblogic的安装目录。

(路径中最好不要有空格)3、点击“下一步”。

到下图界面,由于我们没有购买oracle的服务所以去掉下图中的勾。

(目前weblogic可免费使用,需要oracle技术支持的话才需要付费)4、点击“下一步”,到下图界面,会因为我们没有填写上图的的支持信息而弹出两个警告框,直接“YES”通过即可。

进入下图,勾选下面的框(不需要使用验证)5、然后点击“继续”。

到下图界面,选择“典型”和“定制”都可以,根据自己喜好设置6、选择后点击“下一步”,进入下图界面,如果没有显示jdk信息,则手动点击“浏览”选择自己机器上安装的jdk,一般默认显示出来的就已经是自己机口上安装的了(貌似是根据环境变量里的JAVA_HOME获取的)7、点击“下一步”进入下图界面,不用修改,直接点击“下一步”即可8、然后会显示出我们准备安装的组件信息,直接点击“下一步”9、然后就开始安装了10、安装完成了,这里有勾选“运行Quickstart”表示安装完成后打开域创建和配置界面。

Weblogic 集群配置方案

Weblogic 集群配置方案

Weblogic 集群配置文章分类:互联网1、Weblogic10.3.1.0.0集群配置要求1、两台在同一网段的,可以相互访问的计算机。

2、两台计算机都安装了Weblogic10.3.1.0.0版本的应用服务器。

3、安装介质注意:集群中的Weblogic版本一定要相同。

2、Weblogic集群规划1、集群规划(两台物理机分别为称为机器A和机器B)机器名称硬件配置服务器名机器类型AdminServer(admin)PC机器A IP:192.168.10.214 PORT:7001ProxyServer_1PC机器A IP:192.168.10.214 PORT:7004PC机器A IP:192.168.10.214 PORT:ManagedServer_17002PC机器B IP:192.168.10.88 PORT:7003ManagedServer_23、Weblogic集群配置(机器A)1、「开始」菜单\程序\Oracle WebLogic (BEAHOME 1)\WebLogic Server10gR3\Tools\Configuration Wizard,单击启动Configuration Wizard,默认点击Next2、默认,点击Next3、输入Weblogic管理员密码,点击Next4、选中Production Mode,点击Next5、选中Yes,点击Next6、默认,点击Next7、默认,点击Next8、新增管理服务器,填写管理服务器的Name,Listen address,Listen port,完成管理服务器添加,点击Next9、添加Clusters,完成cluter添加,点击Next10、把Server栏的服务器添加到Cluster栏中,点击Next11、默认,点击Next12、默认,点击Next13、在Domain name中输入TestDomain,点击Create14、选中Start Admin Server,点击Done完成A机器上的集群配置。

weblogic12.1.3集群部署(1)

weblogic12.1.3集群部署(1)

Weblogic12.1.3 集群配置初步(本文介绍局域网中单机配置,后续希望能提供局域网多机配置)关键词:weblogic12.1.3 集群因为想了解一些服务器集群和负载均衡的知识,而这两天刚好有一点时间,借鉴以前网络资料,就研究了一下,分享出来,欢迎指正。

下面分步骤介绍,1.首先从官网获得Weblogic12c软件:WLS Zip Distribution for Oracle WebLogic Server 12.1.3.0这是一解压安装软件,This version of WLS requires JDK 1.7 as a minimum;2.解压后安装路径为:D:\wls12130;3.启动命令行工具cmd,进入指定安装目录后,执行命令:D:\wls12130\wlserver\common\bin>config4.稍等,出现Weblogic 配置向导工具:5.定义域名后,点击‘下一步’,默认weblogic模板:6.为管理服务器设置用户名和密码:7.选择‘开发’模式和‘生产’模式,此时都可以;8.点击‘下一步’,进入高级配置,选择两项:9.点击‘下一步’配置管理服务器:10.管理服务器增加后,配置两个受管理服务器,并增加一个代理服务器。

当后续创建集群时,前面两个受管理服务器ZL_ManagedServer将会配置到集群中,而最后一个受管理服务器将作为集群的代理,端口号为8080。

管理服务器就是用来管理域中那些所有受管理(ManagedServer)服务器,一般不直接用来部署应用。

最终应用是布署到某一个集群中的所有服务器中。

11.受管理服务器增加后,下一步配置增加集群,集群的逻辑名为ZL_Cluster_1,12.集群创建好以后,将受管理服务器增加到集群中:13.配置接受外部http客户端请求的代理服务器,是整个集群的前端入口:14.代理服务器配置好以后,下一步进入计算机设备配置:15.服务16.器增17.确认无误后,点击创建按钮:18.创建完成后,直接点‘完成’关闭配置向导19.接下来需要启动管理服务器,在命令行执行下面命令:D:\wls12130\user_projects\domains\zldomain\bin>startWeblogic 20.启动管理服务器后,打开浏览器,地址栏输入:http://192.168.1.104:7001/console进入管理控制台之前需要输入用户名和口令:名称:weblogic口令:weblogic123进入后如下图:21.命令行工具启动受管服务器和代理服务器,运行命令的目录是D:\wls12130\user_projects\domains\zldomain\bin>启动第一个受管理服务器(集群中第一个服务器)….\bin>startManagedWeblogic ZL_ManagedServer_1 http://192.168.1.104:7001启动第二个受管理服务器(集群中第二个服务器)….\bin>startManagedWeblogic ZL_ManagedServer_2 http://192.168.1.104:7001启动代理服务器(也是受管理的,但不在集群中)….\bin>startManagedWeblogic Proxy_Server_1所有受管理服务器启动后如下图:(四条命令启动了包含管理服务器在内的四个服务器)22.在浏览器中打开的管理服务器页面,在左边找到菜单‘Deployment’,准备向集群中部署一个新的应用:23.Install一个web应用,早已经准备好了一个‘hello,world’的jsp web项目,安装时找到对应的目录:E:\Aaa.war后面的步骤,都点‘Next’下一步,图片说明:下一步:下一步:下一步:下一步:下一步,已经部署成功了哦!再回到部署应用的列表页面,刚才的应用是活动的,可以访问了:浏览器的访问地址是:http://192.168.1.104:8080/Aaa24.后续工作是对负载均衡的测试工作和在多台设备进行集群部署。

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

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进行数据库集群需要一个统一的文件存取管理系统,数据和存取基于网络,对
网络性能和稳定性要求非常高。

2.系统网络部署成本会比较高。

3.在出现文件系统故障时,采用RAID 0+1的阵列进行恢复操作比较复杂和缓慢。

取舍:
1.可以采用大量的低端服务器方式来代替多台高端服务器实现数据库集群,但对于服务器
的管理要求很高。

2.数据存取性能要求不高,但是文件安全要求高的系统,应采用RAID1+0的方式。

应用层:
应用服务器:WEBLOGIC 9.2服务器:4台以上F5设备:4台部署图:
部署描述:
1.WEB层中的F5虚拟地址作为对外部用户的唯一访问地址。

2.APP层中的F5虚拟地址作为对内部WEB端的唯一访问地址。

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

4.F5中需要对应Weblogic集群进行相关配置,转发规则,监控频率,Session识别和转
发,以及设置服务器性能的告警,预防规则等。

访问控制:
1.APP防火墙中设置固定的白名单访问。

2.WEB服务器的实地址只有WEB层的TA维护角色能够访问
3.APP服务器的实地址只有APP层的TA维护角色能够访问
负载均衡:
1.对服务性能和响应速度有要求的应用一般按【服务器能力】的方式进行负载均衡,由F5
对每台服务器定时的监控结果【内存,CPU,连接数】,以及F5中自定义的分发规则决定
采用服务器能力的方式进行负载均衡,在出现系统资源耗尽异常时,有非常多的情况是某个server先出现异常随后伴随整个Cluster的服务器一并发生。

2.性能要求吧不高的应用一般采用【服务器几率访问】或者【服务器轮循访问】的方式进
行均衡,【服务器几率访问】适用于服务器硬件方面存在性能差异或每台服务器上应用不是平均分配的情况,可手工的调整每台服务器的访问比例,【服务器轮循访问】对于每一台服务器来说访问次数是基本平均的。

这两种负载机制由于不同业务的消耗是不同的,容易出现大消耗的请求集中在某台服务器,出现单个服务器挂起的情况,但不容易出现整个服务器Cluster一并挂起的情况。

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

优点:
1.实现网络的物理分割,最大程度上保证系统网络安全
2.WEB和APP对外都只拥有一个访问接口,分离前台业务和后台业务
3.对于集群内部节点是可以自由添加和删除的,因此可以实现系统的分批次部属使得服务
不必中断。

缺点:
1.在APP和WEB之间的网络性能和稳定性要求非常高,网络部署成本高。

Weblogic集群:
结构图:
Weblogic Cluster描述:
1.一个Weblogic Cluster 需要至少1台服务器。

【Cluser对服务器 1对多】
2.每一台服务器中可以有多个应用在一个Cluster中。

【服务器对应用 1对多】
3.在Cluster的配置监控中可以对每个Server的状态,连接数,Jndi连接数进行监控和
配置操作
Session处理
对于F5+Weblogic Cluster每个访问请求来说,F5能识别出weblogic的Session 并生成一个 SessionId,同样sessionId的访问请求都由同一台Server处理。

在F5中所以session会被复制一份副本,并且session的所有变化都会在副本中进行及时更新,这样,当原有Server在响应请求过程中失败时,F5会立即获取session的副本,并由此转发给状态正常的Server继续响应客户端请求,同时保存Session新副本。

Cluster管理:
1.JDBC连接池:和单机配置JDBC连接池类似,在创建连接池时,Cluster会测试每个Server
上JDBC的连通性,对于应用来说可以通过Jndi树获取到连接的DataSource,在发生连接池溢出的情况时,对于每个JDBC可以做单独的重启。

2.监控:可以查看每个Server的状态,Application的状态,
3. 发布Application:对于一个Cluster,只需要上传到其中一台,weblogic会自动分发
到Cluster中所有的服务器上。

在进行UPDATE操作时可以选中Cluster或者Cluster中个别的Server进行操作。

ProxyServer:
1.proxyServer可以作为F5的代替,作为一个对外的唯一访问地址。

2.proxyServer可以是安装有BEA WebLogic Server的Web服务器,或者是安装了 WebLogic
插件的Apache服务器或其他服务器。

3.proxyServer是一个软件方式的负载均衡和硬件层面的负载均衡来说成本低但软件层面
的跳转效率低,性能不能支持巨大的并发访问。

Ehcache集群
结构图:
集群描述:
1.集群配置采用RMI组播的方式进行集群,在Ehcache的集群中不存在主节点和子节
点的关系,所有的节点都是平级的。

通过配置multicastGroupAddress,使得每个节点的Ehcache都会去自动扫描此区段中的地址,每个节点都可以获取到其他节点
的信息。

2.对应不同的业务,配置不同的缓存组,对应不同缓存组按业务要求配置不同的缓存
规则,并配置这个缓存组是属于本地缓存还是集群的缓存。

缓存操作:
1.GET操作:对本地的LocalCache 缓存进行查询
2.PUT,REMOVE,UPDATE等缓存DML操作:将修改结果同步到别的节点上
优点:
1.增加节点基本不需要配置,只需要保证节点处在同一个网段即可,可以避免人为配置
的错漏出现。

2.由于RMI是JAVA自带的,无需引入其他JAR包。

缺点:
1.由于缓存是通过RMI同步分发到各个服务器上的,当缓存的数据量很大时不适用。

2.网络可能会禁用组播功能,若禁用多播则需要对每个节点配置上集群中其他节点的地址。

分布式缓存的Ehcache实现:
部署图:
缓存ClusterA缓存ClusterB
集群描述
1.采用Ehcache Server的方式对缓存进行管理,缓存管理服务器的主要功能维护一张
HashCode表,决定缓存的查询是访问哪组Cluster,同时对Cluster各个服务器进行负载均衡的访问控制。

2.对于每一个缓存Cluster ,采用RMI/JGROUP等方式做2台服务器一组的最基本的缓存
集群,实现缓存数据的同步分发。

优点:
1.可以支持大量数据的缓存
2.有统一的缓存管理
缺点:
1.较直接查内存数据来说,通过网络的形式进程缓存查询性能较低,同时对网络性能要求
非常高
2.。

相关文档
最新文档