<p>The simplest way is to find the icon that scales the application up and click it. In the current UI it's in Project --> Overview --> expand the application info (">" icon to the left), --> click "^" next to the blue circle to the right. </p>

<p>This gives you a default load-balancing across as many PODs (instances) of the application as your resources and imagination allow.</p>

<p>From the command line, this would scale it to 3 PODs:</p>

<pre><code>oc scale --replicas=3 rc yourapplicationname
</code></pre>

<p>Another way is to deploy the same application with a different name, and then edit the route (Applications --> Routes --> RouteName) that points to it. There should be an option:</p>

<blockquote>
  <p>Alternate Services / Split traffic across multiple services</p>
</blockquote>

<p>This gives you control over how much traffic you want through each version. Good for A/B testing or canary releases.</p>

CC BY-SA 4.0
2018-08-02T02:08:59.850Z
Thanks for answer, I have still seems that in my organistaion many team are using external load balancer  and not using HA proxy and openshift provided load balancing . what would be the reason ?
Ishant Gaurav
CC BY-SA 4.0
2018-08-02T15:01:53.003Z
The purpose? Maybe they are load balancing across clusters? But I think you better ask directly the teams.
ptrk
CC BY-SA 4.0
2018-07-31T16:02:05.033Z
2018-07-31T16:02:05.033Z
ptrk
<p>I have deployed my application on cloud using Openshift. I tried few blogs but could not find out the best ways to implement the Load Balancing . Please help.</p>

<docker><openshift><loadbalancing>
How to implement the Load Balancing in Openshift ?
Ishant Gaurav
# How to implement the Load Balancing in Openshift ?

(Asked by: username_0 on 2018-07-31)

I have deployed my application on cloud using Openshift. I tried few blogs but could not find out the best ways to implement the Load Balancing . Please help.

**Tags:** docker, openshift, loadbalancing


---

## 1 answers

### Answer by username_1 on 2018-07-31. Score: 1

The simplest way is to find the icon that scales the application up and click it. In the current UI it's in Project --> Overview --> expand the application info (">" icon to the left), --> click "^" next to the blue circle to the right. 
This gives you a default load-balancing across as many PODs (instances) of the application as your resources and imagination allow.
From the command line, this would scale it to 3 PODs:
oc scale --replicas=3 rc yourapplicationname

Another way is to deploy the same application with a different name, and then edit the route (Applications --> Routes --> RouteName) that points to it. There should be an option:

Alternate Services / Split traffic across multiple services

This gives you control over how much traffic you want through each version. Good for A/B testing or canary releases.

> **Comments:**
> **username_0**: Thanks for answer, I have still seems that in my organistaion many team are using external load balancer  and not using HA proxy and openshift provided load balancing . what would be the reason ?  
> **username_1**: The purpose? Maybe they are load balancing across clusters? But I think you better ask directly the teams.  

---

