Versions Compared

Key

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

On This Page:

Table of Contents

...

There are several ways to restart MC2. Note that only super users can restart MC2 using an authenticated SOAP request.

Restart with a SOAP Request on IIS - Authenticated

Info

Only super users can restart MC2 with an authenticated SOAP request.


On this page

Table of Contents

To restart MC2:

  1. If you are a super user, you can use the following command to restart MC2:

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

...

  1. 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]

    RTR_RESTARTMC2.xml

    Code Block
    languagejs

...

  1. <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 for a difference in

...

the request. In the example below, 20421 is the default SOAP port number (system.xml baseport + 201).

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

...

.

Image Removed

Image Removed

...

Image Added

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

Only Admin users can restart MC2.

To enable/disable the restart of MC2:

  1. To enable/disable the restart of MC2, use the camel route restartmc2 property

...

  1. in eagle/estar/tpe/cfg/eaglemc2s/extractservice/application.yml

...

  1. . By default, the MC2 restart is enabled.

    Code Block
    languagexml
    eagle:

...

  1. 
      enable:

...

  1. 
        restartmc2: true

By default the MC2 restart is enabled.

Restart MC2 command starts after defined delay (default 90 seconds):

eagle:

  restartmc2:

...

  1. You can use the restart MC2 command to execute the restart after a defined delay. The default delay is 90 seconds.

    Code Block
    languagexml
    eagle:
      restartmc2:
        restartdelay: 90

    When restart requests go through a IIS server

...

  1. , only

...

  1. Admin users can restart MC2. However,

...

  1.  there is also the denyemptyusername property available

...

  1. that allows non-authenticated users to make requests directly to LB.

...

  1.