Intermittent 502 error when sending continuous requests

502

#1

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:
HTTP ERROR:
502 Bad Gateway

502 Bad Gateway



cloudflare


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.