Vision Report+ / Reference
Service Defaults
This chapter lists the fixed intervals and the configurable defaults of the Vision Report+ service.
Overview
This chapter lists the fixed intervals and the configurable defaults of the Vision Report+ service.
Loops and leases
| Item | Value | Runs on |
|---|---|---|
| Telemetry, heartbeat and leader election | Every 1 minute | Every node |
| License check | Every 1 hour | Every node |
| Configuration refresh from AF | Every 1 minute | Every node |
| Pending report executions | Every 5 seconds, 5 in parallel | Leader |
| Display prints | Every 5 seconds, 5 in parallel | Leader |
| Trigger evaluation (new executions) | Every 10 seconds | Leader |
| Cleanup of expired executions and prints | Every 10 minutes | Leader |
| Failure and silence alerts | Every 1 minute | Leader |
Node diagnostics (System_Status\Nodes) | Every 1 minute, with the heartbeat | Every node |
| Removal of node entries not updated for 7 days | Every 1 hour | Leader |
| Support bundles | With the display prints (every 5 seconds) | Leader |
| Execution lease | 30 minutes, renewed every 5 minutes | Leader |
| Maximum run time | 60 minutes (Service:MaxExecutionMinutes); a report run or display print still working then is stopped and closed as failed | Leader |
| Stalled run loop | A Critical log entry when a run loop has not finished a round 15 minutes after the maximum run time | Leader |
| Retry after a loop error | 2, 4, 8 ... up to 256 seconds | Every node |
| Retry of the AF connection at startup | 2, 4, 8 ... up to 256 seconds, until connected | Every node |
Retention
| Item | Value |
|---|---|
| Display prints | Deleted after 7 days |
| Unfinished display print requests | Closed as failed after 15 minutes |
| Support bundles | Request and zip deleted after 24 hours |
| Report executions | Deleted only when Auto Delete is on, after the set Hours, Days, Months or Years (default 12 months) |
| Service log files | Daily and at 10 MB; up to 14 files, at most 14 days |
High availability
| Item | Value |
|---|---|
| Leader timeout | Another node takes over when the leader's heartbeat is older than 3 minutes |
| Telemetry off | Every node acts as a standalone leader |
| System Status Online / Degraded / Offline | Heartbeat up to 1.5 minutes / up to 3.5 minutes / older |
| Node entries | Element System_Status\Nodes (AF migration 15), one String attribute per node named after the node, JSON: Node, Role, UpdatedUtc, LastLeaderHeartbeatUtc, ServiceVersion, ProcessStartUtc, ProcessId, MemoryMb, LoopProgressUtc, StalledLoops, QueueDepth (null when unknown), QueueDepthReadUtc, ChromiumState, ChromiumVersion, ChromiumBundledVersion, ChromiumActiveRenders, ChromiumRendersSinceLaunch, ChromiumLastError, LicenseStatus, LicenseMessage, LicenseExpiration, AfReachable, AfLastSuccessUtc, AfLastError, AfLastErrorUtc, LastError, LastErrorUtc. The leader deletes entries not updated for 7 days, never its own; administrators can delete an offline node's entry on the System Status page |
Support bundle
| Item | Value |
|---|---|
| Request | ManualExecution event frame named SupportBundle~<time>~<user> with the attribute SupportBundleRequest (AF migration 15), JSON LogDays (3, 1 to 14), ExecutionCount (50, 1 to 500), ToolbarVersion |
| Required right | The requesting user needs Admin on the Configuration element; otherwise the request ends Failed |
| Built by | The leader node; it attaches VisionReport-SupportBundle-<node>-<time>.zip to the request event frame |
| Files | manifest.json, versions.json, configuration.json, appsettings.json, system-status.json, nodes.json, license.json, executions.json, logs/VisionReport.Service-*.log (newest first, at most 40 MB) |
| Removed | Configuration attributes PIVisionUserPassword, MailSmtpUserPassword, AlertTeamsWebhookUrls and every attribute or appsettings.json key whose name contains password, secret, token, webhook, apikey, credential or license; LogoImage as its length |
| Reduced to counts | AlertRecipients, DefaultApprovalNotificationRecipients |
| Never included | license.dat, decrypted or stored passwords, client secrets, report and alert webhook URLs |
| Secret check | Every known secret value (configuration passwords stored and decrypted, alert and report webhook URLs, PI Web API password and client secret, secret appsettings.json values, the license file) is replaced in logs and texts, and the finished zip is searched for each value (as is, JSON-escaped, URL-encoded, HTML-encoded, in UTF-8 and UTF-16). A finding discards the zip; values shorter than 4 characters are not searched |
appsettings.json
| Key | Default | What it controls |
|---|---|---|
Serilog:MinimumLevel | Information | Log level until AF configuration has loaded (then DebugLoggingEnabled applies) |
Puppeteer:NavigationTimeout | 600000 | Display load timeout in milliseconds |
Puppeteer:Headless | true | Runs Chromium without a window |
Puppeteer:MaxConcurrentInstances | Twice the number of processors, at least 2, at most 20 | Maximum concurrent browser renders (not in the shipped file). A higher value than the server can handle makes simultaneous reports fail with navigation timeouts |
Puppeteer:RecycleBrowserAfterRenders | 100 | Restarts the bundled Chromium after this many renders, once no render uses it; 0 turns it off (not in the shipped file) |
Service:PrintTimeoutSeconds | 60 | Timeout of one print job |
Service:MaxConcurrentPrintJobs | 1 | Print jobs sent at the same time |
Service:LicenseReadFailureGraceHours | 24 | How long a known-good license stays valid while license.dat cannot be read |
Service:LicenseFilePath | %ProgramData%\Software Athlete\Vision Report+\license.dat | License file path |
Service:MaxExecutionMinutes | 60 | Maximum run time of one report run or display print (not in the shipped file) |
Service:AllowedDisplayHosts | empty | Hosts the service may open besides PIVisionHostName and, in Bearer mode, the host of PIConnection:Bearer:TokenEndpoint. Host names only, for example ["pivision2.contoso.com"]. It applies to each service node separately |
Service:AllowedPrintMailDomains | empty | Domains that prints from the Print pane and the print button may be mailed to, for example ["contoso.com"]. Exact domains only; empty allows every recipient. A recipient outside the list stops that mail. Report mail, alerts and approval notifications are not limited. It applies to each service node separately |
Service:ConditionSettleSeconds | 60 | How far behind real time Condition triggers check the data, because PI data arrives late. Each condition trigger reads its inputs at most once a minute (not in the shipped file) |
Service:ConditionMaxPeriodHours | 24 | Longest condition period a Condition period ends trigger waits for; a longer period gives one run at this limit. A check reads this far back only while a period is still open; a long limit then costs more PI Data Archive reads (not in the shipped file) |
Service:ConditionMaxValuesPerInput | 100000 | Most recorded values one condition input may have in the time a check reads; more fails the trigger with a message in the log and the System Status error log (not in the shipped file) |
Service:AllowUntrustedCertificates | false in the shipped file; true when missing | true accepts a PI Vision certificate this node does not trust. A missing setting counts as true, so an upgrade keeps working; new installations get false |
The bundled Chromium closes after 5 minutes without renders and starts again on the next one. It is also restarted after Puppeteer:RecycleBrowserAfterRenders renders, and right away when a render finds its page or the browser connection dead.
