User Tools

Site Tools


replicator_agent_test_mode

Running Replicator Agent in Test Mode

The Replicator Agent can be run in test mode for QA purposes. Test mode means that the Agent will run without performing minimum requirements checks for client performance. NOTE: Only follow the steps to configure test mode below if you want to run the Agent in a QA environment.

To configure the Replicator Agent to run in test mode, follow these steps:

  1. Navigate to the location where your agent.xml file was saved upon installation of the Replicator Agent.
  2. Within the <agent> tag, add the self-closing tag <test_mode/>. Then, save and close your agent.xml file. To ensure that your Agent has been configured correctly, you can optionally run the validateConfiguration tool. Once you have validated your Agent configuration, you will be able to run your Agent in test mode.

Example Test Mode Configuration for Replicator Agent

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<config>
   <agent>
 
      <test_mode/>
 
      <subscribe>
         <task instances="4">
            <task_name>test_agent_subscribe</task_name>
            <message_connection password="encrypted:XXXX" queue="psp.out.replicator.example" use_basic_consume="true" user="example">amqps://example.perspectium.net</message_connection>
            <instance_connection password="encrypted:XXXX" user="example">https://example.service-now.com</instance_connection>
            <handler>com.perspectium.replicator.sql.SQLSubscriber</handler>
            <decryption_key>The cow jumped over the moon</decryption_key>
            <database_type>mysql</database_type>
            <database_server>localhost</database_server>
            <database_port>3306</database_port>
            <database_user>example</database_user>
            <database_password>encrypted:XXXX</database_password>
            <database_params>characterEncoding=UTF-8</database_params>
            <database>psp_repl</database>
         </task>
      </subscribe>
      <max_reads_per_connect>4000</max_reads_per_connect>
      <polling_interval>5</polling_interval>
      <skip_message_set_processing/>
   </agent>
</config>
replicator_agent_test_mode.txt · Last modified: 2019/01/02 12:53 by jackson.davenport