Type.fetch() is returning codes 503 and 504

#1

Sample output:

504 (GATEWAY_TIMEOUT)
503 (Service Unavailable: Back-end server is at capacity)
#2

One or more master nodes on the cluster have run out of memory. Contact Ops to restart the master nodes.