WW INFO-02 - Wonderware Historian Best Practices Final
WW INFO-02 - Wonderware Historian Best Practices Final
Best Practices
social.invensys.com
@InvensysOpsMgmt / #SoftwareRevolution
Ray Norman /InvensysVideos
/Wonderware
/company/Wonderware
© 2013 Invensys. All Rights Reserved. The names, logos, and taglines identifying the products and services of Invensys are proprietary marks of Invensys or its subsidiaries.
All third party trademarks and service marks are the proprietary marks of their respective owners.
Slide 2
Slide 3
Questions???
Slide 4
Best Practices - Caveat
Slide 5
Agenda
Historian Review
Historian 2012 R2
Hardware and Virtualization Practices
Upgrade and Historian Maintenance Practices
Slide 6
Agenda
Historian Review
Historian 2012 R2
Hardware and Virtualization Practices
Upgrade and Historian Maintenance Practices
Slide 7
A Historian Is…
A storage repository for time-based information – a Database
But a Historian is much more than a database
–A Historian stores process data - lots of it
–A Historian lets you retrieve the process data – sensibly
–A Historian Transforms the process data into Information
Yogi Berra
Slide 9
A Historian Is…A Gold Mine !
1
© Invensys 23
Invensys Slide 10
0
October 2013
proprieta
ry &
Why Wonderware Historian?
Low Customer Risk
– Installed Base over 70,000 licenses sold
– Optimal use of COTS - Microsoft SQL Server
Slide 11
Historian 10.0
Historian 10.0 Wonderware introduced key new functionality
Tiered Storage Capability
Retrieval Enhancements
Improved System Platform Namespace Integration
Slide 12
Historian 10.0 Architecture
SQL Server
Retrieval
IDAS/
History Blocks
SuiteLink Storage
Engine
“Pull” Data
Acquisition
Storage
“Push” Data Replication
Acquisition Acquisition
Application Historian
Server
New “historian”
hidden within 10.0
Slide 13
Tiered Historian – Simple Data Replication
Tier 2 Example:
1-second data
Replicate all data
for selected or all
tags
Slide 14
Tiered Historian – Simple replication &
Summary Data
Tier 2 Example:
5-minute, hourly, daily data
“Summary” Tag
Many aggregate
values for each
Slide 15
Tiered Historian Architecture
Business Domain
Enterprise
Historian Historian
“Tier 2”
Client Client
Historian
Corporate Network
Open Outbound
Replication (single TCP port)
SCADA Domain
Local/Std
Historian “Tier 1”
Client Historian
Control Network
Application
I/O InTouch
Server
Slide 16
Tiered Historian- TCP Port
Tier2 Historian Configuration (Parameters)
Tier1 Historian
Configuration
(Replication Servers)
Slide 17
Tiered Historian – Under the Covers
Simple Replication Data Packet Payload:
–Real - 34 Bytes
–Integer – 32 Bytes
–Discrete – 31 Bytes
–Data Chunk Size (2-bytes), tagid (16-byte GUID), FILETIME
(8 bytes), OPC Quality (2 bytes), QualityDetail (2 bytes), and
value bytes (for example 4 bytes for 32-bit integer tags)
–Plus Zip Compression (~ 30%)
Summary Replication Data Packet Payload:
–Analog - 96 Bytes/Sample
–Discrete State - 68 Bytes/Sample
–Analog State - 71 Bytes/Sample
–>50% Compression ~ 39 Bytes/Sample over time
Slide 18
AnalogSummaryHistory
Slide 19
StateSummaryHistory
Slide 20
Analog and String
StateSummaryHistory
Slide 21
Tiered Historian Summary
• Historian Servers Two Main Roles in a System
•Operational Historian (Short Term Trending, Reporting, Statistics)
•Business Historian (Long Term Storage, Process Analysis,
Advanced Reporting)
•Same Historian Instance for Both Roles
•Historian Placed in a DMZ
• Tiered Historians offer a Better Solution
•Local Operational Historian (25K Tags, 7 Days) $2.5K
•Enterprise Business Historian (Part of System Platform Bundle)
•No Need for a DMZ
•Single Outgoing TCP Port on SCADA Firewall
•Supports Domain Isolation Security Model (No Shared Credentials)
•Push of Configuration and Data from SCADA to Business LAN
Slide 22
Agenda
Historian Review
Historian 2012 R2
Hardware and Virtualization Practices
Upgrade and Historian Maintenance Practices
Data Retrieval and Transformation
Special Sauce
Slide 23
The Most Amazing
Wonderware Historian Ever
Continued
• World class desktop tools
• Rich query capability
• Low management cost & effort
All new integration with Application Server
Significantly higher tag counts
Redundant Historians
SQL Server 64-bit support (2008 R2 and 2012)
New Toolkit
Slide 24
Historian 2012 R2 Architecture
SQL Server
Retrieval
Slide 25
Historian 2012 R2 Communications
SQL Server
Retrieval
SuiteLink
(Single TCP Port) Application
Storage Server >3.5
Engine
“Pull” Data “Push” Data
Acquisition Acquisition
Storage
“Push” Data Replication
Acquisition Acquisition
Application Historian
Server <3.6 COM/DCOM WCF
Named Pipes (Single TCP Port)
Slide 26
Engine Data Acquisition Throughput
150,000
100,000
10.0
2012 R2
50,000
0
Sustained Burst Late
Values Per Second
Slide 27
Reliable Data Acquisition
On failover, history gap from:
Historian • Detecting failure
Client
• Starting engine from checkpoint*
• Subscribing to I/O*
Wonderware
• Initializing history* N/A for 2012 R2
Historian 140
120
Redundant 100
80
Application Engines
60
Server 40
Redundant DI 20
Objects 0
System System
Control System Platform Platform
2012 2012 R2
Slide 28
High Availability
Historian
Client
Multiple Clients
Slide 29
Configuring Redundant Historians
MYHISTORIAN02
MYHISTORIAN01
Slide 30
Using CSV Files For Data Acquisition
500 CSV files, each for 1,000 tags
10.0
100% 2012 R2
0%
Processing # Retrieval Time
Time Streams
Slide 31
Business Historian as a R/O Real-Time
DAServer
Customers
2012 R2 Release
RDS/WIS Application
InTouch Server Server
Corporate Advanced
Engineering DAServer Alarming
Enterprise “Tier 2”
Historian Historian
Historian
Client Client
Corporate Network
Open Outbound
Replication (single TCP port)
DMZ Required
Local “Tier 1”
Historian
Slide 32
Historian 11 Under the Covers
Slide 33
AI (Active Image) Tag Ownership
Slide 34
AITag Upgrade
AITag = 1 AITag = 0
AITag = 1 AITag = 0
(before) (after)
transition time
point now
AIHistory = 1 AIHistory = 0
instructs Retrieval to search for instructs Retrieval to search
Classic Storage data for New Storage data ONLY
Slide 36
Retrieving AITag Data (Real World)
AITag = 1 AITag = 0
(before) (after)
transition time
point now
AIHistory = 1 AIHistory = 1
instructs Retrieval to search for May have to run SQL
Classic Storage data Update if new Historian
Slide 37
Channel Status Tag
Slide 38
Agenda
Historian Review
Historian 2012 R2
Hardware and Virtualization Practices
Upgrade and Historian Maintenance Practices
Slide 39
Useful Documents
Slide 40
Specifying Historian Host Hardware
• OS: Win7/Server2k8R2
– Note Client Connection Limit on Win7
Slide 41
Specifying Historian Host Hardware
• OS: Server2k8R2
• CPU: Quad-core CPU
• RAM: 6 GB
• NIC: 1 Gbps network interface card (NIC)
Slide 42
Specifying Historian Host Hardware
• OS: Server2k8R2
• CPU: Dual-Quad-core CPU (Xeon)
• RAM: 10 GB
• NIC: 1 Gbps network interface card (NIC)
Slide 43
Specifying Historian Host Hardware
• OS: Server2k8R2
• CPU: Dual-Quad-core CPU (8 Core @ 2.6 GHz-Xeon)
• RAM: 16 GB
• NIC: 1 Gbps network interface card (NIC)
Slide 44
Historian Disk Sizing and Data Storage
Considerations
• How important is the data?
• Is anyone in the organization going to require operating data that is
older than a month? Older than a year?
• How long can the system be off-line in the event of a component
failure?
• What happens if the system stops storing data?
• What happens if stored data is lost as a result of a hard drive failure?
• Can the server equipment be taken off-line to perform repairs?
Slide 45
Storage Hardware
Slide 46
Tiered Historian – Under the Covers
Summary Replication
– 84 Bytes/Sample
– >50% Compression ~ 34 Bytes/Sample over time
Slide 47
Network and Storage Calculator
Slide 48
Configure and Use Alternate Storage
Slide 49
Historian Virtualization
• ESX/vSphere 5
• Hyper-V
• Proper Host
Hardware/Drive
Selection Required
• Watch Checkpointing!
– History Block
Changeover
– History Block Error on
Restore
Slide 50
Virtualization Example: Large System
Slide 51
VM Cores and Memory Considerations
• Hyper-Threading
– Hyper-Threading Technology can be used to extend the amount of cores,
but it does impact performance. An 8-core CPU will perform better than a 4-
core CPU that is Hyper-Threading.
Slide 52
VM Storage Recommendations -1
Slide 53
Storage Recommendations -2
Slide 54
Network Considerations
Networking is as important as any other component for the
overall performance of the system.
Recommended Networking for Virtualization
• If virtualization is your only requirement, your network
topology could include the following elements:
– Plant network
– Storage network
– Virtualization network.
Slide 55
Virtual Host Recommendations - Review
• HP Servers
• 1GB Flash Backed Write Cache is HIGHLY recommended
Slide 56
It’s About Time (Stamps)
• Pick One!!
– Domain Time Synch (Windows Time Service)
– W32TM
– Net Time
– NTP (Network Time Protocol)
– 3rd Party
Slide 57
Agenda
Historian Review
Historian 2012 R2
Hardware and Virtualization Practices
Upgrade and Historian Maintenance Practices
Slide 58
Upgrading Your Historian
• In-Place Upgrade
– Backup the RT Database!!!
– Run Historian 10.0 SP1/Historian 11 Install
Slide 59
Upgrading – In-Place Upgrade
Slide 60
Runtime DB Maintenance
Slide 61
Active Image – AITag = 1
Slide 62
What’s the most important online
measurement at your site?
Alarms
Real-time
Displays
Email
Trends
Slide 63
How important is the Historian to your
site?
Web-
accessible Pager
Status
Alarms
Real-time
Displays
Email
Trends
Slide 64
Historian System Tags
System Resource Monitoring
• Memory
• Processor
• Disk
• “Outside real-time”
Slide 65
Historian I/O Server: aahIOSvrSvc
Slide 66
Using System & Platform Tags
InTouch/System Historian
Platform
► Alarms ► Event Tags
► Status indicators ► Email Action
Slide 67
Historian Event Tag
Slide 68
Faster Diagnostics With Trend
Slide 69
Memory Management for Storage
• aahIndexSvc
– Manages Tag and History Block Information
– Can be Memory Intensive
– Use Perfmon to observe
Slide 70
Questions???
Slide 71
The most amazing Wonderware Historian
Thank
EVER!You!
[email protected]
Slide 72