visheshdembla / Panorama

Highly Available, Fault Tolerant Photo Sharing App
0 stars 2 forks source link

Configure NGINX for Blue-Green Deployment #215

Closed visheshdembla closed 3 years ago

visheshdembla commented 3 years ago

Configure NGINX with the deployment to route traffic between the two deployments

visheshdembla commented 3 years ago

Added NGINX to the UI. The logic to load balance can be added to the UI. Since we only need to load balance two services, that are the gateway services of the application, we can do that directly using NGINX.

visheshdembla commented 3 years ago

Completed load balancing for green blue deployment. In normal working scenarios, the requests are balanced across the services in a round robin fashion. Since the services are stateless in nature, the requests are processed properly without any issues.

In case one of the cluster goes down, the request is redirected to the other server.

https://github.com/airavata-courses/Panorama/commit/9b41c9aabf9c868d1bce90d7d1d647e0a5764e8a

surajp28 commented 3 years ago

The load-balancing was shown as part of the end-term presentations where the services were working in spite of a cluster being down.

surajp28 commented 3 years ago

Also, as mentioned in the presentations, the initial approach was to go with Istio. However, due to configuration issues, we went with nginx