Intermittent 502 error when sending continuous requests

I have a dedicated cluster running elasticsearch. The requests are getting routed from Cloudflare (orange cloud). I get intermittent 502 error when I run a script to index data into elasticsearch (bulk indexing). I checked my nginx logs but did not find any 502 errors.
I request body I get is:
502 Bad Gateway

502 Bad Gateway


Is there any rate limiting done from Cloudflare, as is mentioned here.
If so, where is this documented?
Any points on resolving this will be of great help. I am running my server on a GKE cluster and using Cloudflare shared SSL cert.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.