Skip to content

GxPHistorian Documentation Portal

Complete architectural specifications, 21 CFR Part 11 & EU GMP Annex 11 kernel controls, physical connector wiring guides, 35+ biopharma instrument playbooks, and the executed 8-document GAMP 5 Validation Binder.
FDA 21 CFR Part 11 WORM Audit TrailEU GMP Annex 11 & ALCOA+ISPE GAMP 5 (2nd Ed.) & FDA CSAClickHouse 24.8 LTS (DoubleDelta + Gorilla)PostgreSQL 16 ISA-95 ltree & ISA-88 Event FramesPydantic AI Co-Pilot & gxphistorian-mcp21/21 Executable IQ/OQ Qualification Tests

4-Pillar Industrial Historian Architecture

Pillar 1: Multi-Protocol Edge Collector

Telegraf 1.32 + Python Edge Workers normalize OPC UA, BACnet/IP (COV), Siemens S7, Modbus RTU/TCP, Windows COM OPC DA, and RS-232 / PI UFL watchfolders with in-memory Stage 1 Exception/Deadband (ExcDev / ExcMax), optional Stage 2 Swinging Door (CompDev / CompMax), and a 1M-metric disk-backed Store-and-Forward WAL.

Pillar 2: Immutable Telemetry Archive

ClickHouse 24.8 LTS (pi_historian.sensor_data) stores raw telemetry with lossless DoubleDelta, Gorilla, and T64 + ZSTD(1) codecs, real-time 1-minute AggregatingMergeTree rollups (WHERE quality >= 192), and native largestTriangleThreeBuckets (LTTB) visual peak preservation.

Pillar 3: 21 CFR Part 11 Control Plane

PostgreSQL 16 + FastAPI (historian-api) manages the ISA-95 ltree Asset Hierarchy (with AF Template Auto-Instantiation, UOM & Digital States), GxP Calculation Engine (MKT, F0F_0, SQC), PI Manual Logger, and ISA-88 Event Frames (TrueFor backfill, multi-stage §11.200 signatures & PI Notifications).

Pillar 4: Operator HMI, 8 Excel UDFs & Lakehouse

Pre-provisioned Grafana OSS 11.2 Bioreactor & Cleanroom HMI with Event Frame & Golden Batch overlays, 8 drop-in Excel DataLink UDFs (xlwings), StreamSets & zero-macro Power Query CSV respecting LINEAR vs. LOCF step tags, and Zero-ETL Snappy Apache Parquet exports.

GxPHistorian Vision — GxP Bioreactor & Cleanroom HMI Dashboard


Browse Documentation Sections


Hardware-Free Multi-Protocol Instrument Mock Testing (instrument-mock-server)

Every docker compose up -d deployment includes instrument-mock-server, a containerized biopharma skid and laboratory instrument emulator exposing 6 live industrial protocol listeners so you can verify wire-level connectivity, endianness decoding, WHERE quality >= 192 bad-signal rejection, and ISA-88 thermal excursion Event Frames without physical PLC hardware:

  • OPC UA Binary (TCP :4840): IEC 62541 HEL/ACK handshake + Node Read (ns=2;s=BR201.Temp.PV, ns=2;s=BR201.pH.PV)
  • Modbus TCP (TCP :5020): MBAP + FC 0x03/0x04 registers (40101..40112) in Float32 ABCD, Word-Swapped CDAB, and INT16 × 10
  • BACnet/IP (UDP :47808): ASHRAE 135 BVLC 0x81 Complex-ACK & JSON-UDP (Device 30104, analog-input,1 CR104_DIFF_PRESS)
  • Siemens S7comm (TCP :1102): RFC 1006 ISO-on-TCP TPKT + COTP + DB10 (DB10.DBW0 LOCF step state & DB10.DBD2 float32)
  • RS-232 Serial-over-TCP (TCP :4001): Moxa NPort 5150 TCP Server Mode for Mettler Toledo MT-SICS (SI\r\n, ZI\r\n, T\r\n) & OSMO\r\n
  • HTTP Control Plane, OPC DA 2.05a Bridge & PI UFL Watch-Folder (HTTP :8095): Run curl -s -X POST http://localhost:8095/control/self-test | jq . or open Mock Instrument Server & Protocol Testing Guide.
Need Turnkey GxPHistorian Implementation, Legacy OSIsoft PI Migration, or Site IQ/OQ/PQ Validation?

Saram Consulting (saram.io) delivers end-to-end OT/IT skid connectivity (Xcellerex, Biostat, ÄKTA, Raman PAT, BACnet EMS), lossless PI Data Archive backfill, and QA-signed 21 CFR Part 11 & GAMP 5 qualification packages.

Diagram Viewer