elastic / app-search-php

Elastic App Search Official PHP Client
https://www.elastic.co/products/app-search
Apache License 2.0
51 stars 21 forks source link

How to free disk space for enterprise search ? #52

Open Messaoudi-Nagib opened 2 years ago

Messaoudi-Nagib commented 2 years ago

Hi, I'm currently facing an issue and I don't really know how to fix it. Recently, my script for updating my engines is returning errors while I'm trying to delete/update documents on my engines. I saw into logs the current errors messages that keeps repeating itself everytime a new action is ran :

Exception: Exception while performing Work::Cron::RefreshFritoPieContentSources.perform()!: Swiftype::ES::ReadOnlyModeWriteError: index [.ent-search-db-lock] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];

It looks like App search is putting my indexes in readonly due to a small amount of disk space.

I've seen online that there are some command lines : curl -X PUT -H "Content-Type: application/json" http://127.0.0.1:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}

but these are for ElasticSearch, so I don't know if I can use it here as App-search uses ElasticSearch too...

Thank you