How to set up load balancing policy when using gateway-http profile?
Environment
- Red Hat JBoss Fuse
- 6.x
Issue
- What is the default load balancing policy for
gateway-httpprofile? - How to set up a
round-robinload balancing policy ongateway-httpprofile?
Resolution
gateway-http is a profile for web applications or web services usually used in front of Red Hat JBoss Fuse to distribute the traffic between all fabric containers.
By default the load balance behavior is round-robin, but you can use the following policies: round-robin, random or sticky configuring the FABRIC8HTTPGATEWAY_SERVICE_LOAD_BALANCER properties inside the io.fabric8.gateway.http.properties file as follows:
FABRIC8HTTPGATEWAY_SERVICE_LOAD_BALANCER = round-robin
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments