Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS ElasticSearchService index_create_block_exception

I'm trying to create a new index in AWS ElasticSearch cluster after increasing the cluster size and seeing index_create_block_exception. How can i rectify this? I tried searching but did not get exact answers. Thank you.

curl -XPUT 'http://<aws_es_endpoint>/optimus/'

{"error":{"root_cause":[{"type":"index_create_block_exception","reason":"blocked by: [FORBIDDEN/10/cluster create-index blocked (api)];"}],"type":"index_create_block_exception","reason":"blocked by: [FORBIDDEN/10/cluster create-index blocked (api)];"},"status":403}
like image 942
Abhishek Agarwal Avatar asked Nov 22 '16 07:11

Abhishek Agarwal


1 Answers

According to AWS, the above exception is being thrown due to a low memory in disks.

For t2 instances, when the JVMMemoryPressure metric exceeds 92%, Amazon ES triggers a protection mechanism by blocking all write operations to prevent the cluster from getting into red status. When the protection is on, write operations will fail with a ClusterBlockException error, new indexes cannot be created, and the IndexCreateBlockException error will be thrown.

I'm afraid the issue is still on.

like image 74
Kulasangar Avatar answered Sep 21 '22 13:09

Kulasangar