Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

You can reinitialize the rule cache in  several ways.

MC2 keeps a cache of processing rules in the following location: http://appserver:20426/services/eagle/v2/commands/reinitrulecache

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. Note that this endpoint is available only from the application server.

An alternate approach is to reinitialize the rule cache using a SOAP request or executing the eagle_ml-2-0_extract_service_control_message stream. This works in the same way as with a MC2 restart except that it uses a different commandType RTR task parameter, HTTP header, and FeedType RTR task parameter. Also, all levels of users have access to reinitialize the rule cache.

For more information, see Restart MC2.

SOAP Request Examples

The following is an example of a front end server SOAP request.

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).

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
<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>
  • No labels