You can reinitialize the rule cache in several ways.
MC2 keeps a cache of processing rules . To reinit the rule cache the REST endpoint with offset 206 (default port 20426) should be used:in the following location: http://appserver:20426/services/eagle/v2/commands/reinitrulecache
This will reinitialize To reinitialize the rule cache, use the REST endpoint with an offset of 206. The default port is 20426. This reinitializes the rule cache for all MC2 instances with the same AppID.This Note that this endpoint is available only from the application server.
There An alternate approach is another way to reinit reinitialize the rule cache by using a SOAP request or executing executing the eagle_ml-2-0_extract_service_control_message stream. It This works in the same way as with a MC2 restart MC2 except that different it uses a different commandType RTR task parameter, HTTP header, and FeedType RTR task parameter are used and that any users have parameter. Also, all levels of users have access to reinitialize the rule cache.Here
For more information, see Restart MC2.
SOAP Request Examples
The following is an RTR example:
...
example of a front end server SOAP request.
Code Block | ||
---|---|---|
| ||
curl --user username:password --header "commandType:reinitrulecache" --header "commandValue:all" --header "SOAPAction:/EagleMLWebService/RunTaskRequestSync" --data-binary @RTR_REINITMC2.xml https://frontendserver/EagleMLWebService30 -o reinitMC2.txt |
The following is an example of a backend server SOAP request. In the example below, 20421 is the default SOAP port number (portoffset 201).
Code Block | ||
---|---|---|
| ||
curl --header "commandType:reinitrulecache" --header "commandValue:all" --header "SOAPAction: /EagleMLWebService/RunTaskRequestSync" --data-binary @RTR_REINITMC2.xml http://backendserver:20421/services/eagle/v2/EagleMLWebService20 -o reinitMC2.txt |
Required HTTP Headers
The following are the required HTTP headers:
SOAPAction:/EagleMLWebService/RunTaskRequestSync - for SOAP request;
commandType:reinitrulecache
commandValue:[all] or [current]
RTR Example
The following is an RTR example
RTR_REINITMC2.xml
Code Block | ||
---|---|---|
| ||
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <runTaskRequest xmlns="http://www.eagleinvsys.com/2011/wsdl/EagleML-2-0"> <EagleML xmlns="http://www.eagleinvsys.com/2011/EagleML-2-0" eaglemlVersion="2-0" xsi:schemaLocation="http://www.eagleinvsys.com/2011/EagleML-2-0 eagleml-main-2-0.xsd" eaglemlType="RunTaskRequest"> <header> <messageId>541C2B1B66833C6C</messageId> <sentBy>http://www.client.com/user</sentBy> <sendTo>http://www.eagleinvsys.com/eagle_ml-2-0_default_cm_wrkfl_listener</sendTo> </header> <taskIdentifier> <correlationId correlationIdScheme="correlationIdScheme">{GUID}</correlationId> <businessTaskId correlationIdScheme="businessTaskIdScheme">541C2B1B66833C6C</businessTaskId> </taskIdentifier> <taskParameters> <taskParameter> <name>FeedType</name> <dataType>S</dataType> <value>REINIT</value> </taskParameter> <taskParameter> <name>ActionType</name> <dataType>S</dataType> <value>EXECUTE</value> </taskParameter> <taskParameter> <name>commandType</name> <dataType>S</dataType> <value>reinitrulecache</value> </taskParameter> <taskParameter> <name>commandValue</name> <dataType>S</dataType> <value>all</value> </taskParameter> </taskParameters> </EagleML> </runTaskRequest> </s:Body> </s:Envelope> |
...