...
...
In PI Vision oben links auf “Assets” klicken um entsprechenden Bereich aufzuklappen.
Im oberen Bereich mit einem Klick auf “weruHighAvailability” das Control selektieren.
Im Anschluss kann das Control mit einem beliebigen Attribut nach Navigation durch den Asset Tree per Drag&Drop dem Display hinzugefügt werden. Das HighAvailability Control ist auf dem Display vorhanden und kann konfiguriert werden.
Konfigurationsmöglichkeiten
Bei der Installation kann die Datei “sym-weruHighAvailability-DefaultConfig.js” angepasst werden um die Standard-Werte der Konfigurationskachel zu hinterlegen. Diese Anpassung kann nicht im Nutzer in PI Vision angepasst werden!
Mit einem Rechtsklick auf das Control besteht die Möglichkeit auf “Konfigurieren” zu drücken. Dadurch erscheint die Konfigurationskachel.
...
Info |
---|
Die “Enabled“ Option schaltet das Control ein oder aus. (Schalten sie vor dem bearbeiten der Optionen am besten immer das Control vorher aus, um falsche Serverabfragen zu verhindern.) |
Funktionsweise des Controls
Info |
---|
Wenn nur ein Server hinterlegt ist: |
Info |
---|
Wenn zwei Server hinterlegt sind: |
Entfernen des Controls
Als erstes muss in den Bearbeitungsmodus gewechselt werden (Icon oben rechts).
Nach einem Klick auf das Control kann es mit der Entfernen-Taste gelöscht werden.
Standardkonfiguration
...
Starting the Control
To start the control click on the “Assets” button in the upper left corner of the PI Vision display.
In the upper part select “weruHighAvailability” by clicking on it.
Afterwards an arbitrary attribute from the asset tree could be added to the display via drag and drop. The HA control appears on the display and can be used.
Configuration
With a right click on the control it is possible to press "Configure". Thereby the configuration tile appears.
...
The "Enabled" option switches the control on or off. (Before editing the options, it is always best to switch the control off first to prevent incorrect server queries).
The "Server 1" option specifies the first server to be controlled. (This field is required)
The "Server 2" option is optional and specifies the second server to be controlled.
The "Interval(ms)" option specifies the time interval in milliseconds in which the server(s) will be checked.
The "Max Timeout(s)" option specifies the maximum time in seconds a server can take to be counted as unreachable.
Functionality of the Control
tbd
If only one server is stored:
Server 1 is queried periodically to see if it can still be reached.
If the connection fails, the page is reloaded. So that your server redundancy is used.
(This option should only be used if you have more than 1 server running over one URL).
If two servers are stored:
Server 1 and server 2 are periodically queried whether they are still accessible.
It is automatically switched to the other server in case of failures, if necessary.
Default Configuration
The configuration file "weruPIVisionSuiteConfig.js" is located on the PI Vision Server within /PIVision/Scripts/app/editor/symbols/ext/libraries und beinhaltet die Standardkonfiguration der and contains the default configuration of the PI Vision Suite.
Im Abschnitt “HAconfig” kann die Standardkonfiguration für das High Availability Control vorgenommen werden. Diese Werte werden beim Hereinziehen des Controls in das Display als Konfiguration übernommen und können später über Rechtsklick → Konfigurieren verändert werdenIn the "HAconfig" section, the default configuration for the High Availability Control can be set. These values are adopted as the configuration when the control is dragged into the display and can be changed later by right-clicking → Configure.
Info |
---|
This can only be changed by an admin! |
Removing the Control
Before removing the control it is necessary to switch into edit mode (Icon in the upper right corner). Thereafter it is possible to click on the control and press the delete key to remove the control.