Remote Collectors
Hyper Historian is separated into two parts: data collection and data logging. While you can have only one logging server for non-redundant setup, multiple collectors can sample data for you.
Using a remote collector could potentially cut down on your network traffic. Consider a scenario where you are collecting data every second and using a calculation period of one minute to find the maximum value for the minute. If your OPC server is remote, then, it will have to forward a sample to the local collector every second. However, if you put the collector on the remote machine where the OPC server resides, it would only need to send the calculated value to the logger once a minute. With this setup, the amount of network traffic decreases to one value per minute as opposed to one value per second.
You can take advantage of this type of setup if you have Hyper Historian Enterprise Edition licensing. This document walks you through the steps to setting up a remote collector.
General Setup
In order for a remote collector to work properly, the time on all computers in question must be synchronized. This means the computer running the collector should have the same time as the computer that is running the logger.
There are a couple of ways to synchronize the time on your machines:
-
Synchronize the machines in a domain using the domain controller as the time keeper
-
Synchronize the machines with connections to the Internet by pointing each machine to the same Internet time server
You can find more information on how to synchronize the time on different machines in the Synchronizing Machine Time topic.
To make sure the computers can communicate with each other, you should turn off Windows Firewall or create an exception for the ports that the collectors are using. You may also want to turn off UAC, as it could also hinder application communication.
With these general settings applied, you should be ready to start configuring your remote collector.
What You Need to Install
For Hyper Historian Logger, a complete Hyper Historian installation must be installed on the machine. There can be only 'local' Loggers.
For a remote Hyper Historian Collector, you can use a standalone Hyper Historian Collector installation, which is available on the Hyper Historian DVD. You can also use a remote collector on a complete Hyper Historian installation.
Creating a Local Collector
It is quite simple to set up a local collector configuration. Let’s see how the Local Collector is set up.
-
In the Workbench, expand your active configuration so you can see Node Setup and Redundancy.
-
Right-click Node Setup and Redundancy and select Collector.
-
A new collector configuration opens in a new tab with the default local collector endpoint information.
-
Enter a name and description for the local collector, as shown below:
Hyper Historian Local Collector
-
In the Collectors section, make sure the In-Process Collector option is selected. This will configure a Local collector and no additional configuration is required.
Creating a Remote Collector
-
In the Workbench, expand your active configuration so you can see Node Setup and Redundancy.
-
Right-click Node Setup and Redundancy and select Collector.
-
A new collector configuration opens in a new tab with the default local collector endpoint information.
Remote Collector Configuration
-
Give the collector a name (e.g., "MachineName Collector," where the MachineName is the name where the logger is located).
-
Select the Standalone Collector option and do the following:
- Use the Protocol drop-down list to select either HTTP or TCP.
- Enter a Name for the Primary Node or select one from the drop-down list. The URL field is pre-filled from your primary node selection. (Alternatively, you can use the Advanced Configuration option at the bottom of the form to manually enter the URL of the primary node. See step f. below.)
- You now have the option to click the check box next to Secondary Node to identify a backup node in case the primary node becomes unavailable. The following steps assume you have proceeded with configuring a backup node.
- Enter a Name for the Secondary Node or select one from the drop-down list. The URL field is pre-filled from your backup node selection. (Alternatively, you can use the Advanced Configuration option at the bottom of the form to manually enter the URL of the secondary node. See step f. below.)
- Click the check box next to Auto Fail-back if you want Hyper Historian to automatically switch from the backup (secondary) node back to the primary node when the primary node becomes active again.
-
Click the check box next to Use advanced configuration to allow further configuration. Once the box is checked, click the Advanced Configuration button at the bottom of the window. This opens the Advanced Redundancy Configuration dialog box, which allows you to enter both the Primary Node URL and Back Node URL directly (rather than from the selection of the Primary/Backup Nodes in the main properties window). Note that changes to this configuration may require equivalent changes in the nodes configuration. Click OK to close the dialog box and proceed.
- You can also configure the Store and Forward feature. For more information, refer to the Collector Nodes: Redundancy & Store-and-Forward topic.
Using the Remote Collector
To use the remote collector, you will need to create a collector group that uses it. Once this is done, you can configure the rest like any other collector group.
-
Expand localhost > (your database) > Groups > Logging Group.
NOTE: This topic uses a pre-configured logging group called "Logging Group" in the sample Hyper Historian configuration. You can choose whatever logging group you want to use.
-
Right-click Logging Group and select Collector Group.
-
The new Collector Group configuration opens in a new tab.
-
Give the Collector Group a name and in the Collector section, select the remote collector you just created. If you don’t see the collector in the drop-down list, click the Refresh Collectors button and try looking in the drop-down list again.
-
Configure the Collection Parameters and give an optional description if you wish.
NOTE: If you are not familiar with the Collection Parameters settings, please refer to the Data Collectors topic.
-
Click Apply to save your settings when you are done. Your configuration should look similar to the figure below:
Collector Group Configuration
-
Now that you have a collector group configured (within the Groups node) to use the remote collector, you can the select the same collector group within the Data Collections node to add tags to it like you would for any other collector group. See the topic about Hyper Historian Tags for more details.
-
You can also view remotely-collected data the same way you would for locally-collected data in the Trend Viewer. The remote collectors load the configuration that is set on the logger machine. The configuration information for the tags that are added to a Collector Group are automatically sent to the appropriate collectors by Hyper Historian when it starts up or when there is a change in the configuration.
-
Once you are done with your configuration, you can start the Hyper Historian service by clicking the traffic light in the Home ribbon to turn it green. If it is already green, refresh the configuration database so that the new settings apply. Also, start the Hyper Historian service on the remote collector to start data collection. For more information, refer to the Starting and Stopping Hyper Historian Services topic.
See also: