Skip to content

Commit

Permalink
Change default value of MAX_SHARDS_ALLOWED_IN_STATUS_API
Browse files Browse the repository at this point in the history
Signed-off-by: Lakshya Taragi <[email protected]>
  • Loading branch information
ltaragi committed Sep 2, 2024
1 parent 9ea0421 commit 397cbb1
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,13 @@ public class SnapshotsService extends AbstractLifecycleComponent implements Clus
Setting.Property.Dynamic
);

// TODO: discuss values and name to be used here
/**
* Setting to specify the maximum number of shards that can be included in the result for the snapshot status
* API call. Note that it does not apply to V2-shallow snapshots.
*/
public static final Setting<Integer> MAX_SHARDS_ALLOWED_IN_STATUS_API = Setting.intSetting(
"snapshot.max_shards_allowed_in_status_api",
1000,
10000,
1,
Setting.Property.NodeScope,
Setting.Property.Dynamic
Expand Down

0 comments on commit 397cbb1

Please sign in to comment.