Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

The following is an example of a backend backend server SOAP request. In the example below, 20421 is  is the default SOAP port number (portoffset 201).

Code Block
languagexml
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

This The following is an RTR example:

...

...

RTR_REINITMC2.xml
collapse
Code Block
languagetruejs
<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>

...