Calculation of the degree of participation of a server in a cluster using half-life decay
First Claim
Patent Images
1. A computer-implemented method for calculating a degree of participation of a cache node of a cluster of cache nodes in a tree-based structure, the method comprising:
- maintaining a log of timestamps for each access to the cache node;
weighting the timestamps to treat recent accesses with priority over older accesses, wherein older accesses decay in priority exponentially using a half-life constant;
storing, for each cache node in the cluster, a degree of participation (Dp), a timestamp of when the degree of participation was calculated (Dt), a list of timestamps when the group was accessed (At), a half-life decay constant (H), wherein Dp and Dt are calculated and stored to minimize the number of elements in At; and
computing the degree of participation (Dp) with Dp=Dp×
(½
^((Tc−
At)/H)), wherein Tc is the current time in milliseconds,wherein the degree of participation is a function of a total number of accesses to the cache node.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for calculating a degree of participation of a server in a group of servers is disclosed. In one embodiment, a memory stores timestamps for each access to the server. A processor weights the timestamps to treat more recent accesses as more important than older accesses, wherein older accesses decay in importance exponentially using a half-life constant.
-
Citations
10 Claims
-
1. A computer-implemented method for calculating a degree of participation of a cache node of a cluster of cache nodes in a tree-based structure, the method comprising:
-
maintaining a log of timestamps for each access to the cache node; weighting the timestamps to treat recent accesses with priority over older accesses, wherein older accesses decay in priority exponentially using a half-life constant; storing, for each cache node in the cluster, a degree of participation (Dp), a timestamp of when the degree of participation was calculated (Dt), a list of timestamps when the group was accessed (At), a half-life decay constant (H), wherein Dp and Dt are calculated and stored to minimize the number of elements in At; and computing the degree of participation (Dp) with Dp=Dp×
(½
^((Tc−
At)/H)), wherein Tc is the current time in milliseconds,wherein the degree of participation is a function of a total number of accesses to the cache node. - View Dependent Claims (2)
-
-
3. A computer-implemented method for calculating a degree of participation of a server in a group of servers, the method comprising:
-
maintaining a log of timestamps for each access to the server; and weighting the timestamps to treat recent accesses with priority over older accesses, wherein older accesses decay in priority exponentially using a half-life constant; storing, for each cache node in the group, a degree of participation (Dp), a timestamp of when the degree of participation was calculated (Dt), a list of timestamps when the group was accessed (At), a half-life decay constant (H), wherein Dp and Dt are calculated and stored to minimize the number of elements in At; and computing the degree of participation (Dp) with Dp=Dp×
(½
^((Tc−
At)/H)), wherein Tc is the current time in milliseconds,wherein the degree of participation is a function of a total number of accesses to the server. - View Dependent Claims (4)
-
-
5. A computer-readable storage medium, having instructions stored therein, which when executed, cause a computer system to perform a method for calculating a degree of participation of a cache node of a cluster of cache nodes in a tree-based structure comprising:
-
maintaining a log of timestamps for each access to the cache node; and weighting the timestamps to treat recent accesses with priority over older accesses, wherein older accesses decay in priority exponentially using a half-life constant; storing, for each cache node in the cluster, a degree of participation (Dp), a timestamp of when the degree of participation was calculated (Dt), a list of timestamps when the group was accessed (At), a half-life decay constant (H), wherein Dp and Dt are calculated and stored to minimize the number of elements in At; and computing the degree of participation (Dp) with Dp=Dp×
(½
^((Tc−
At)/H)), wherein Tc is the current time in milliseconds,wherein the degree of participation is a function of a total number of accesses to the cache node. - View Dependent Claims (6)
-
-
7. A computer-readable storage medium, having instructions stored therein, which when executed, cause a computer system to perform a method for calculating a degree of participation of a server in a group of servers comprising:
-
maintaining a log of timestamps for each access to the server; weighting the timestamps to treat recent accesses with priority over older accesses, wherein older accesses decay in priority exponentially using a half-life constant; storing, for each cache node in the cluster, a degree of participation (Dp), a timestamp of when the degree of participation was calculated (Dt), a list of timestamps when the group was accessed (At), a half-life decay constant (H), wherein Dp and Dt are calculated and stored to minimize the number of elements in At; and computing the degree of participation (Dp) with Dp=Dp×
(½
^((Tc−
At)/H)), wherein Tc is the current time in milliseconds,wherein the degree of participation is a function of a total number of accesses to the server. - View Dependent Claims (8)
-
-
9. An apparatus for calculating a degree of participation of a cache node of a cluster of cache nodes in a tree-based structure, the apparatus comprising:
-
a memory configured to store a log of timestamps for each access to the cache node; and a processor coupled to the memory, the processor configured to weight the timestamps to treat recent accesses with priority over older accesses, wherein older accesses decay in priority exponentially using a half-life constant, wherein the memory is configured to store, for each cache node in the cluster, a degree of participation (Dp), a timestamp of when the degree of participation was calculated (Dt), a list of timestamps when the group was accessed (At), a half-life decay constant (H), Dp and Dt are calculated and stored to minimize the number of elements in At, wherein the processor is configured to compute the degree of participation (Dp) with Dp=Dp×
(½
^((Tc−
At)/H)), wherein Tc is the current time in milliseconds, and to empty the list of At collected after computing the degree of participation Dp.
-
-
10. An apparatus for calculating a degree of participation of a server in a group of servers, the apparatus comprising:
-
a memory configured to store a log of timestamps for each access to the server; and a processor coupled to the memory, the memory configured to weight the timestamps to treat recent accesses with priority over older accesses, wherein older accesses decay in priority exponentially using a half-life constant, wherein the memory is configured to store, for each server in the group, a degree of participation (Dp), a timestamp of when the degree of participation was calculated (Dt), a list of timestamps when the group was accessed (At), a half-life decay constant (H), Dp and Dt are calculated and stored to minimize the number of elements in At, wherein the processor is configured to compute the degree of participation (Dp) with Dp=Dp×
(½
^((Tc−
At)/H)), wherein Tc is the current time in milliseconds, and to empty the list of At collected after computing the degree of participation Dp.
-
Specification