A Capture or an Apply Process can be stopped and run again at any time from the main dashboard of the Web UI: for example, to pause the replication during maintenance of the source or target database, or to run a process again after the cause of its failure has been fixed. A stopped process keeps its configuration and the position where it stopped, so when you run it again it continues from the same place.
You can stop or run ALL the replication processes from the “Repstance Processes Info” section at the top of the dashboard. The section counts the processes by their state (Running, Failed, Stopped and Warning) and has the “Stop All” and “Run All Processes” buttons:
Click “Stop All” and confirm with “Stop All Processes”:
To run all the processes again, click “Run All Processes”:
and confirm with “Run All Processes”:
The buttons skip the processes that are already in the requested state: “Stop All” does not affect the processes that are stopped already, and “Run All Processes” does not affect the processes that are running.
Every process card has its own button: “Stop” for a running process and “Run” for a stopped or failed one. Click “Stop” on the card of the process:
and confirm with “Stop Process”:
The button of the card changes to “Run” at once, but the process needs a few seconds to finish its work, so the card can still show the RUNNING state. Click “Refresh” on the card to see the current state. You can also click “Refresh” in the upper right corner of the page to refresh the whole dashboard, or enable “Auto refresh” there to refresh it automatically:
When the process is stopped, the card shows the STOPPED state and the counters of the “Repstance Processes Info” section are updated. To run the process again, click “Run” on the card and confirm with “Run Process”:
To see only the processes that are in a given state, for example the stopped ones, select the state in the “Sort by” list above the process cards:
You can also stop or run a process in the process details window (click “More” on the card, see Monitoring Replication). The window shows the state of the process (“Stopped”) and what it is doing (“Waiting for the Next Command”). The “Total since” line shows the time and the position (LSN) with which the process started its current run; the counters below are collected from this position (see Status of any Capture or Apply Processes for more details):
The “Run Process” button (it is “Stop Process” while the process is running) is in the lower left corner of the window:
A process with the “Autostart” flag is run automatically when it is created and every time the Repstance service is started, for example after the server restart. A process without the flag stays stopped until you run it, even if it was running before the restart. The flag is set when the process is created (see Setup First Replication) and can be changed with “Edit”.
If a process fails, Repstance runs it again automatically: the server checks the processes every 5 minutes. The “restartattempts” parameter (the “Restart Attempts” field on the “Process Parameters” tab of the Apply Process Configuration, see SQL Server Capture Process Parameters and SQL Server Apply Process Parameters) sets the number of the attempts: the default value is 5, the value 0 disables the automatic restart. For a Capture Process the parameter is set in “Advanced Settings” of its configuration (see Edit Replication Processes). The number of the attempts is restored as soon as the process makes progress after a failure. When the attempts are used up, the notification channels are informed (see Monitoring Replication). A process that you stopped yourself is not restarted.
To run a failed process by yourself, find the cause in the process details or in the Incident Management section (see Monitoring Replication), fix it and click “Run” on the card of the process.
A running process cannot be removed: stop it first (see Remove Replication Configuration). To make an Apply Process continue from another position, stop it and use “Reset” (see Reset Process).
The same operations are available in repcli and via the REST API: see PROCESS CONTROL COMMANDS for the details.
Prev page:
Tasks ControlNext page:
Edit Replication Processes