Skip to content

Commit

Permalink
changed dummy disk cache size from 1 MB -> 10 GB
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Alfonsi committed Dec 11, 2023
1 parent 47453e1 commit 216d99d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions distribution/src/config/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ ${path.logs}
# opensearch.experimental.feature.tiered_caching.enabled: false
#
# Settings related to tiered caching:
# index.requests.cache.tiered.disk.keystore.size: 0.05%
# index.requests.cache.tiered.disk.stale_cleanup_threshold: 0.5
# indices.requests.cache.tiered.disk.ehcache.min_threads: 2
# indices.requests.cache.tiered.disk.ehcache.max_threads: 2
# indices.requests.cache.tiered.disk.ehcache.write_concurrency: 2
# indices.requests.cache.tiered.disk.ehcache.segments: 16
#index.requests.cache.tiered.disk.keystore.size: 0.05%
#index.requests.cache.tiered.disk.stale_cleanup_threshold: 0.5
#indices.requests.cache.tiered.disk.ehcache.min_threads: 2
#indices.requests.cache.tiered.disk.ehcache.max_threads: 2
#indices.requests.cache.tiered.disk.ehcache.write_concurrency: 2
#indices.requests.cache.tiered.disk.ehcache.segments: 16
#
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public final class IndicesRequestCache implements TieredCacheEventListener<Indic

if (FeatureFlags.isEnabled(FeatureFlags.TIERED_CACHING)) {
// enabling this for testing purposes. Remove/tweak!!
long CACHE_SIZE_IN_BYTES = 1000000L;
long CACHE_SIZE_IN_BYTES = 10000000000L; // 10 GB - change when integrating Sagar's code
String SETTING_PREFIX = "indices.request.cache";
String STORAGE_PATH = indicesService.getNodePaths()[0].indicesPath.toString() + "/request_cache";

Expand Down

0 comments on commit 216d99d

Please sign in to comment.