weblogic集群如何工作? [英] How does weblogic clustering work?

查看:152
本文介绍了weblogic集群如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是weblogic的新手。

I'm new to weblogic.

我读过 http://download.oracle.com/docs/cd/E11035_01/wls100/cluster/overview.html 并在互联网上搜索了这个主题,但仍然很难理解一些weblogic的聚类概念。

I've read http://download.oracle.com/docs/cd/E11035_01/wls100/cluster/overview.html and searched this topic on the internet but still had a hard time understanding some of weblogic's clustering concepts.

任何人都可以确认/纠正我的理解吗?

Can anybody confirm/correct my understandings below?


  • 群集包含一个或多个可驻留在一个或多个物理服务器上的逻辑服务器

  • 在将j2ee应用程序部署到群集时,它与该群集中的一个服务器绑定

  • 部署的应用程序的外部用户不知道群集

  • 该应用程序的日志文件位于部署的服务器上

  • 如果托管应用程序的服务器出现故障,可以,因为该应用程序位于群集中而另一台服务器将接收工作?

  • 如果托管应用程序的服务器出现故障,记录会发生什么?

  • a cluster contains one or more logical servers which can reside on one or many physical servers
  • when deploying a j2ee app to a cluster, it is tied to one server in that cluster
  • external users of the deployed app aren't aware of clustering
  • the log file of that app is located on the server it's deployed
  • if the server hosting the app fails, it's okay because the app is in a cluster and another server will pick up the work?
  • if the server hosting the app fails, what happens to logging?

也许我弄错了整个概念。有人能指出我正确的方向吗?

Maybe I got the whole concept wrong. Could anybody point me into the correct directions?

非常感谢。

推荐答案

我认为你应该首先理解Domain的概念。

I think you should understand the concept of Domain first.

域是群集的父级。它通常包含一个Admin和一个或多个托管服务器。
现在,群集是域中部分或全部这些托管服务器的分组。

The Domain is the parent of a Cluster. It contains typically one Admin and one or more Managed servers. Now the Cluster is a grouping of some or all of these managed servers within the domain.

希望此处图表有助于理解

在开发环境中自己配置域和群集后,您将了解更多相关信息。

Once you configure a Domain and a Cluster yourself on a development environment, you'll get to know more about it.

现在,这是您特定问题的答案

Now Here are the answers to your specific questions


•一个集群包含一个或多个
逻辑服务器,它们可以驻留在
一个或多个物理服务器上

•a cluster contains one or more logical servers which can reside on one or many physical servers

是的。但让我们澄清逻辑服务器的含义。
在群集中,您通常有两个或更多托管服务器。这些服务器在自己的JVM中运行,可以独立启动并独立提供请求。每个服务器都有一个唯一的IP:端口地址,可以直接从浏览器访问。但是这些服务器实例可以驻留在多个物理服务器上。

True. But let's clarify what you mean by 'logical' servers. In the Cluster you typically have two or more Managed servers. These servers run in their own JVMs and can be started independently and serve requests independently. Each server will have a unique IP:port address, and it can be directly accessed from the browser. But these server instances can reside over multiple physical servers.


•将j2ee应用程序部署到
集群时,它被绑定到
中的一个服务器该群集

•when deploying a j2ee app to a cluster, it is tied to one server in that cluster

不,它不绑定到一个服务器。 将J2EE应用程序部署到群集时 ,它将依次部署到该集群中的每个服务器。 JNDI是群集范围的,每个服务器都维护JNDI的本地副本。

No it is not tied to one server. When you deploy a J2EE app to the Cluster, it will get deployed in turn to each server in that cluster. The JNDI is cluster-wide and each server maintains a local copy of the JNDI.

您可以通过群集上的JNDI查找对象(例如EJB)个人服务器。另请参阅可以群集哪些类型的对象

You can look up the object (say an EJB) via JNDI on the Cluster or on the individual server. Also see what types of Objects can be clustered.


•已部署应用
的外部用户不知道群集

•external users of the deployed app aren't aware of clustering

是的。

但在这种情况下,您应该有一个Apache Web服务器或负载均衡器或DNS服务器从浏览器接收请求,并在内部将其映射到其中一个服务器在群集中。如果您没有这些,则必须将群集地址定义为客户端的DNS名称或IP地址。请参阅 http中的避免侦听地址问题部分://download.oracle.com/docs/cd/E13222_01/wls/docs103/cluster/setup.html#wp682940

But in this case you should have an Apache web server or a load balancer or DNS server which takes the request from the browser, and internally maps it to one of the servers in the cluster. If you dont have any of these, you would have to define the cluster address as a DNS name or IP address for the client. See the section "Avoiding Listen Address Problems " on http://download.oracle.com/docs/cd/E13222_01/wls/docs103/cluster/setup.html#wp682940


•该应用程序的日志文件位于部署的服务器上

•the log file of that app is located on the server it's deployed

是的,每台服务器一个weblogic日志。

True, one weblogic log per server.


•如果托管应用程序的服务器失败,
没关系,因为该应用程序位于
集群中另一台服务器会选择
工作吗?

•if the server hosting the app fails, it's okay because the app is in a cluster and another server will pick up the work?

默认情况下,您必须将其配置为故障转移和复制。这是一个需要单独阅读的大话题

Not by default, you have to configure it for failover and replication. This is a huge topic which needs separate reading


•如果托管应用程序的服务器失败,
记录会发生什么?

•if the server hosting the app fails, what happens to logging?

记录停止。您将在日志中看到一些关闭或心跳错误,或者在内存或失败的原因。您将不得不重新启动服务器 - 并在新文件中继续记录(取决于您的记录设置)

Logging stops. You'll see some shutdown or heartbeat errors in the log, or outofmemory or whatever reason for failure. you'll have to restart the server - and logging continues in a new file (depending on your logging settings)

这篇关于weblogic集群如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