Project

General

Profile

Actions

Feature #3148

closed

CS policy configuration option

Added by Alex Afanasyev about 9 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Management
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

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.


Related issues 1 (0 open1 closed)

Blocked by NFD - Feature #2182: InMemoryStorage for managementClosedYanbiao Li

Actions
Actions #1

Updated by Alex Afanasyev about 9 years ago

Actions #2

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.

Actions #3

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.

Actions #4

Updated by Alex Afanasyev almost 9 years ago

  • Assignee set to Alex Afanasyev
Actions #5

Updated by Alex Afanasyev almost 9 years ago

  • Target version changed from v0.4 to v0.5
Actions #6

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
Actions #7

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.

Actions #8

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.

Actions #9

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.

Actions #10

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.

Actions #11

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.

Actions #12

Updated by Junxiao Shi almost 8 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF