On This Page:
Restart with a SOAP Request on IIS - Authenticated
Only super users can restart MC2 with an authenticated SOAP request
To restart MC2:
If you are a super user, you can use the following command 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
Use the following required HTTP headers in the RTR_RESTARTMC2.xml displayed below:
SOAPAction:/EagleMLWebService/RunTaskRequestSync - for the SOAP request
commandType:restartmc2
commandValue:[all] or [current]
Restart with a SOAP Request to MC2 - Not Authenticated
The same rules apply for a backend server except for a difference in the request. In the example below, 20421 is the default SOAP port number (system.xml baseport + 201).
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
Restart with the eagle_ml-2-0_extract_service_control_message Message Center Stream
You can restart using MCC or using the incoming folder.
To restart using MCC:
- Send RTR_RESTARTMC2.xml file to stream execution by clicking on Send Data in MCC.
To restart using incoming folder:
- Copy the RTR_RESTARTMC2.xml file to the incoming folder by the next path on the backend server.
In the example below, TPE_FOLDER is the path to the tpe folder.
[TPE_FOLDER]/data/msgcenter/in/XML/eagle_ml-2-0_extract_service_control_message/incoming.
Configuration
Only Admin users can restart MC2.
To enable/disable the restart of MC2:
To enable/disable the restart of MC2, use the camel route restartmc2 property in eagle/estar/tpe/cfg/eaglemc2s/extractservice/application.yml. By default, the MC2 restart is enabled.
eagle: enable: restartmc2: true
You can use the restart MC2 command to execute the restart after a defined delay. The default delay is 90 seconds.
eagle: restartmc2: restartdelay: 90
When restart requests go through a IIS server, only Admin users can restart MC2. However, there is also the denyemptyusername property available that allows non-authenticated users to make requests directly to LB.