Explainer
Why PI System Connector routes one destination per connector
Short answer
PI System Connector v2.1 selects one destination AF database per connector instance, so all data sources on that instance replicate into the same destination and additional destinations receive the same merged content. A one-to-one sync of multiple source databases needs one connector instance per source database, each with its own destination selection and Relay association. A second Relay installation is needed only if the documented deployment topology for your versions calls for one.

On this page
- One destination AF database is selected per connector instance
- What multiple data sources and multiple destinations actually do
- Two production AF databases onto one test server: counting connector instances
- Does a one-to-one sync also need a second Relay?
- Cutting one shared route into separate routes
- Questions asked
PI System Connector v2.1 routes by connector instance, not by data source: every source AF database listed on one connector replicates into the single destination AF database selected in that connector's destination settings, and extra destinations receive that same merged content. The merged elements that show up in the test environment are documented behavior, not a fault. A one-to-one sync is still achievable: stand up one connector instance per source database, each with its own destination database selection and Relay association. This article covers what the destination setting controls, a worked two-database example, when a second Relay installation is actually needed, and how to cut over without leaving stale elements behind.
One destination AF database is selected per connector instance #
The destination setting lives at connector level. In the connector administration interface it sits on the connector's Data tab, under Edit Destination Data Settings and then Show More Settings, and the Database field there takes one PI AF database. There is no matching field on a data source. The per-source settings decide what the instance collects — which source server and items, with unique collection settings supported for several sources on one connector — while the destination decides where the whole instance delivers.
The replication layer keeps the destination AF structure synchronized with the source AF structure. With more than one source on the instance, the structure it synchronizes is the union of all of them, which is exactly the merged element tree that appears at the other end. An AF server holds many databases — the AF client itself works against one database at a time — and PI System Connector v2.1 applies that same one-at-a-time shape on the delivery side, once per connector instance. This is documented for v2.1; other releases can change the destination model, so confirm the documented destination configuration for the exact version before reusing the architecture.
What multiple data sources and multiple destinations actually do #
Multiple data sources on one connector are a supported configuration, with unique settings per source. Their effect is collection: each additional source widens what the instance gathers. Multiple destinations on one connector are also supported, and their effect is mirroring: every destination receives the same content from all of that instance's sources. No destination-side filter assigns one source, or one subset of elements, to one destination.
That makes the connector instance the routing boundary. Data-source entries are rows on the collection side; the instance as a whole is the delivery unit. Once several sources have landed in one shared destination, working out which source produced a given element becomes the same tracing problem as identifying the source gateway in a shared historian database, so record which instance owns which source before the destination fills up.
Two production AF databases onto one test server: counting connector instances #
Inputs #
- Connector release: PI System Connector v2.1, the release whose documented destination model this example follows.
- Sources: a Production AF server holding two databases, PlantA and PlantB (example names for the smallest multi-database case).
- Destination: one Test AF server, with the goal of a one-to-one copy — a test database for PlantA alone and one for PlantB alone.
The rule in words #
One connector instance selects exactly one destination AF database. Every data source on that instance replicates into it, and every extra destination on the instance receives that same content. So one instance can deliver to only one destination database, and a one-to-one mapping needs one instance per source database.
The arithmetic #
Attempt A — one shared instance: 1 instance × 1 destination database = 1 destination, and it receives PlantA plus PlantB merged, a two-to-one result instead of 1:1.
Attempt B — one-to-one required: 2 source databases ÷ 1 destination database per instance = 2 connector instances. Instance 1 collects PlantA and writes a destination database holding PlantA alone; instance 2 collects PlantB and writes one holding PlantB alone. Each instance also carries its own Relay association. The same division scales: 5 source databases to keep separate need 5 instances.
Fan-out, for contrast: 1 instance × 2 destinations = 2 destinations, each holding the same merged PlantA-plus-PlantB copy.
Result and decision #
Two source databases that must stay separate take 2 connector instances and 2 Relay associations; nothing in the destination settings of a shared instance produces the split. Decision rule: more than one source database that needs its own destination means one connector instance per source database; one combined dataset that several consumers need means the single instance stays, with extra destinations added only for reach.
Does a one-to-one sync also need a second Relay? #
Separate the two decisions. The destination limit forces connector instances; it does not, by itself, force Relay installations. What each new instance does need is a Relay association: relays are added in PI Connector Relay, where adding a relay prompts for the service account's user name and password, set up as the Relay installation documentation directs.
Whether the existing Relay installation carries the additional instance, or a second installation is warranted, is decided by the documented deployment rules for the Relay and connector versions in use — association capacity is a Relay property, not a consequence of the destination setting. Decision: plan a one-to-one sync as one connector instance per source database, each associated with a relay, and add a Relay installation only when that documented topology calls for one.
The model behind the surprise is simple: a connector is one collection-and-delivery stream. Data sources feed the instance, the instance feeds its destinations, and there is no second routing table inside an instance to assign individual sources to individual destinations. The routing you do get is fan-out. Whether a later release adds per-source destination selection is a release-notes question for the version you run.
Cutting one shared route into separate routes #
- Write the intended mapping first: source AF server and database, connector instance, relay association, destination AF server and database. Match full server-plus-database identities, never database names alone — a same-named database on another server routes somewhere else entirely.
- Capture the current data-source list and destination selection so the shared route can be restored if the cutover stalls.
- Create the additional connector instances, and give each exactly one source database: the one it will own from then on.
- Select each instance's destination database in its destination settings and associate it with a relay as the deployment documentation prescribes.
- Remove the migrated source from the old shared instance during the cutover. If both paths stay active, that source keeps arriving through the unwanted route.
- Verify each destination: only its mapped source's elements appear. Then sweep for elements left by the earlier combined run — a route change is not a cleanup, and stale elements keep resolving in client applications until they are deleted deliberately.
Keep the shared instance only where one combined dataset is genuinely the goal, and add destinations on it when more consumers need that same combined copy. When the underlying question is whether these datasets should be separate at all, the same judgment applies as when to split tag history into separate historian databases. The one-stream-per-destination discipline recurs across the edge stack, down to routing Telegraf SNMP metrics to separate InfluxDB databases.
Questions asked
Can two connector instances write to two databases on the same destination AF server?
Yes. The per-instance limit is one destination AF database selection, not one destination server. Each connector instance points its destination settings at its own AF database, and both databases can live on the same destination AF server. That is the standard layout for a one-to-one production-to-test copy, and a third database simply takes a third instance.
Do multiple destinations split one connector's sources across databases?
No. Additional destinations on a connector instance mirror it: every destination receives the same content collected from all of that instance's data sources. Destinations extend reach to more consumers; none of them filters by source database. Selective source-to-destination assignment is not available as a destination-side setting in version 2.1.
What happens to elements left behind when I remove a data source?
Removing a data source stops further replication of that AF database through the shared route, but the elements the connector already created in the destination stay there. A route change is not a cleanup: after the cutover, inspect the destination database and delete the elements that belonged to the removed source, or client applications keep resolving them.
Does every new connector instance force another Relay installation?
The routing limit forces a second connector instance and a Relay association for it; it does not by itself force a second Relay installation. Whether one Relay installation can carry the extra instance is fixed by the documented deployment rules for the Relay and connector versions you run, so size the Relay count from those rules, not from the destination limit.
Is this one-destination behavior the same in every PI System Connector release?
The behavior described here, a single destination AF database selected per connector instance, is documented for PI System Connector v2.1. Other releases can change the destination model or add per-source routing, so confirm the documented destination configuration for the exact version you run before copying this architecture onto it.


