Load balancing problem on cluster EJB calls in Weblogic

综合编程 2018-02-16

Our Application has 2 Clusters running in Weblogic 12 C.

Each Cluster 4 Managed Servers. Cluster B is making EJB Call to Cluster A through Foreign JNDI . In Cluster A EJB Calls are not distributing across the managed server ? This results in overload of One Server in Cluster A. We are using round robin load balancing in Cluster Configuration.

Can you tell me any other configuration we can make in our Weblogic to make ejb calls get load balanced ?

Regards, Sakumar

It's like you need to set your Foreign JNDI URL to specify all of the hosts in the cluster. It doesn't matter if the cluster is load balanced if the client keeps calling the same host.

Instead of this, which will direct all traffic to one host:

java.naming.provider.url = t3://server1:port1

Try using:

java.naming.provider.url = t3://server1:port1,server2:port2

EDIT

It sounds like the weblogic algorithm is not doing what you want, look at: https://docs.oracle.com/cd/E24329_01/web.1211/e24425/load_balancing.htm#CLUST180

Specifically - the round-robin algorithm cycles through a list of WebLogic Server instances in order
. So it's hitting the first server every time because that is the first in your list. I would recommend trying another algorithm or using an external load balancer

您可能感兴趣的

一种基于SDN的服务器负载均衡方案 0 引言 网络已经成为许多商业的支撑脊柱,世界网络中每天都有新的设备加入,致使网络规模巨大化。众多的网络设备不仅意味着需要投入更多的资源,且使网络结构越加复杂化,管理难度增大且易错。为了避免网络管理错误的发生,一种新型的网络架构出现,即软件定义网络(Software Defined Net...
asp.net core中负载均衡场景下http重定向https的问题... 上周欣喜地发现,微软官方终于针对 asp.net core 在使用负载均衡的情况下从 http 强制重定向至 https 的问题提供了解决方法。 app.UseForwardedHeaders(new ForwardedHeadersOptions { ForwardedH...
关于负载均衡的一切:总结与思考 古人云,不患寡而患不均。 在计算机的世界,这就是大家耳熟能详的负载均衡( load balancing ),所谓负载均衡,就是说如果一组计算机节点(或者一组进程)提供 相同的(同质的)服务 ,那么对服务的请求就应该均匀的分摊到这些节点上。负载均衡的前提一定是“provide a single ...
微服务的接入层设计与动静资源隔离 这个系列是微服务高并发设计,所以我们先从最外层的接入层入手,看都有什么样的策略保证高并发。 系列文章第一篇:《 微服务化的基石——持续集成 》 接入层的架构画一个简图来讲包括下面的部分。 接下来我们依次解析各个部分以及可以做的优化。 一、数据中心之外:DNS、HttpD...
Thinking About Serverless Again There was a blog entry yesterday - Serverless: The New Way of Thinking (Alen Komljen) - that I felt was making a good attempt to outline why you s...