我已经定义了一个由两个节点组成的 Websphere 8.5 集群,现在我想在集群前面放置一个 HTTP 服务器来平衡调用。当我从控制台添加一个新的 Web 服务器时,我可以选择Node1或Node2,但我想提供一个节点数组。
来自 Tomcat MOD_JK 背景,我曾经这样做是为了让平衡器选择哪个节点将为调用提供服务。
我应该手动编辑配置并添加对所有节点的引用(如何?)?谢谢路易斯
2 回答
Speaking from experience with earlier versions of WebSphere, you define multiple such Web Servers. That is, define one for Node1, then a second one for Node2.
Then when you deploy your application, select both the Application Server Cluster you want to deploy it to and all the Web Servers you want to participate in that cluster.
If you do this, the WebSphere plugin running under each of the Web Servers will maintain Session affinity by routing the user to the same Cluster member as long as it's available. See http://ibm.co/S2UKKn and http://ibm.co/QIs0Sg .
To actually use multiple Web Servers, you will of course still need some kind of IP load balancer or sprayer. The WebSphere product family has one in its Edge Components ( https://ibm.biz/BdxZwg ), but there are many such software products or hardware devices.
您应该创建一个新的非托管节点并将 Web 服务器配置存储在其中。当您重新生成插件配置文件时,它将被放置在非受管节点的配置目录中,然后您可以将新的配置文件复制到 Web 服务器插件的正确目录中。这是标准方法,在本红皮书草案(第 13 章和第 16 章)中有详细描述