Feature #3148
closed
CS policy configuration option
Added by Alex Afanasyev about 9 years ago.
Updated almost 8 years ago.
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.
- 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.
Agree. The reason I used "fifo", because it is currently called this way in POLICY_NAME
constant.
- Assignee set to Alex Afanasyev
- Target version changed from v0.4 to v0.5
- 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
- % 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.
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.
- % Done changed from 30 to 40
- % Done changed from 40 to 70
- 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.
- Status changed from Resolved to Closed
Also available in: Atom
PDF