Dynamically altering time to live values in a data cache
First Claim
Patent Images
1. A method for dynamically adjusting a TTL value for a data object stored in-memory in a data grid, comprising:
- setting a stale data tolerance policy;
calculating metrics with a processor to report a cost to re-create and re-store the data object;
adjusting the TTL value based on said metrics, said adjusting the TTL value further comprising using administrative input and including a stale data policy;
provisioning additional in-memory storage in order to handle potential data expansion resulting from storing the data for longer periods of time before eviction when a cost of recreation, thereof, is above a policy value; and
provisioning less in-memory storage in order to benefit from potential data contraction resulting from storing the data for shorter periods of time before eviction when a cost of recreation, thereof, is below a policy value.
1 Assignment
0 Petitions
Accused Products
Abstract
A TTL value for a data object stored in-memory in a data grid is dynamically adjusted. A stale data tolerance policy is set. Low toleration for staleness would mean that eviction is certain, no matter the cost, and high toleration would mean that the TTL value would be set based on total cost. Metrics to report a cost to re-create and re-store the data object are calculated, and the TTL value is adjusted based on calculated metrics. Further factors, such as, cleanup time to evict data from a storage site, may be considered in the total cost.
-
Citations
6 Claims
-
1. A method for dynamically adjusting a TTL value for a data object stored in-memory in a data grid, comprising:
-
setting a stale data tolerance policy; calculating metrics with a processor to report a cost to re-create and re-store the data object; adjusting the TTL value based on said metrics, said adjusting the TTL value further comprising using administrative input and including a stale data policy; provisioning additional in-memory storage in order to handle potential data expansion resulting from storing the data for longer periods of time before eviction when a cost of recreation, thereof, is above a policy value; and provisioning less in-memory storage in order to benefit from potential data contraction resulting from storing the data for shorter periods of time before eviction when a cost of recreation, thereof, is below a policy value. - View Dependent Claims (2)
-
-
3. A computer system for dynamically adjusting a TTL value for a data object stored in-memory in a data grid, comprising:
-
a processor; and memory connected to the processor, wherein the memory is encoded with instructions and wherein the instructions when executed comprise; instructions for setting a stale data tolerance policy; instructions for calculating metrics to report a cost to re-create and re-store the data object; instructions for adjusting the TTL value based on said metrics, said instructions for adjusting the TTL value further comprising instructions for using administrative input and instructions for including a stale data policy; instructions for provisioning additional in-memory storage in order to handle data expansion resulting from storing the data in-memory for longer periods of time before eviction, thereof, when a cost of recreation thereof is above a policy value; and instructions for provisioning less in-memory storage in order to benefit from data contraction resulting from storing the data in-memory for shorter periods of time before eviction, thereof, when a cost of recreation thereof is below a policy value. - View Dependent Claims (4)
-
-
5. A computer program product for dynamically adjusting a TTL value for a data object stored in-memory in a data grid, the computer program product comprising a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising:
-
computer readable program code configured to set a stale data tolerance policy; computer readable program code configured to calculate metrics to report a cost to re-create and re-store the data object; computer readable program code configured to adjust the TTL value based on said metrics, said computer readable program code configured to adjust the TTL value further comprising computer readable program code configured to use administrative input and computer readable program code configured to include a stale data policy; computer readable program code configured to provision additional in-memory storage in order to handle potential data expansion resulting from storing the data in-memory for longer periods of time before eviction thereof, when a cost of recreation, thereof, is above a policy value; and computer readable program code configured to provision less in-memory storage in order to benefit from potential data contraction resulting from storing the data in-memory for shorter periods of time before eviction thereof, when a cost of recreation, thereof, is below a policy value. - View Dependent Claims (6)
-
Specification