dockersamples / example-voting-app

Example distributed app composed of multiple containers for Docker, Compose, Swarm, and Kubernetes
Apache License 2.0
4.65k stars 10.57k forks source link

Optimize: worker-deployment.yaml #356

Closed piyushsachdeva closed 2 months ago

piyushsachdeva commented 2 months ago

Issue: The worker deployment encountered internal server errors with only 1 replica.

The frontend voting application crashes when we click multiple times on the vote button. Scaling the worker deployment to 3 replicas will distribute the load more evenly and significantly improve the web application's performance and stability. I updated replicas from 1 to 3 in worker deployment.yaml to fix the issue.