-
Notifications
You must be signed in to change notification settings - Fork 30
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
Number of audit tasks generated-per-min is not configurable #93
Comments
I have an alternate suggestion that I believe gives us both of the following.
I suggest the I suggest the following flags where
We then interpret these as the respective weights for how many jobs we pull from each source.
Each strategy can then produce audit candidates at maximum rate all of the time and will self-throttle when the channel is full. |
Ok that sounds good. So to check: If there are two strategies (
Or you could pass 10 and 20 for weights respectively to get 30 and 70 keys per period respectively |
I think we would get rid of the
|
Description
glados-audit
can be viewed as a funnel as follows:At present, the CLI can control the throughput as follows:
--concurrency <n>
flag controls the maximum funnel output rate.--strategy <strat>
flag controls the nature of tasks generated (limited effect on throughput. E.g., setting multiple--strategy random
)The two variables that control the maximum funnel input rate are:
KEYS_PER_PERIOD
. Currently hard coded as 10.AUDIT_SELECTION_PERIOD_SECONDS
. Currently hard coded as 120 (seconds)Thus max audits per minute can be calculated:
10/120 * 60 = 5
tasks (individual content key audits) per minute.3 * 10/120 * 60 = 15
tasks (individual content key audits) per minute.Noting that observed audits/min rate will be lower because audits that timeout against a portal node are not recorded as pass/fail.
The funnel has a "rim height" set to overflow at 100 pending tasks. That is, when the channel has 100 pending tasks, new
tasks generated at this point will be discarded.
Resolution
Expose funnel input control from the CLI. Options flag to:
KEYS_PER_PERIOD
variable.AUDIT_SELECTION_PERIOD_SECONDS
variable.KEYS_PER_PERIOD
andAUDIT_SELECTION_PERIOD_SECONDS
variables.--max-task-rate <n = max audits per min>
flag that controls maximum audits per minute that are generated.a. Titrate
AUDIT_SELECTION_PERIOD_SECONDS
ton
, taking into account number of strategies andKEYS_PER_PERIOD
b. Titrate
KEYS_PER_PERIOD
ton
, taking into account number of strategies andAUDIT_SELECTION_PERIOD_SECONDS
.Current flags
The text was updated successfully, but these errors were encountered: