...
The same rules apply for a backend server except for a difference in request:
...
the request. In the example below, 20421 is the default SOAP port number (system.xml baseport + 201).
Code Block | ||
---|---|---|
| ||
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
...
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
where TPE_FOLDER is the path to the tpe folder.
Configuration
To enable/disable the restart of MC2, use the camel route restartmc2 property in eagle/estar/tpe/cfg/eaglemc2s/extractservice/application.yml:
Code Block | ||
---|---|---|
| ||
eagle: |
...
enable: |
...
restartmc2: true |
By default the MC2 restart is enabled.
You can use the restart MC2 command to execute the restart after a defined delay. The default delay is 90 seconds.
Code Block | ||
---|---|---|
| ||
eagle: |
...
restartmc2: |
...
restartdelay: 90 |
When restart requests go through a IIS server then only admin users can restart MC2. However, there is also the denyemptyusername property available which that allows non-authenticated users to make requests directly to LB. For more information, see User and User Group Authentication Information