Module dyer::engine::arg

source · []
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

ArgumentTypeDescription
skipbooltrue as default, use the files stroed in data_dir or not, if not a new
spawn_task_maxusize100 as default, the maximal length of spawned tasks
buf_taskusize10000 as default, the length of Task collected by parsers, exceeding which all Task will be stored into data_dir/tasks/ for memory saving
round_entityusize10 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_dirStringdata/ as default, the place to store or load files of App when reaching rate.cycle
napf6415.0 as default, the duration after which generated Task or Affix or recycled Affix become availible
join_gapf647.0 as default, the duration which the spawned task exceeds the executor is called to forcefully join it
round_requsize10, for more to see ArgApp
round_req_minusize5, for more to see ArgApp
round_req_maxusize77, for more to see ArgApp
round_taskusize10 as default, for more to see ArgApp
round_task_minusize7, for more to see ArgApp
round_resusize10 as default, for more to see ArgApp
round_errsusize10 as default, the number of Response cannot be parsed, exceed which process_entity is called to consume them,

ArgAffix

ArgumentTypeDescription
arg_affix.is_onboolfalse as defalut, enable affix customization or not, when true, Affixor must be implemented
arg_affix.affix_minusize0 as default the minimal length of affix( including these in use or in future )
arg_affix.affix_maxusize0 as default the minimal length of affix( including, these in use or in future )

ArgRate

ArgumentTypeDescription
rate.cyclef64600.0 as default, the duration after which backup files of App
rate.loadf6499.0 as default, the load to be spawned in each interval,
rate.rate_lowf640.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.errusizethe nubmer that erros of Response occurs, the default value is 0,
rate.intervalf64the 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

Arguments that control the App at runtime, including using history or not,
Task Affix Request Response entities consuming and generating There shall be an introduction to every member(maybe coming soon).

some infomation about dyer at rumtime where speed and error-handler based on