You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closed indices consume a significant amount of disk-space which can cause problems in managed environments. Closing indices can be disabled via the cluster settings API by setting cluster.indices.close.enable to false. The default is true.
Some clusters may have the default value of cluster.indices.close.enable set to false.
Which can produce this kind of exception : Uncaught Elastica\\Exception\\ResponseException: closing indices is disabled - set [cluster.indices.close.enable: true] to enable it. NOTE: closed indices still consume a significant amount of diskspace
Some ideas:
check if the closing indices parameter is true before trying to close it (if false then just continue)
add a way to set cluster.indices.close.enable to true before closing (and reset it to it's previous state after)
either : add a "forceCloseMode" parameter to purgeOldIndices
The text was updated successfully, but these errors were encountered:
damienalexandre
changed the title
purgeOldIndices raise exception if closing indices isn't allowed on the cluster.
[Feature] purgeOldIndices raise exception if closing indices isn't allowed on the cluster.
Nov 13, 2024
damienalexandre
changed the title
[Feature] purgeOldIndices raise exception if closing indices isn't allowed on the cluster.
[Feature] purgeOldIndices raise exception if closing indices isn't allowed on the cluster
Nov 13, 2024
The Close API doc says :
Some clusters may have the default value of
cluster.indices.close.enable
set tofalse
.Which can produce this kind of exception :
Uncaught Elastica\\Exception\\ResponseException: closing indices is disabled - set [cluster.indices.close.enable: true] to enable it. NOTE: closed indices still consume a significant amount of diskspace
Some ideas:
true
before trying to close it (iffalse
then just continue)cluster.indices.close.enable
totrue
before closing (and reset it to it's previous state after)Besides, the Cluster Update Settings API doc gives the following order of precedence:
Then my actual code to do this force mode on my side
The text was updated successfully, but these errors were encountered: