【WebLogic 基本概念介绍】

WebLogic 应用服务器有如下几个基本概念:


 

Domain: 域是个逻辑概念,用来组织管理一系列的应用服务器实例,也就是下面要解释的server. 域是WebLogic应用服务器中最大的概念,WebLogic应用服务器启动的时候就是以某个域来启动的,它有一个中心配置文件叫config.xml.

A domain is the basic administration unit for WebLogic Server instances (servers) that is represented in its own configuration file (config.xml). A domain consists of one or more servers (and their associated resources) that you manage with a single Administration Server.

 

 

域(Domain):

1,概念

——(1)域是管理的单元或边界;

      (2)作为一个单元来管理的,并相互关联的一组WebLogic服务器资源被称为域;

      (3)Domain是webLogic Server管理的一个基本单元,包括一个管理server和一个管理的入口。

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

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

2,组成

——(1)由server组成

      (2)server分Administration server和Managed Servers

      (3)Administrationserver负责domain的管理,一般不负责应用

      (4)Managed server部署实际的应用

      (5)Cluster

3,总结:

Domain是一个逻辑上的概念

Domain是一组Sever的集合

一个域有且只有一个管理服务器

Cluster: 族也是一个逻辑概念,用来分组用途相同的服务器实例,一个域中可以有多个族。

A cluster is a deployment in which multiple WebLogic Server instances (servers) run simultaneously and work together to provide increased scalability and reliability. A cluster appears to clients to be a single WebLogic Server instance. The servers that constitute a cluster can run on the same machine, or be located on different machines.

Machine: 机器是物理上的概念,代表一台运行WebLogic应用服务器的实在的机器,包括其IP地址等信息。一个域中可以包括多台机器。(同一台机器可以属于不同的域吗?)

A machine is the logical representation of the computer that hosts one or more WebLogic Server instances (servers). WebLogic Server uses configured machine names to determine the optimum server in a cluster to which certain tasks, such as HTTP session replication, are delegated. The Administration Server uses the machine definition in conjunction with the Node Manager application to start remote servers.

——机器是物理上的概念,代表一台运行WebLogic应用服务器的实在的机器,包括其IP地址等信息。一个域中可以包括多台机器。

总结:Machine是一台承载Weblogic服务器的机器;可以承载多个Weblogic服务器实例

Server: 服务器,也就是一个应用服务器的实例,用来部署和运行各种J2EE应用程序,也可以来配置各种服务程序。它是WebLogic应用服务器的基本服务单元。一个WebLogic域中一般有一个管理服务器和多个被管理服务器。也就是下面我们要谈到的两个概念。

A server is an instance of WebLogic Server that runs in its own Java Virtual Machine (JVM) and has its own configuration. Each WebLogic Server domain must have one server that acts as the Administration Server. In a typical production environment, the Administration Server is where the Administration Console is run and used to perform administrative tasks. By default, the Administration Server is called myserver. A typical production environment may also have one or more Managed Servers, which are instances of WebLogic Server used to host enterprise applications.



 

 服务器(Server):

1,分类

——服务器(Server)分Administration Server(管理服务器)和Managed Server(被管理服务器)

2,Administration Server(管理服务器)

——是控制整个域配置的中心操作节点,管理服务器维护着整个域Domain 的配置并将配置分配到每个被管理服务器 Managed Server 中,每个域中都必须有一个Administration Server。

Admin Server如果挂了,对于Domain中的ManagedServer不会产生影响,如果配置了集群,对于负载均衡和Failover机制也不会产生影响,因为这些都是基于配置文件的(config.xml),而不依赖与AdminServer的实例。Admin Server 不必时刻运行,当我们需要修改配置或者部署应用时,把Admin Server运行起来就行。

Administrative Server: 管理服务器是用来管理配置域的中心点,一般来说,管理服务器上是不部署应用程序的,而是用来统一管理、配置、监控被管理服务器以及部署应用程序到被管理服务器上。一个域中有一台管理服务器。

Managed Server: 被管理服务器是用来部署运行各种应用程序的。一个域中有一台或多台被管理服务器。



 

Managed Server(被管理服务器)

——是一个WebLogicServer的实例,他从Admin Server那里获取配置信息。通常在Managed Server上部署自己的服务、组件或应用。基于性能考虑,ManagedServer维护着一份只读的域配置文件,当服务启动的时候,会从Admin Server上同步配置文件信息,如果配置文件发生了改变,AdminServer也会将改变推送到Managed Server上。

总结:

(1)Administration Server(管理服务器):

——可控制整个域(Domain)

——可存储配置信息和日志信息

——可通过管理服务器访问控制台

(2)Managed Server(被管理服务器):

——可以是除管理服务器外的任何服务器

——与管理服务器建立连接获取配置信息

——可以解析承载应用程序

(3)Sever是JVM的一个实例;

            一个Server:在机器上运行,且拥有自己的内存空间,且为多线程。

Node Manager: 节点管理器是一个单独运行的后台程序,一般运行在被管理服务器的机器上,用来提供远程启动和停止服务器(Server)的功能。

猜你喜欢

转载自gaojingsong.iteye.com/blog/2390395