Changing the replication interval on Linux systems

On Linux systems if you have multiple servers in your deployment, you can schedule when each one replicates. The default is five minutes, but you can shorten the time for greater recoverability or increase it to limit network activity:

To change the replication interval, perform the following steps:

  1. From the /opt/BESServer/bin command prompt, start the command line:
    ./iem login --server=servername:serverport --user=username 
    --password=password
  2. From the /opt/BESServer/bin command prompt, run the following command:
    ./iem get replication/server/0 > /appo/replicationServer0.xml 
  3. In the /appo/replicationServer0.xml file, edit the following keyword:
    <ReplicationIntervalSeconds>300</ReplicationIntervalSeconds>
    to change the value in seconds of the replication interval. Using longer replication intervals means that the servers replicate data less often, but have more data to transfer each time.
    <?xml version="1.0" encoding="UTF-8"?>
    <BESAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                                xsi:noNamespaceSchemaLocation="BESAPI.xsd">
       <ReplicationServer Resource="http://9.87.126.68:52311/api/replication
                                                                /server/0">
               <ServerID>0</ServerID>
               <URL>http://nc926068.romelab.it.ibm.com:52311</URL>
               <DNS>nc926068.romelab.it.ibm.com</DNS>
          <ReplicationIntervalSeconds>300</ReplicationIntervalSeconds>
          <ReplicationLink Resource="http://9.87.126.68:52311/api/replication
           /server/0/link/3">
                  <SourceServerID>0</SourceServerID>
                  <DestinationServerID>3</DestinationServerID>
                  <Weight>1</Weight>
                  <IsConnected>0</IsConnected>
                  <LastReplication>Fri, 01 Mar 2013 11:17:12 +0000
                  </LastReplication>
                  <LastError>19NoMatchingRecipient - Fri, 01 Mar 2013 11:17:12 +0000
                  </LastError>
          </ReplicationLink>
          <ReplicationLink Resource="http://9.87.126.68:52311/api/replication/server/
                                            3/link/0">
                       <SourceServerID>3</SourceServerID>
                       <DestinationServerID>0</DestinationServerID>
                       <Weight>1</Weight>
                       <IsConnected>1</IsConnected>
                       <LastReplication>Fri, 01 Mar 2013 11:17:18 +0000
                       </LastReplication>
          </ReplicationLink>
       </ReplicationServer>
    </BESAPI>
  4. Upload the modified file by running the following command:
    ./iem post /appo/replicationServer0.xml  replication/server/0