Skip to content

Commit 83020eb

Browse files
doc : add 'With Load Balancer'
1 parent 72c6ac0 commit 83020eb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
- [Production Deployment](#production-deployment)
3838
- [Upload Image (CI/CD Server -> Git)](#upload-image-cicd-server---git)
3939
- [Download Image (Git -> Production Server)](#download-image-git---production-server)
40+
- [With Load Balancer](#with-load-balancer)
4041
- [Extra Information](#extra-information)
4142
- [Test](#test)
4243
- [Check Source Integrity of 'Docker-Blue-Green-Runner'](#check-source-integrity-of-docker-blue-green-runner)
@@ -484,6 +485,25 @@ bash check-source-integrity.sh
484485
GIT_IMAGE_VERSION=1.0.0
485486
```
486487
488+
### With Load Balancer
489+
```mermaid
490+
graph TD;
491+
A[Load Balancer] --->|Distribute Traffic| B[Server 1]
492+
A --->|Distribute Traffic| C[Server 2]
493+
A --->|Distribute Traffic| D[Server 3]
494+
E[Git] -->|Download Image| B[Server 1]
495+
E -->|Download Image| C[Server 2]
496+
E -->|Download Image| D[Server 3]
497+
F[CI/CD Server] -->|Upload Image| E[Git]
498+
```
499+
- Set the Load Balancer to use "Round-Robin"
500+
- What is "Round-Robin"?
501+
- Round-robin is a load-balancing method that distributes incoming requests evenly across all available servers in a sequential order. For example, the first request goes to Server 1, the second request to Server 2, the third request to Server 3, and then it cycles back to Server 1. This ensures a balanced distribution of traffic across the servers.
502+
- Set the 'Docker-Blue-Green-Runner' on each server.
503+
- Run ``run.sh`` on ``Server 1``
504+
- Check the logs on ``Server 1``, if any issues are found, run the command ``rollback.sh``.
505+
- If no problems are detected, run the command ``run.sh`` on both ``Server 2`` and ``Server 3``.
506+
- This process can be automated as well using Jenkins.
487507
488508
## Extra Information
489509

0 commit comments

Comments
 (0)