IMD SolutionComputing LibraryShop main store

Explainer

Internal Historian point limit: data loss and backup growth

Edge computing and IIoT Published 6 min read

Short answer

Point Limit Size caps the points the Ignition Internal Historian keeps per tag, so one-second logging evicts history after about 86,400 points — one day — and every stored point rides inside the gateway backup. At hundreds to thousands of values per second, move the tags to a SQL history provider on MariaDB or PostgreSQL and size its host from the measured row rate.

On this page
  1. What Point Limit Size does
  2. Retention is the limit times the interval
  3. Why the gateway backup grows with the limit
  4. The decision at hundreds to thousands of values per second
  5. Size the SQL store from the row rate
  6. Move the tags with the history you need
  7. Verify retention and backup size after the cutover
  8. Questions asked

Yes to both observations: the zeros and the backup growth come from the same setting. Point Limit Size caps how many points the Ignition Internal Historian keeps per tag. At one value per second, 86,400 points is exactly one day, so history older than a day is evicted and the trend draws zero over the empty range. Because the internal store lives inside the gateway, every point added by raising the limit also lands in the gateway backup. For hundreds to thousands of values per second, the decision is to move those tags to a SQL history provider on MariaDB or PostgreSQL, hosted and sized from the measured row rate, and keep the Internal Historian for small, short-lived data sets.

What Point Limit Size does #

Point Limit Size is the setting on the Internal Historian provider that caps how many data points the store keeps; the Ignition user manual documents the default as 10,000,000 points. Once a tag reaches the cap, the oldest points are discarded to make room for new ones. Nothing is corrupted — the eviction is deliberate and silent.

A query that spans the evicted range returns no rows for that span, and the chart fills it with zero or leaves it blank, depending on how the chart handles missing data. That is why the pen looks healthy for about a day and flat beyond it.

Two checks separate this cause from look-alikes: open the provider settings and read the configured Point Limit Size, and check the query row limit when a historian trend flat-lines, which produces a similar flat pen with a different fix.

Retention is the limit times the interval #

Two numbers you control set the window:

retention (s) = Point Limit Size (points) x logging interval (s per point)

Worked example from the observed boundary: one value per second for 24 h is 24 x 3,600 = 86,400 s, so a trend that dies at one day was running with about 86,400 points of budget per tag. The documented default would hold 10,000,000 x 1 s / 86,400 s per day, about 115.7 days at the same rate, so read the configured value on the provider — it, not the default, sets where the cliff sits.

Logging interval Points per tag per day Days kept at 86,400 points Days kept at 10,000,000 points
1 s 86,400 1.0 115.7
5 s 17,280 5.0 578.7
60 s 1,440 60.0 6,944 (about 19 years)

Sizing the other way: 30 days of one-second history needs 30 x 86,400 = 2,592,000 points per tag, and that requirement is what lands in the backup question next.

Why the gateway backup grows with the limit #

The Internal Historian holds its points inside the gateway's own storage, and the gateway backup captures that store. Backup size therefore scales with tag count times points per tag, so raising the limit to buy retention buys backup bulk at the same rate.

Illustrative example: 200 tags at one-second logging with a one-day cap hold 200 x 86,400 = 17,280,000 points. Raising the cap to 30 days — 2,592,000 points per tag — multiplies the store to 200 x 2,592,000 = 518,400,000 points, thirty times the internal data and a gateway backup that takes, transfers and restores correspondingly longer.

Two side effects ride along: restoring an older gateway backup rolls history back to that backup's date, because history and configuration travel together; and history writes compete with the gateway's own workload on the same host. The growth is normal behavior, and it is the clearest sign the store was not meant for this volume.

The decision at hundreds to thousands of values per second #

Approach Retention control Backup impact Fit at 100+ values/s
Raise Point Limit Size Linear — double the limit, double the window Grows with every stored point Poor
Log less: on-change sampling, deadbands, slower rates Extends the window under any cap Reduces growth Partial
Move tags to a SQL history provider Set by retention and pruning on the database Gateway backup returns to configuration-only Use this

Use the third together with the second. MariaDB and PostgreSQL are open-source and both serve as Ignition tag history providers; pick the one your team can already back up and patch. Keep the Internal Historian for small, short-lived sets — a local buffer, a demo, a handful of tags. Logging less applies whatever the store: fast analogs stay periodic, discretes and slow temperatures log on change with a deadband, and downsampling old historian data to one-minute averages keeps the long window affordable once the short one is covered.

Size the SQL store from the row rate #

The row rate drives disk, IOPS and whether the database needs its own server:

rows per day = tag count x 86,400 / logging interval (s)

Load Rows per day Rows per 30 days
1,000 tags at 1 s 1,000 x 86,400 / 1 = 86,400,000 2,592,000,000
2,000 tags at 1 s 2,000 x 86,400 / 1 = 172,800,000 5,184,000,000
1,000 tags at 60 s 1,000 x 86,400 / 60 = 1,440,000 43,200,000

