Documentation PI Nexus+ Documentation

PI Nexus+ / User Guide

AF Analyses and Recalculation

This chapter shows how to find broken and costly AF analyses, and how to recalculate analysis results after a data outage, once or on a schedule.

Overview

This chapter shows how to find broken and costly AF analyses, and how to recalculate analysis results after a data outage, once or on a schedule.

Concepts

  • Service load is the share of the Analysis Service's time an analysis uses, shown as Low, Moderate or High (see AF Issues and Thresholds in the Reference).
  • Analysis Recalculation asks the PI Analysis Service to recalculate selected analyses for a past interval. It does not restore source data.
  • Operators and Admins can start runs when the license allows it and an administrator has allowed recalculation for the AF database (see AF Servers and Databases in the Administration Guide).

Find the costliest analyses

AF Analyses with the Service Load card, Filters, the Service load filter, the minimum runtime per day and the Total Runtime / Day card
  1. Open AF Analyses. The Service Load card counts analyses by Low, Moderate and High.
  2. Choose Filters.
  3. Set Service load to High or Moderate.
  4. Or enter a minimum such as Min runtime/day (sec) to list only analyses above it.
  5. Compare with Total Runtime / Day for the whole estate, then click an analysis to read its run times on Overview.

To find broken analyses, set Health to Error instead and read the health message on Overview. After a fix, Check health re-reads the analysis; it does not recalculate past results.

Recalculate after an outage

Analyses step of the recalculation dialog with two analyses selected, the Selected list, the Time step and Continue
  1. Restore and check the source PI Point history for the outage period first. Good current values do not prove the history is complete.
  2. Start from the source: Recalculate affected analyses in a PI Point's More actions menu, Recalculate analyses on PI Points, or Recalculate analyses in a PI Interface or Collector's More actions menu.
  3. Select the analyses that need repair (at most 100) and choose Continue.
  4. On Time, enter Start and End, choose the Mode, and choose Review.
  5. On Review, Ready and Warning analyses can start; Blocked shows its cause. Choose Start run, or Start N analyses to send only the runnable ones.
  6. Follow the run (see Follow a request), and verify the results in PI System Explorer.

Users who may not recalculate see Show affected analyses instead.

Choose the mode deliberately. Fill gaps leaves existing results unchanged, even wrong ones. Replace existing results rewrites them, and only with it can you tick Recalculate dependent analyses. Recalculate upstream analyses before the ones that read them. See Result modes in the Reference.

Follow a request

Analysis Recalculation list with the status filters, a run, its menu and New run
  1. Open AF Analyses > Analysis Recalculation and filter the list, for example by Needs attention.
  2. Click a run to open Run details: the outcome of each analysis.
  3. Use the row menu to Retry failed or unconfirmed analyses.
  4. Choose New run to recalculate without a source.

Each run is also listed under Change History > PI Nexus+ writes (see Fixing issues); a recalculation cannot be undone. Request sent means the request reached PI, not that the calculation finished. Send unconfirmed means it may have reached PI: check PI System Explorer before you retry, because a retry can send it twice. If starting a run returned an uncertain response, use Retrieve request rather than starting a second run. All states: Submission states.

Schedule a recurring recalculation

  1. Open AF Analyses > Scheduled recalculation and choose New plan.
  2. Select 1 to 100 analyses and choose Continue.
  3. Enter a name, Start time and End time as PI time expressions (for example t-7d and t), and the mode.
  4. Choose Hourly, Daily or Weekly and the time, check the preview, and choose Create plan.

Each occurrence is checked against current permissions before it is sent; a blocked occurrence does not stop the plan. See Scheduled recalculation in the Reference.

Review a recalculation suggestion

When an administrator enables suggestions in a PI Point Rule, a point that went bad or stale and then recovered creates a suggested run. Suggestions never start anything on their own.

  1. On Analysis Recalculation, choose Suggested and open a row's Details.
  2. Choose Review & start, or select several overlapping suggestions to review them as one run.
  3. Check the source history and start as in Recalculate after an outage.

To decline, expand Dismiss, enter a reason and choose Dismiss.

Reference: Analysis Recalculation Reference