[Rails] Elasticsearch TOO_MANY_REQUESTS error
在寫 rspec 的時候, model 內有使用到 elasticsearch
將本地端 elasticsearch 啟動後, 執行 rspec 噴了這個錯誤
TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block
Solution:
curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
Ref: