Replicating Workflow Manager repositories

Cette rubrique s'applique uniquement à ArcGIS for Desktop Standard et ArcGIS for Desktop Advanced.

Key concepts

ArcGIS Workflow Manager repository replication allows organizations to maintain multiple Workflow Manager repositories locally in different geographic regions for performance reasons, while the users at each location continue to work on the same set of jobs. ArcGIS Workflow Manager replication is not an extension of geodatabase replication. It is accomplished with Workflow Manager services or configuration files. ArcGIS Workflow Manager replication is a two-way replication.

You will define a collection of Workflow Manager repositories that you want to have identical Workflow Manager contents. This collection of repositories is known as a repository cluster.

One Workflow Manager repository is designated as the parent repository and is tasked with coordinating the synchronization between each repository. After the parent repository is specified, each child repository is added. The child repositories can be designated as connected repositories, where the synchronization happens automatically, or disconnected repositories, where the synchronization occurs by creating files that can be manually imported.

Create replica

This is the process of making all child repositories an identical copy of the parent repository. It exports the configuration from the parent repository, deletes existing configuration in child repositories, and imports the parent repository configuration in child repositories. Replica can be created in the ArcGIS Workflow Manager Administrator or by using the ArcGIS Workflow Manager geoprocessing tools.

Synchronize changes

This is the process of synchronizing changes made in parent and child repositories. Changes from child repositories are sent to the parent repository and consolidated changes are sent to all child repositories. Changes can be synchronized in the ArcGIS Workflow Manager Administrator or by using the ArcGIS Workflow Manager geoprocessing tools.

Connected replication

Connected replication is ideal for locations that have network access as it requires ArcGIS Workflow Manager for Server and is accomplished using Workflow Manager Services. When using connected replication, the information is automatically exchanged using the Workflow Manager Services with minimal user interaction. Workflow Manager for Server must be installed at each node, and the parent and child repositories must be published as Workflow Manager Services. There are two ways to set up connected replication:

  • ArcGIS Workflow Manager Administrator—Use the Manage Replication dialog box to create replicas and synchronize changes.
  • Geoprocessing tools—Use ArcGIS Workflow Manager geoprocessing tools to create replicas and synchronize changes.

RemarqueRemarque :

Parent and child services must be online for connected replication.

Creating the Workflow Manager repositories

Run the post installation for all repositories participating in your cluster.

Etapes :
  1. From the Start menu, navigate to the ArcGIS Workflow Manager menu and click Workflow Manager Post Installation.

    See the Workflow Manager post installation topic for more details.

  2. Specify and note the repository name on the last page of the Post Installation utility.
  3. Repeat the steps for all the repositories participating in the cluster.
    RemarqueRemarque :

    The Windows login for the user that creates the initial replica from the parent repository must be added to all child repositories. The user should be granted administrator access or given Manage Replication privileges.

Creating Workflow Manager services

Create Workflow Manager services for all repositories participating in your cluster. The Workflow Manager services publish using ArcGIS Workflow Manager Administrator for each repository in the cluster.

Etapes :
  1. Create a Workflow Manager service for the parent repository.
  2. Create a Workflow Manager service for all child repositories participating in your cluster.

Creating and adding nodes to the cluster in administrator

Clusters are created through the administrator on the parent repository. You can use the Manage Replication tools for adding nodes.

Etapes :
  1. Open the Workflow Manager Administrator and connect to the parent repository.
  2. Right-click the database connection and click Manage Replication.

    The repository name for the parent is already completed on the Manage Replication dialog box.

  3. By default, the Connected check box is checked.
  4. Specify the ArcGIS Workflow Manager Server URL you configured in the steps above. For example, http://yourserver:6080/ArcGIS/rest/Services/Parent/WMServer.

    The Last Sync column is empty if a replica hasn't been created.

  5. Click the Add button to add a new child to the cluster.
  6. Specify the repository name and repeat steps 4 and 5.
    RemarqueRemarque :

    Click the Save button any time to store the added information.

  7. Repeat steps 5 and 6 for all the other nodes.
  8. After adding all the nodes in the cluster, click Save.

    Define a replication cluster

    RemarqueRemarque :

    Use only the REST URL for your Workflow Manager services for replication at the current release.

Creating new replicas using administrator

The Create New Replica button sends the contents of the parent repository to all the other nodes in the cluster. This operation deletes the contents of all the child nodes; therefore, run this operation initially when defining the cluster.

Etapes :
  1. Open the Workflow Manager Administrator and connect to the parent repository.
  2. Right-click the database connection and click Manage Replication.
  3. Click Create New Replica.

    This process might run for several minutes, depending on the size of the parent repository.

  4. Click OK when replication completes.

Synchronizing replicas using administrator

The synchronize process compares the differences between all the children in the cluster, imports them to the parent node, and sends the changes to all the other nodes in the cluster.

Etapes :
  1. Open the Workflow Manager Administrator and connect to the parent repository.
  2. Right-click the database connection and click Manage Replication.
  3. Click Synchronize Replicas.

    This process might run for several minutes, depending on the number of the changes in the parent and child repositories.

  4. Click OK when synchronization completes.

Disconnected replication

Disconnected replication is ideal for locations where the network connectivity is a problem or when Workflow Manager for Server is not available at each location. It can be utilized when the parent repository on a server but the child nodes are not connected to a server, or if neither parent nor child repositories are connected to a server. There are two ways to set up disconnected replication:

  • ArcGIS Workflow Manager Administrator—Use the Manage Replication dialog box to create a configuration file consisting of all elements and jobs in the parent repository.
  • Geoprocessing tools—Use ArcGIS Workflow Manager geoprocessing tools to create configuration files to create replicas and synchronize changes.

Creating the Workflow Manager repositories

Run the post installation for all repositories participating in your cluster.

Etapes :
  1. From the Start menu, navigate to the ArcGIS Workflow Manager menu and click Workflow Manager Post Installation.

    See the Workflow Manager post installation topic for more details.

  2. Specify and note the Repository Name on the last page of the Post Installation utility.
  3. Repeat the steps for all repositories participating in the cluster.
    RemarqueRemarque :

    The Windows login for the user that creates the initial replica from the parent repository must be added to all child repositories. Grant the user administrator access or manage replication privileges.

Disconnected replication—parent repository connected

Occasionally, in disconnected replication the parent repository is connected to a server but all child nodes do not have access to a server. In this case, the parent repository is published as a service and the configuration from the parent repository is stored as a configuration file. This configuration file is used to create replicas in child nodes and the changes are also synchronized using configuration files. The scenario also uses replication tools in Workflow Manager Administrator and geoprocessing tools.

Creating the Workflow Manager service for the parent

If the parent repository is connected to a server, create the Workflow Manager service for the parent repository.

Etapes :
  1. Create a Workflow Manager service for the parent repository.

Creating and adding nodes to the cluster in administrator

If the parent repository is connected to a server, the disconnected replication can be partially managed in the administrator. Clusters can be created through the administrator on the parent repository and the Manage Replication tools can be used for adding the nodes.

Etapes :
  1. Open the Workflow Manager Administrator and connect to the parent repository.
  2. Right-click the database connection and click Manage Replication.

    The repository name for the parent is already completed on the Manage Replication dialog box.

  3. By default, the Connected check box is checked. Uncheck the box for disconnected replication.
  4. Specify the ArcGIS Workflow Manager Server URL for the parent repository you published in the steps above. For example, http://yourserver:6080/ArcGIS/rest/Services/Parent/WMServer.

    The Last Sync column is empty if a replica hasn't been created.

  5. By default, the Connected check box is checked. Uncheck the box for disconnected replication.
  6. Click the Add button to add a new child to the cluster.
  7. Specify the repository name for the child repository.
    RemarqueRemarque :

    Click the Save button any time to store the added information.

  8. By default, the Connected check box is checked. Uncheck the box for disconnected replication.
  9. Specify the folder location to store the created parent repository configuration file.

    The Last Sync column is empty if a replica hasn't been created.

  10. Repeat steps 6, 7, and 8 for all the other nodes.
  11. After adding all the nodes in the cluster, click Save.

Creating new replicas using administrator

In disconnected replication, if the parent repository is connected to a server, the Create New Replica button creates a configuration file with the elements and jobs of the parent repository at the specified folder location. This operation will not delete the contents of all the child nodes, as the process cannot communicate with them. Use this to run initially when defining the cluster.

Etapes :
  1. Open the Workflow Manager Administrator and connect to the parent repository.
  2. Right-click the database connection and click Manage Replication.
  3. Click Create New Replica.

    This process might run for several minutes, depending on the size of the parent repository.

  4. Click OK when replication completes.
  5. A configuration file with the elements and jobs of the parent repository is created at the specified folder location.

Synchronize replica using geoprocessing tools

Etapes :
  1. Open ArcCatalog or ArcMap and expand the Workflow Manager toolbox.
  2. Open the Export Job Data tool.
  3. Specify the folder location for the Folder to export to parameter.
  4. Specify the folder location of the child repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  5. Specify the repository name of the child repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  6. Specify the date when replicas were created or changes were last synchronized for the Export Since parameter.
  7. Click OK on the tool dialog box.

    The child repository configuration consisting of changes exports to the specified folder location as a .jxl file. The changes are exported only for the specified time after the export since parameter.

  8. Open the Import Job Data tool.
  9. Select the file created in step 7 as the input for the Input JXL/Acknowledgement parameter.
  10. Check the check box for Merge parameter.
  11. Specify the folder location of the parent repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  12. Specify the repository name of the parent repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  13. Click OK on the tool dialog box.

    The child repository configuration with changes is imported to the specified parent repository and merged with contents of the parent repository.

  14. Repeat steps 2 through 13 for all child repositories to send changes to the parent repository.
  15. Open the Export Job Data tool.
  16. Specify the folder location for the Folder to export to parameter.
  17. Specify the folder location of the parent repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  18. Specify the repository name of the parent repository for the Repository Name parameter.

    If no repository name is specified, the current default workflow manager database repository name is used.

  19. Specify the date when the replicas were created or changes were last synchronized for the Export Since parameter.
  20. Click OK on the tool dialog box.

    The parent repository configuration consisting of changes from the parent repository as well as all child repositories is exported to the specified folder location as a .jxl file. The changes are exported only for the specified time after the export since parameter.

  21. Open the Import Job Data tool.
  22. Select the file created in step 20 as the input for the Input JXL/Acknowledgement parameter.
  23. Check the check box for the Merge parameter.
  24. Specify the folder location of the child repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  25. Specify the repository name of the child repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  26. Click OK on the tool dialog box.

    The parent repository configuration with all consolidated changes is imported to the specified child repository and merged with contents of the child repository.

  27. Repeat steps 21 through 26 for all child repositories.

Disconnected replication—all repositories disconnected

In cases where none of the repositories participating in the cluster are connected to a server, all information exchanged is through configuration files. The configuration files are created using the Export Job Data and Import Job Data geoprocessing tools.

Creating new replicas using geoprocessing tools

Etapes :
  1. Open ArcCatalog or ArcMap and expand the Workflow Manager toolbox.
  2. Open Export Job Data tool.
  3. Specify the folder location for the Folder to export to parameter.
  4. Specify the folder location of the parent repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default workflow manager database is used.

  5. Specify the repository name of the parent repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  6. Do not specify any value for Export Since parameter.
  7. Click OK on the tool dialog box.

    The parent repository configuration is exported to the specified folder location as a .jxl file.

  8. Open the Import Job Data tool.
  9. Select the file created in step 7 as the input for the Input JXL/Acknowledgement parameter.
  10. Uncheck the check box for the Merge parameter.

    The check box must be checked and unchecked again to pass the information to the dialog box.

  11. Specify the folder location of the child repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  12. Specify the repository name of the child repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  13. Click OK on the tool dialog box.

    The parent repository configuration is imported to the specified child repository, and the entire contents of the child repository are replaced with the contents of parent repository; therefore, the child repository becomes identical to the parent repository.

  14. Repeat steps 8 through 13 for each child repository.

Synchronize replica using geoprocessing tools

In cases where none of the repositories participating in the cluster are connected to a server, all information exchanged and synchronized is through configuration files. The configuration files are created using the Export Job Data and Import Job Data geoprocessing tools.

Etapes :
  1. Open ArcCatalog or ArcMap and expand the Workflow Manager toolbox.
  2. Open the Export Job Data tool.
  3. Specify the folder location for the Folder to export to parameter.
  4. Specify the folder location of the child repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  5. Specify the repository name of the child repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  6. Specify the date when the replicas were created or changes were last synchronized for the Export Since parameter.
  7. Click OK on the tool dialog box.

    The child repository configuration consisting of changes is exported to the specified folder location as a .jxl file. The changes are exported only for the time specified after the export since parameter.

  8. Open the Import Job Data tool.
  9. Select the file created in step 7 as the input for the Input JXL/Acknowledgement parameter.
  10. Check the check box for Merge parameter.
  11. Specify the folder location of the parent repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  12. Specify the repository name of the parent repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  13. Click OK on the tool dialog box.

    The child repository configuration with changes is imported to the specified parent repository and merged with contents of the parent repository.

  14. Repeat steps 2 through 13 for all child repositories to send changes to the parent repository.
  15. Open the Export Job Data tool.
  16. Specify the folder location for the Folder to export to parameter.
  17. Specify the folder location of the parent repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  18. Specify the repository name of the parent repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  19. Specify the date when replicas were created or changes were last synchronized for Export Since parameter.
  20. Click OK on the tool dialog box.

    The parent repository configuration consisting of changes from the parent repository as well as all child repositories is exported to the specified folder location as a .jxl file. The changes are exported only for the time specified after the export since parameter.

  21. Open the Import Job Data tool.
  22. Select the file created in step 20 as the input for the Input JXL/Acknowledgement parameter.
  23. Check the check box for the Merge parameter.
  24. Specify the folder location of the child repository connection file for the Input Database Path (.jtc) parameter.

    If no connection file is specified, the current default Workflow Manager database is used.

  25. Specify the repository name of the child repository for the Repository Name parameter.

    If no repository name is specified, the current default Workflow Manager database repository name is used.

  26. Click OK on the tool dialog box.

    The parent repository configuration with all consolidated changes is imported to the specified child repository and merged with contents of the child repository.

  27. Repeat steps 21 through 26 for all child repositories.
RemarqueRemarque :

The export and import of configuration files using geoprocessing tools can be scripted to automate the workflow.

Deleting nodes from a cluster

Nodes added to the cluster can also be deleted using the tools available in the Workflow Manager Administrator. When a node is deleted, a message is sent to the parent and other nodes to ensure that the existing relationship clears from the system tables.

Etapes :
  1. Open the Workflow Manager Administrator and connect to the parent repository.
  2. Right-click the database connection and click Manage Replication.
  3. Click the Delete button.

There are geoprocessing tools available in the Workflow Manager toolbox that creates replicas, synchronize replicas, delete nodes, and export and import data. This gives you the option to run these as scheduled tasks through a Python script. See An overview of the Workflow Manager toolbox for more information.

4/26/2014