I have a aggregation query written in nodejs. I have couple of aggregation queries in the node api.
It happens randomly and only a couple times in a day that I get error
Invoke Error {
"msg":"Service Unavailable",
"path":"/index_name/_search",
"query":{"type":"_doc"},
"body":"{\"query\":{<aggregation queries>}}",
"statusCode":503,
"response":"{\"Message\":null}"}
Most times it works normally.
I also get timeout error in api. I have timeout of 28s. This also happens sometimes so can't really recreate the error.
Any suggestions?