WebLogic Server 域是什么以及它有什么作用?

What is and what do a WebLogic Server domain?

我是一名 Java 开发人员,我是使用 Java 进行 Web 应用程序开发的新手,我有以下疑问。

我们正在开发部署在 Oracle WebLogic Server.

上的 Web 应用程序

weblogic 域 究竟是什么?据我了解,每个应用程序都使用定义的域。但它到底做了什么?

来自 Oracle documentation:

A domain is the basic administrative unit of WebLogic Server. It consists of one or more WebLogic Server instances, and logically related resources and services that are managed, collectively, as one unit.

所以它是一个管理容器,您应该考虑以下几点:1 个域等于 1 个管理服务器。

管理服务器:

A domain includes one WebLogic Server instance that is configured as an administration server. All changes to configuration and deployment of applications are done through the administration server.

The administration server provides a central point for managing the domain and providing access to the WebLogic Server administration tools. These tools include the following:

  • WebLogic Server Administration Console: Graphical user interface to the administration server.

  • WebLogic Server Node Manager: A Java program that enables you to start and stop server instances—both administration servers and managed servers—remotely, and to monitor and automatically restart them after an unexpected failure.

  • Note that the node manager is installed on all the machines that host any server instance – both administration server and managed servers.

来自 oracle 文档的 link 精确定义了 weblogic domain.It 详细说明了应用程序的各种划分方式可能是逻辑上的、物理上的或基于 size.Specifically 以下部分来自 link 可能会回答您的问题

什么是域?

组织域

https://docs.oracle.com/cd/E13222_01/wls/docs103/domain_config/understand_domains.html

我发现以下 link 也很有用:

http://middlewaremagic.com/weblogic/?p=1914

WebLogic 是一个表示环境的概念。

  • 一个包括一个管理服务器和一个或多个托管服务器
  • Managed Servers 基本上是 Java 服务器 运行 在物理机或 VM 上,每个服务器可以包含 1 个或多个 Managed Servers。
  • 托管服务器可以组织成集群
  • 一个还包含资源,例如数据库连接池,可以被Applications.
  • 应用程序资源部署到特定的托管服务器集群(资源应部署在与需要它的应用程序相同的托管服务器或集群上)

  • 一个通常包含多个应用程序。

  • ClustersManaged Servers 抽象为一个组,因此很容易扩展 通过将 Managed Servers 添加到 Cluster.

  • 来部署应用程序
  • 多个集群在同一个中可以帮助隔离应用程序资源根据他们的使用要求。

  • Dynamic Clusters 包括根据特定指标扩展 Managed Servers 数量的规则。

此外:

  • 每个域有 1 个管理服务器。通常每组机器有 1 个域 运行 域中的托管服务器。
  • 虽然管理服务器管理部署的内容,但另一个服务节点管理器在每台物理机器或 VM 上运行,以管理托管服务器的生命周期(启动、停止、健康检查)并报告给管理服务器。