High availability options for PI Vision
- Last UpdatedFeb 05, 2025
- 3 minute read
The high availability (HA) solutions described here are independent of AVEVA PI Vision. These strategies are recommendations, but all systems have unique requirements; therefore, you should discuss these strategies with your database administrator and Internet Information Services (IIS) administrator while planning your architecture.
HA options are available for AVEVA PI Vision at both the database and application server levels. Each of these options has its own benefits.
Database options include:
-
Clustering
-
Mirroring
-
AlwaysOn Availability Groups
-
Transactional replication
AVEVA PI Vision application server options include:
-
Network load balancing (NLB)
-
Application request routing (ARR)
-
NLB and ARR in an active/passive failover configuration
-
NLB and ARR in an active/active failover configuration
Database level options
Employing HA at the database level prevents the AVEVA PI Vision database in Microsoft SQL Server from becoming a single point of failure.
You should implement HA for the AVEVA PI Vision database in the same way as applying HA to any other SQL Server database. Microsoft provides a general description of their HA implementation options for MS SQL Server in the article Business continuity and database recovery - SQL Server.
After connection, a replicated database acts in the same way as the database it replaces, therefore the only configuration change required is to make the AVEVA PI Vision application aware of the replicated database. You do this when you specify the connection string for the application. For example:
connectionString = "Data Source=myPrimaryServer;Failover Partner=mySecondaryServer;
Initial Catalog=myDataBase;Integrated Security=True;
Application Name="PIVision Web Service""
The connection string can be edited in the web.config for the AVEVA PI Vision web application directly, or through the Connection Strings module in IIS Manager when you have the AVEVA PI Vision web application selected. The web.config file is located in the following directory:
%pihome64%\PIVision
The following table summarizes the benefits and disadvantages of each SQL Server HA option.
|
SQL Server HA option |
Advantages |
Disadvantages |
|---|---|---|
|
Clustering |
|
|
|
Mirroring |
|
|
|
AlwaysOn Availability Groups |
|
|
|
Transactional replication |
|
|
AVEVA PI Vision application server HA options
HA at the application server level can provide load balancing and fault tolerance.
The following table outlines some of the pros and cons for different network load balancing (NLB) and application request routing (ARR) implementations.
The following table summarizes the benefits and disadvantages of each AVEVA PI Vision application server HA option.
|
AVEVA PI Vision Application Server HA options |
Advantages |
Disadvantages |
|---|---|---|
|
Application request routing (ARR) |
|
|
|
Network load balancing (NLB) |
|
|
|
NLB and ARR (active/passive) |
|
|
|
NLB and ARR (active/active) |
|
For further information, see the PI Server topic Asset Framework (PI AF) high availability.