Skip to content

Commit

Permalink
Add block size setting to file_cache
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <carrofin@amazon.com>
  • Loading branch information
finnegancarroll committed Jul 23, 2024
1 parent 5e26dfe commit a04ea27
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ public class FileCacheSettings {
Setting.Property.Dynamic
);

/**
* The size in bytes of blocks downloaded from the remote store into local file cache to service requests.
* Note that almost always the full block is downloaded, regardless of how much data from the block is actually
* required for an operation.
*/
public static final Setting<Integer> FILE_CACHE_LOCAL_BLOCK_SHIFT_SETTING = Setting.intSetting(
"cluster.filecache.block_shift",
23,
10,
30,
Setting.Property.NodeScope,
Setting.Property.Dynamic
);

private volatile double remoteDataRatio;

public FileCacheSettings(Settings settings, ClusterSettings clusterSettings) {
Expand Down

0 comments on commit a04ea27

Please sign in to comment.