Expand description
Instruction fields of ArgApp and its Configuration
config
Configuration
Some fields are required, some are not Configurable, some are optional, The following fields are configurable
ArgApp
Argument | Type | Description |
---|---|---|
skip | bool | true as default, use the files stroed in data_dir or not, if not a new |
spawn_task_max | usize | 100 as default, the maximal length of spawned tasks |
buf_task | usize | 10000 as default, the length of Task collected by parser s, exceeding which all Task will be stored into data_dir/tasks/ for memory saving |
round_entity | usize | 10 as default, the number of entities exceed which process_entity is called to consume them session will started all older files will be truncated. |
data_dir | String | data/ as default, the place to store or load files of App when reaching rate.cycle |
nap | f64 | 15.0 as default, the duration after which generated Task or Affix or recycled Affix become availible |
join_gap | f64 | 7.0 as default, the duration which the spawned task exceeds the executor is called to forcefully join it |
round_req | usize | 10 , for more to see ArgApp |
round_req_min | usize | 5 , for more to see ArgApp |
round_req_max | usize | 77 , for more to see ArgApp |
round_task | usize | 10 as default, for more to see ArgApp |
round_task_min | usize | 7 , for more to see ArgApp |
round_res | usize | 10 as default, for more to see ArgApp |
round_errs | usize | 10 as default, the number of Response cannot be parsed, exceed which process_entity is called to consume them, |
ArgAffix
Argument | Type | Description |
---|---|---|
arg_affix.is_on | bool | false as defalut, enable affix customization or not, when true, Affixor must be implemented |
arg_affix.affix_min | usize | 0 as default the minimal length of affix( including these in use or in future ) |
arg_affix.affix_max | usize | 0 as default the minimal length of affix( including, these in use or in future ) |
ArgRate
Argument | Type | Description |
---|---|---|
rate.cycle | f64 | 600.0 as default, the duration after which backup files of App |
rate.load | f64 | 99.0 as default, the load to be spawned in each interval , |
rate.rate_low | f64 | 0.333 as dafault, a value between 0-1.0 that lower the taks to be spawned, eg. the oringnal value is 12, rate_low is 0.33, the tasks to be spawned is 12.0 * 0.33 ~ 4. |
rate.err | usize | the nubmer that erros of Response occurs, the default value is 0, |
rate.interval | f64 | the duration of time after which updating ArgRate ArgApp , the default value is 30.0, |
Structs
To control the workflow of engine in dealing with Affix including using affix or not, the amount to use/generate
some infomation about dyer
at rumtime where speed and error-handler based on