As promised before, today i want to share about using jPOS MUXPool as Load Balancer. This is internal load balancer, so we don’t need to buy external load balancer. The idea is using two layer instance, the load balancer instance and worker instance.
The benefit when using MUXPool is, that when there are fault for example link down on Instance 1, MUXPool will automatically send the request with next available MUX.
In this post, i will share the MUXPool configuration. But, if you really need the source, you can contact me here
With jPOS version 1.9.2 MUXPool, there are two load balancing methods: Round Robin, and Primary Secondary methods. From the latest version, there are four type balancing you can find here
First, create two channel that using same configuration specs, but different destination port.
[xml]
[/xml]
[xml]
[/xml]
And then, create two mux that will use each channel adaptor.
[xml]
[/xml]
[xml]
[/xml]
We have to pay attention with in out for each mux and channelAdapter. And the MUXPool configuration just like this:
[xml]
[/xml]
That’s All the jPOS MUXPool as Load Balancer.. Hope this post can help you. Thanks for visiting my blog.
Leave a Reply