How can i delete old index offline when disk is full and i cant use API because elasticsearch API doesnt work and refuse connection because data disk is full?
/dev/sdb1 100% /mnt/elastic_data
elasticsearch will not work until i free some space or grow the disk, but i cant delete old index to free space if i cant use API because is offline. what is the workaround for this scenario?
Use Elasticsearch Curator in the future to delete indices you've matched by size. The API should still let you use the DELETE call, however. If you know some of your old index names, you should still be able to run
and it should free up space. You may not be able to run other API calls, it is true, but this one should still work. If the API is not up, there is quite possibly something else going on. You may need to restart your cluster, but not allow any requests in until a DELETE has taken place.
thanks problem was that / was full also and java couldnt create temp memory file so elasticsearch was not starting. i free some space in / and was able to start and use delete api.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.