Skip to content

Manage the Stelo Capture server

Use this page to start or stop several Capture Agents at once, to find the service, ports and files of Stelo Capture on its server, and to know what happens to the agents when the server restarts or runs as a Db2 HADR standby.

On each Stelo VM, the Launch Agent runs the Capture Agents: it keeps their definitions, starts and stops them, and hands out their configuration. The installer creates it. In the SQDR Control Center, the server is the top node of the tree, above its agents.

Start and stop several agents at once

On the server's Agents tab, tick the agents and choose the action; each action works as it does on the agent's own page (see Start, stop and delete a Capture Agent).

To stop and restart all Capture Agents of the server, restart the sqdr+capagent service.

When the Launch Agent starts (for example when the server restarts), it starts every agent that isn't Disabled or in Standby. Disabled agents stay stopped until you start them.

Service, ports and files

The Launch Agent runs as the Windows service SQDR Plus Launch Agent (sqdr+capagent), one of the Stelo Capture services. There is no service per Capture Agent: the Launch Agent runs each agent as a separate Java process (JVM), and restarts and stops it. The Launch Agent listens on port 50005 (property port); each Capture Agent gets the next free port above it (see Ports).

Docker

In the Stelo Replicator Docker container the Launch Agent runs as the service sqdr-capagent, and the working files are under /var/sqdrplus instead of C:\ProgramData\StarQuest\sqdrplus.

Where the Launch Agent keeps its files

File Windows location What it holds
Launch Agent configuration C:\ProgramData\StarQuest\sqdrplus\conf\sqagent.properties The Launch Agent's own properties (control database, port, logging).
Launch Agent log C:\ProgramData\StarQuest\sqdrplus\conf\sq_launcher0.log Agents started and stopped, license, HADR changes.
Capture Agent folders C:\ProgramData\StarQuest\sqdrplus\conf\agtN One folder per agent, with its sqagent.properties and capture_agent0.log.

You can read both logs on the Diagnostics tab, without access to the server's files.

The control database (SQDRC)

The list of Capture Agents, the task history and each agent's configuration are kept in the control database SQDRC, the local Db2 database the installer creates (schema SQDR, port 50000). The Replicator Service (SQDR) uses the same database.

Licensed CPU cores

Stelo Capture is licensed by CPU cores: the Launch Agent limits each Capture Agent process to the licensed number of processors, 2 without a core license. See License.

Agents on a Db2 HADR standby

This applies only if the control database or an agent's staging database is in a Db2 HADR (high availability disaster recovery) pair (see Run a standby Stelo Capture server with Db2 HADR). The Launch Agent checks each database's HADR role about once a minute:

  • An agent whose staging database is the standby is stopped and shown as Standby. You can't start, stop or quiesce it (the Control Center reports "Operation not allowed in STANDBY state."); you can disable or delete it.
  • If SQDRC itself is the standby, all agents on the server go to Standby. A Launch Agent that starts while SQDRC is the standby waits for the takeover.
  • On takeover, the Launch Agent starts the agent, first rewriting the agent's sqagent.properties from the copy in its staging database if needed, and records the change in its log and the task history.