These are upper bounds that assume every tag logs every interval; on-change sampling with a sensible deadband cuts the real count sharply for slow process values. Bytes per row cannot be estimated reliably on paper — log a representative day, measure the database's growth, and size disk, partitioning and pruning from that measurement.

Inductive Automation's Ignition Server Sizing and Architecture Guide is the reference for the gateway-to-database split. At the one-second rates in the table's top rows, give the database a dedicated host with fast storage — in a cabinet that host can be a compact box PC chosen for the measured row rate. The discipline is identical whatever engine stores the points; sizing an edge PC for oversampled PLC data to InfluxDB runs the same arithmetic from the measured rate.

Move the tags with the history you need #

  1. Stand up MariaDB or PostgreSQL on a host separate from the gateway at this volume, with a dedicated database and a login holding create and write rights.
  2. Add the database connection in the gateway with the matching driver, and confirm the connection reports a valid status before continuing.
  3. Review the store-and-forward settings for that connection: the memory buffer and the local disk cache must absorb a database outage at your row rate, or a routine database restart becomes a new data gap.
  4. Point the tags at the new history provider in the UDT definitions or with a bulk tag edit, so no tag stays on the internal provider by mistake.
  5. Set the sample mode per signal class: fast analogs periodic, discretes and slow temperatures on change with a deadband.
  6. Export any Internal Historian ranges you still need — they do not migrate on their own.
  7. Reduce Point Limit Size to what the remaining internal tags need, then take a fresh gateway backup.

Verify retention and backup size after the cutover #

Open the store-and-forward diagnostics for the historian connection: the forward rate should match the incoming rate, the quarantine count should sit at zero, and the cache should not grow over time.

Count rows directly over one minute: for periodic tags the count should land near tag count x 60 / interval — 1,000 tags at 1 s gives about 60,000 rows per minute — and lower for on-change tags. Confirm new partition tables appear on schedule and that pruning removes the oldest ones once the retention age passes; how historian pruning and retention are configured covers that side of the provider. Then compare gateway backup sizes before and after the Point Limit Size reduction: the backup should return to near its configuration-only size and stop growing day to day.

Questions asked

Why does the Internal Historian return zeros for data older than a day?

The store keeps a capped number of points per tag, and at one value per second a day is 86,400 points; past the cap the oldest points are discarded, so queries over that range return nothing and the chart draws zero or a blank span. The data is evicted, not corrupted. If the flat segment shifts with the query's time range instead of sitting at a fixed date, suspect the query row limit rather than the point cap.

Is it normal that raising Point Limit Size grows the project backup?

Yes. The Internal Historian holds its points inside the gateway, and the gateway backup captures that store, so backup size scales with tag count times points per tag. There is no separate time-based retention on the internal store — the point cap is the retention — and an older backup restores the history as of its date. Treat fast backup growth as the signal to move heavy tags to a SQL provider.

How many rows will 1,000 tags at one-second logging write?

86,400,000 per day and 2,592,000,000 per 30 days if every tag logs every interval: 1,000 tags times 86,400 seconds. On-change sampling with deadbands lowers it for slow signals. Measure bytes per row from a 24-hour sample of your schema and size disk, partitioning and pruning from that measurement rather than a rule of thumb.

Does history move across when I switch tags to a SQL historian?

No. Points already written to the Internal Historian stay there, and new writes go to the SQL provider from the moment of the switch, so a gap before the switch date on the new charts is expected. Export the internal ranges you still need before reducing Point Limit Size, and check store-and-forward diagnostics for quarantined data if a gap appears after the switch.

What Point Limit Size should remain on the Internal Historian afterward?

Keep the provider only for small, short-lived sets and size the cap from the window you actually need: points equal the window in seconds divided by the interval. A seven-day window at one point every 10 s needs 7 x 86,400 / 10 = 60,480 points. With the heavy tags gone, the gateway backup should settle back to configuration-only size and stop growing day to day.

Keep reading

  • Selection guide

    GeoSCADA Data Tables or an external SQL database

    Keep the records in native Data Tables while each retained table stays within the documented 100 MB maximum and writes are infrequent, exporting and trimming what you keep. Move to an external SQL database with ODBC linked tables when growth, business data ownership, or several SCADA systems needing one source of truth dominates, and call that database from client scripts or a separate service, never from logic.

    Edge computing and IIoT

  • How-to

    Identifying the source gateway in a shared historian database

    The history does not land in one table. Each gateway connected to the shared database registers at least two rows in sqlth_drv, and the number in the sqlt_data_ table prefix is one of those row IDs, so the source is already recorded. Join sqlth_te to sqlth_drv for the tag-to-gateway map and filter the visualization on a site-code tag-path prefix, not on scan class names.

    Edge computing and IIoT

  • How-to

    Seed a large Ignition historian database for replication

    Stage the backup database by closed partition, not in one 88 GB dump. The measured 4.5 GB in 40 minutes gives 6.75 GB/h, so the whole history is about 13 hours of dumping, but a weekly 2 GB partition is an 18-minute unit you can restore and verify before starting MySQL replication from that aligned state.

    Edge computing and IIoT