Highly Available and Customizable Load Balancer (prefer HAProxy) in Oracle Cloud Infrastracture (OCI) - load-balancing

I am in need for highly available and customizable Load Balancer instead of needing to use the default Load balancer.
How can i setup HA Proxy based Load Balancer in Oracle Cloud Infrastracture (OCI)

You should try it using these guides:
for Oracle Linux 6:
https://docs.oracle.com/cd/E37670_01/E41138/html/section_jf5_zsb_nr.html
for Oracle Linux 7:
https://docs.oracle.com/cd/E52668_01/E54669/html/section_jf5_zsb_nr.html

Related

mod_cluster application for load balancing in JBoss cluster

I have to create a system with JBoss in cluster modality with a load balancer using Apache HTTPD with mod_cluster.
I have configured the system correctly, and the load balancer see all nodes of the system. But, I have to create the web application for the load balancer now.
It has to be a servlet or a REST service that has a reference to a remote bean and make a lookup with JNDI? Or is something different?
Can someone provide to me a reference to a documentation/tutorial that explain that?
mod_cluster is a Apache module that does the HTTP(S) load balancing.
Read more here: http://mod-cluster.jboss.org/
The whole application is installed in JBoss mod_cluster just does the load balancing.
mod_cluster is just for load balancing. Just deploy the web app against the server group created. It gets deployed on master and slaves and can access the remote bean as required.
You can dig into our mod_cluster testing servlets on clusterbench/clusterbench or vastly simplified, lobotomized version.
All new documentation effort is accumulated on: http://modcluster.io
TL;DR
create any servlet application
deploy to your workers and it's good to go
if you want web sessions replicated in the cluster, add <distributable/> to your WEB-INF/web.xml

Weblogic vs Apache load balancer

In our typical production environment, Apache web server works as proxy to our application server like weblogic. I have question about load balancing. Both apache and web logic provide its own functionality of load balancing. If apache can balance the load, what is the use of web logic load balancer.
As mentioned in the oracle doc Load Balancing, there are many ways of doing load balancing for weblogic. Should you already have an Apache web server, it is better to use that instead of having Weblogic do the load balancing. The load balancer must typically be off the JVM because the should there be higher traffic, weblogic must have reserve resources for these incidents. Apache does load balancing very easily but weblogic requires more effort as it is an additional feature. Its basically like a boat in water and a car that can also float (the car being weblogic).

weblogic AS: application deployed on a cluster with two managed servers

I'm on Weblogic AS 10.3.5, I have two managed servers pointed to a cluster, so I have two url, one for the first managed server, the other one for the second.
I will deploy my application on the cluster, so will I reach it on both the url? will the application deployed and running on both the servers?
How does it work? Can you give me some references, please?
Is it clear?
Thanks a lot!
First, you shouldn't be using WebLogic 10.3.5 anymore since it has reached the last stage of support called Sustained Support. Consider to upgrade at least to WebLogic 10.3.6.
Related to your question, I believe you are talking about a Web Application and how to access it. First you need to read about Load Balancing in a Cluster. For the web part (JSP and Servlets) basically you have to options: setup a Web Server (like Apache HTTP) to make use of the WebLogic Plug-in, that will then be connected to the WebLogic cluster. The other easier option is to simply use an LBR (load balance router hardware).
These are the "software" solutions you have for Load Balancing your web application in a clustered WebLogic:
WebLogic Server supports the following Web servers and associated
proxy plug-ins:
WebLogic Server with the HttpClusterServlet
Netscape Enterprise Server with the Netscape (proxy) plug-in
Apache with the Apache Server (proxy) plug-in
Microsoft Internet Information Server with the Microsoft-IIS (proxy) plug-in
You can read more about this options at the Configure Proxy Plug-ins documentation page for WebLogic 10.3.6.

jasperserver strictly requires session affinity which is not possible in Microsoft Azure Load Balanced Virtual Machines

I have deployed jasperserver with my web application in the environment like Clustered two Tomcat sharing same database in Microsoft Azure Load Balanced Virtual Machines. But the problem is jasperserver strictly requires session affinity which is not possible in Microsoft Azure Load Balanced Virtual Machines.
1) If you have any other solution/suggestion which is suitable for my environment, please guide me.
2) Which one is best suitable for my environment and why ? on comparing Azure load balanced Virtual Machines and Apache httpd load balancing.
Environment :
1) Jasperserver 5.5 Commercial edition with session replication.
2) Two apache-tomcat-6.0.36 clustered instance sharing same database (Mysql 5.5).
3) Linux Machine - Ubuntu 13.10 Server in Azure load balanced Virtual Machines.
Thanks in advance for reading and answering my question. Every comment/idea is highly appreciated.
Look at publishing a VM using the new (in preview) reserved public IP which avoids the cloud service / load balancing setup. This VM could run your own custom load balancing setup that would allow session affinity (Kemp also offer their load balancer in azure - http://kemptechnologies.com/au/solutions/loadmaster-azure). You could create a couple of these VMs and then use Azure Traffic Manager to front-end the setup.
Please tell what are the steps needs to be follow for Kemp Load balancer which replaces Azure load balancing. Thanks, Vasanth N

Load Balancing with Apache Traffic Server

I was looking to use Apache Traffic Server for its reverse proxy functionality, but I also need it to load balance across clusters of servers. The documentation mentions load balancing, but I cannot find any details about it. Could someone please confirm one way or the other, and if it does support it, could you please provide a pointer to the documentation.
You will need mod_proxy & mod_proxy_balancer, per the docs
Out of the box, Apache Traffic Server only supports round robin load balancing using dns to resolve to multiple origins.
There is a plugin which offers more advanced balancing capabilities though:
https://github.com/apache/trafficserver/tree/master/plugins/experimental/balancer