MC2 keeps a cache of processing rules. To reinitialize the rule cache, use the REST endpoint with an offset of 206. The default port is 20426:
http://appserver:20426/services/eagle/v2/commands/reinitrulecache
This will reinitialize the rule cache for all MC2 instances with the same AppID.
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.
It 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.
This is an example of a frontend 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
This is an example of a backend server SOAP request:
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
where 20421 is the default SOAP port number (portoffset 201).
The following are the required HTTP headers:
- SOAPAction:/EagleMLWebService/RunTaskRequestSync - for SOAP request;
- commandType:reinitrulecache
- commandValue:[all] or [current]
This is a RTR example: