Search code examples
pythonflaskkubernetesgunicornlocust

Kubernetes : An existing connection was forcibly closed by the remote host


My Website is developed using Python Flask and deployed to Kubernetes and it is running with

gunicorn -k gevent --workers=8 --threads=5 apps.webapp:app

I am doing load test my project app with 100 users and Hatching rate 10 on locust, but everytime locust is throwing error after some requests with message

enter image description here:

I am struggling to find out the root cause of this issue. Is it Locust framework can't work on kubernetes website app? Please help to understand this issue.


Solution

  • I have extended ulimit to 3000, hence issue resolved.