Request options are list of settings represented as {Key, Value} tuples. The following keys are recognized:
life - This setting limits the processing time of the request. When the time is up the Agent will skip any responses to this request. Furthermore, the Agent's garbage collector shall remove the obsolete requests from the system as soon as possible. The request life must be positive value. Otherwise the request shall be ignored. In case Life is zero then the Agent will execute the request without responding. In practice, you should select viable Life rates for your grid applications.
•mode - The request communication mode defines how the request will be routed and exploited within AGE. The following values are supported:
olocal - executes request in the local node only;
oshare - executes request in the entire grid;
oshare_once - executes request in the local node, and in the local node's neighbors;
oadaptive - executes request in the entire grid with "Adaptive Polymorphism".
•filter - List of AGE nodes that will handle the requested task. The nodes specified in the list should be with valid identifiers. The request filters are following a liberal strategy - if the list is empty then the task will be executed without restrictions. The default value is [].
•route - A valid AGE node path. See "Node Routes" section for more details.
•on_request - Call-back function. See "Call-back Function" section for more details.
•compressed - Selects a particular task type for compression. You could compress as many types as you want. For example: [{compressed, node_hostinfo}, {compressed, exec_fun}].
Note! The data compression is time consuming operation. Therefore it will impact the request processing time and the overall agent utilization. It is recommended to apply this option on small chunks of data.
|