Feature #3148
closedCS policy configuration option
100%
Description
Add a configuration option for ContentStore policy.
This is non-runtime settings (i.e., cannot be switched without restarting NFD).
The setting should be
...
tables
{
# CS policy. Possible values are "priority_fifo" (default), "lru"
cs_policy "lru"
...
}
...
NFD Developer Guide should be updated as part of this issue.
Updated by Alex Afanasyev about 9 years ago
- Blocked by Feature #2182: InMemoryStorage for management added
Updated by Junxiao Shi about 9 years ago
- Subject changed from Allow configuring non-default CS policy in nfd.conf to Allow configuring CS policy in nfd.conf
- Description updated (diff)
- Estimated time set to 3.00 h
"fifo" is inaccurate. It should be "priority_fifo" because unsolicited and stale Data are evicted first.
Updated by Alex Afanasyev about 9 years ago
Agree. The reason I used "fifo", because it is currently called this way in POLICY_NAME
constant.
Updated by Alex Afanasyev almost 9 years ago
- Target version changed from v0.4 to v0.5
Updated by Junxiao Shi almost 8 years ago
- Subject changed from Allow configuring CS policy in nfd.conf to CS policy configuration option
- Status changed from New to In Progress
- Assignee changed from Alex Afanasyev to Junxiao Shi
- Target version changed from v0.5 to v0.6
Updated by Junxiao Shi almost 8 years ago
- % Done changed from 0 to 30
https://gerrit.named-data.net/3348 introduces a cs::Policy
registration. Implementation is adapted from UnsolicitedDataPolicy
registry.
This is manually tested by modifying makeDefaultPolicy
function and observing Cs::setPolicyImpl
logging.
Updated by Junxiao Shi almost 8 years ago
we need at least another method to get names of available policies (for diagnostic message)
This should be applicable to CS policies, unsolicited Data policies, and strategies.
However, I wonder what's the use case?
For CS policies and unsolicited Data policies, there are only a small number of them, no runtime changes are allowed, and the full list is in nfd.conf
sample.
Updated by Junxiao Shi almost 8 years ago
- % Done changed from 30 to 40
https://gerrit.named-data.net/3416 adds cs::Policy::getPolicyNames()
function which returns names of available policies.
Updated by Junxiao Shi almost 8 years ago
- % Done changed from 40 to 70
https://gerrit.named-data.net/3417 adds tables.cs_policy
config option.
Remaining work is to update NFD devguide.
Updated by Junxiao Shi almost 8 years ago
- Status changed from In Progress to Resolved
- % Done changed from 70 to 100
NFD devguide is updated in nfd-docs:commit:e9b3753d50e4d6b35d8c7d72f72f1cb3824d4f1f and nfd-docs:commit:613fd0392226f11a7126e45780276a99c3e67710 to describe the tables.cs_policy
config key. I also rewrote text for cs::Policy
API intended to clear up some confusions on ndnSIM mailing list, but I did not change the description of specific policies.
Updated by Junxiao Shi almost 8 years ago
- Status changed from Resolved to Closed