Es_rejected_execution_exception - what steps do I need to take?

I am using Elasticsearch docker image 7.17.4.

I am on a 12 core machine using Python and the helpers.parallel_bulk() function with the default thread count and queue size.

The error I get is

elasticsearch.ApiError: ApiError(429, 'es_rejected_execution_exception', 'rejected execution of coordinating operation [coordinating_and_primary_bytes=51058829, replica_bytes=0, all_bytes=51058829, coordinating_operation_bytes=18165106, max_coordinating_and_primary_bytes=53687091]')

What do I need to add to my Docker config, or change to not get this error?

Hi @corndog!

Read this solution.

Hey very cool that did it -
In docker-compose I added these environment variables:

  • "ES_JAVA_OPTS=-Xms2g -Xmx2g"
1 Like

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