...
Strategy name | Description | ||
---|---|---|---|
direct | All query parts are assigned to the specified OdysseusNode.
| ||
querycount | Query parts are assigned to nodes with the least count of queries. | ||
roundrobin | Query parts are assigned in order. | ||
user | Query parts are assigned to user-specified nodes. For this, each logical operator has a DESTINATION -Parameter in PQL. Two operators which have the same DESTINATION -value are assigned to the same node. |
...
Code Block |
---|
#REMOTEQUERY (name=worker_1) #PARSER PQL #RUNQUERY timer = TIMER({PERIOD = 1000, SOURCE = 'source'}) map = MAP({EXPRESSIONS = ['toString("marco")'], KEEPINPUT = true}, timer) #REMOTEQUERY (name=worker_2) #PARSER PQL #RUNQUERY timer = TIMER({PERIOD = 1000, SOURCE = 'source'}) map = MAP({EXPRESSIONS = ['toString("marco")'], KEEPINPUT = true}, timer) |
Here, anything between two #REMOTEQUERY commands (or the end of the document) are copied and send as whole to the node to be processed there. Remark: This this different than "direct" from above as the query is not translated locally. By this, you could have e.g. multiple master nodes that will get there the whole queries from another (super master) node.