Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add cache decider and modify cache action #303

Merged
merged 1 commit into from
Jul 27, 2020
Merged

Conversation

sruti1312
Copy link
Contributor

Issue #:

Description of changes:
Added a decider that determines if field data cache and shard request cache has to be modified.
Added an action to modify the caches.

Tests:
Unit tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.


public class ModifyCacheCapacityAction implements Action {
public static final String NAME = "modifyCacheCapacity";
public static final long COOL_OFF_PERIOD_IN_MILLIS = 300 * 1_000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this setting be eventually moved to a yaml/config file?

import java.util.List;
import java.util.Map;

public class ModifyCacheCapacityAction implements Action {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add some javadoc here explaining what the class is trying to achieve.

@sruti1312 sruti1312 added the feature New feature label Jul 27, 2020
@sruti1312 sruti1312 merged commit 9cacb33 into master Jul 27, 2020
@sruti1312 sruti1312 deleted the partsrut-cache-decider branch July 27, 2020 21:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants