You can restart MC2 with a SOAP request or by sending an RTR to eagle_ml-2-0_extract_service_control_message stream execution.
This feature is available starting with July 2019 version of MC2.On This Page:
Table of Contents |
---|
Restart
...
with a SOAP
...
Request on IIS
...
- Authenticated
Only the super users can restart MC2 with an authenticated SOAP request. The If you are a super user, you can use the following command can be used to restart MC2:
curl --user username:password --header "commandType:restartmc2" --header "commandValue:all" --header "SOAPAction:/EagleMLWebService/RunTaskRequestSync" --data-binary @RTR_RESTARTMC2.xml https://frontendserver/EagleMLWebService30 -o restartMC2.txt
The following HTTP headers are required in the RTR_RESTARTMC2.xml:
- SOAPAction:/EagleMLWebService/RunTaskRequestSync - for the SOAP request
...
- commandType:restartmc2
- commandValue:[all] or [current]
...
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>RESTART</value> </taskParameter> <taskParameter> <name>ActionType</name> <dataType>S</dataType> <value>EXECUTE</value> </taskParameter> <taskParameter> <name>commandType</name> <dataType>S</dataType> <value>restartmc2</value> </taskParameter> <taskParameter> <name>commandValue</name> <dataType>S</dataType> <value>all</value> </taskParameter> </taskParameters> </EagleML> </runTaskRequest> </s:Body> </s:Envelope> |
Restart with a SOAP
...
Request to MC2 - Not Authenticated
The same rules apply for a backend server except small for a difference in request:
curl --header "commandType:restartmc2" --header "commandValue:all" --header "SOAPAction: /EagleMLWebService/RunTaskRequestSync" --data-binary @RTR_RESTARTMC2.xml http://backendserver:20421/services/eagle/v2/EagleMLWebService20 -o restartMC2.txt
where 20421 is default SOAP port number (system.xml baseport + 201).
Restart
...
with the eagle_ml-2-0_extract_service_control_message Message Center
...
Stream
Restarting To restart using MCC:
Send RTR_RESTARTMC2.xml file to stream execution by clicking on Send Data in MCC:
Restart using incoming folder:
Copy RTR_RESTARTMC2.xml file to the incoming folder by the next path on the backend server:
[TPE_FOLDER]/data/msgcenter/in/XML/eagle_ml-2-0_extract_service_control_message/incoming
where TPE_FOLDER is the path to the tpe folder.
Configuration
To enable/disable restart MC2 camel route restartmc2 property is used in eagle/estar/tpe/cfg/eaglemc2s/extractservice/application.yml:
...
When restart requests go through a IIS server then only admin users can restart MC2but . However, there is also the denyemptyusername property available which allows not non-authenticated users to make requests directly to LB,
see more info here:
. For more information, see User and User Group Authentication Information