Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an algorithm of storage maintenance (IG Cap). #859

Merged
merged 10 commits into from
Oct 25, 2023
Merged
Prev Previous commit
Next Next commit
Small re-wording.
Qingxin Wu committed Oct 12, 2023
commit 50c9f41c529b9d5c763e4a608e0b70aee333f95f
16 changes: 8 additions & 8 deletions spec.bs
Original file line number Diff line number Diff line change
@@ -450,16 +450,16 @@ To <dfn>build an interest group permissions url</dfn> given a [=origin=] |ownerO

<h3 id="interest-group-storage-maintenance">Interest Group Storage Maintenance</h3>

There is a job that periodically performs maintenance on the user agent's [=interest group set=],
such as [=list/removing=] expired, or more than allowed [=interest groups=] which include the
following limitations:
* no more than 2000 owners;
* no more than 1000 [=regular interest groups=] per owner;
* no more than 20000 [=negative interest groups=] per owner;
* no more than <code>10\*1024\*1024</code> total size of interest groups per owner.
There is a job that periodically [=performs storage maintenance=] on the user agent's
[=interest group set=]. It performs operations such as [=list/removing=] expired or excess
[=interest groups=]. It's required that [=interest group set=] has no more than:
qingxinwu marked this conversation as resolved.
Show resolved Hide resolved
* 2000 owners;
* 1000 [=regular interest groups=] per owner;
* 20000 [=negative interest groups=] per owner;
* <code>10\*1024\*1024</code> total size of interest groups per owner.

<div algorithm='maintenance'>
qingxinwu marked this conversation as resolved.
Show resolved Hide resolved
To perform storage maintenance:
To <dfn>perform storage maintenance</dfn>:

1. Let |ownersAndExpiry| be a new [=ordered map=] whose [=map/keys=] are [=origins=]
[=interest group/owner=] and [=map/values=] are [=moments=] [=interest group/expiry=].
qingxinwu marked this conversation as resolved.
Show resolved Hide resolved