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 Windows User Account Control (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

To set up a local collector configuration:

  1. In the the Workbench, open the Hyper Historianprovider.
  2. In the navigation tree, expand several levels of tree nodes:localhost>HyperHistorian[the configuration database] >Node Setup and Redundancy
  3. Right-click theNode Setup and Redundancytree node and select the ClosedAdd Collectoroption. You can also click theNode Setup and Redundancytree node, then select theAdd Collectorbutton in the Edit group on theHome ribbon. TheHyper Historian Collectordialog appears, as shown below:
  4. Adding a Collector in Hyper Historian

Hyper Historian Local Collector

  1. Enter a name and description for the local collector.
  2. 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.
  3. When you are satisfied with the settings you have configured on this dialog, click the Apply button to save your changes, click the Apply & Close button to save your changes and close the dialog, or click the Apply & New... button to save your changes and create a new local collector.

    You can also discard the changes you have made on this dialog since you last saved by clicking the Refresh button or retrieve the most up-to-date settings stored in the Hyper Historian database by clicking the Reset button.

    If you wish to create a new local collector without saving or discarding the changes to this local collector, click the Add New... button.

Creating a Remote Collector

  1. In the Workbench, expand your active configuration so you can see Node Setup and Redundancy.
  2. Right-click Node Setup and Redundancy and select Collector.
  3. A new collector configuration opens in a new tab with the default local collector endpoint information.

Remote Collector Configuration

  1. Give the collector a name (e.g., "MachineName Collector," where the MachineName is the name where the logger is located).
  2. Select the Standalone Collector option and do the following:
    1. Use the Protocol drop-down list to select either HTTP or TCP.
    2. 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 check the Use Advanced Configuration option at the bottom of the form to manually enter the URL of the primary node. See step f. below.)

    3. 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.

    4. 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 check the Use Advanced Configuration option at the bottom of the form to manually enter the URL of the secondary node. See step f. below.)

    5. Enable 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.

    6. Click the check box next to Use Advanced Configuration to allow further configuration. Once the box is checked, you can enter both the Primary Node URL and Back Node URL directly (rather than relying on the dialog to fill them in as you configure the Primary NodeandSecondary Nodesections). Note that changes to this configuration may require you to make the same changes in the nodes configuration.

  3. You can also configure the Store and Forward feature. For more information, refer to the Collector Nodes: Redundancy & Store-and-Forward topic.
  4. When you are satisfied with the settings you have configured on this dialog, click the Apply button to save your changes, click the Apply &Close button to save your changes and close the dialog, or click the Apply & New... button to save your changes and create a new remote collector.

    You can also discard the changes you have made on this dialog since you last saved by clicking the Refresh button or retrieve the most up-to-date settings stored in the Hyper Historian database by clicking the Reset button.

    If you wish to create a new remote collector without saving or discarding the changes to this remote collector, click the Add New... button.

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.

  1. In the navigation tree, expand localhost > HyperHistorian[the configuration database] > Loggers & Groups > File Based Logger>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.

  1. Right-click Logging Group and select the ClosedAdd Collector Groupoption. You can also click the Logging Grouptree node, then select the Add Collectorbutton in the Edit group on theHome ribbon. The new Collector Group configuration opens in a new tab, as shown below:

    Collector Group Configuration
     
  2. Adding a Collector Group

  3. Give the Collector Group a Name, and in theProperties section, give it a name you would like to see in the navigation tree (Display Name).
  4. 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 button to the right of the drop-down list, and try looking in the drop-down list again.
  5. 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.

  1. When you are satisfied with the settings you have configured on this dialog, click the Apply button to save your changes, click the Apply &Close button to save your changes and close the dialog, or click the Apply & New... button to save your changes and create a new collector group.

    You can also discard the changes you have made on this dialog since you last saved by clicking the Refresh button or retrieve the most up-to-date settings stored in the Hyper Historian database by clicking the Reset button.

    If you wish to create a new collector group without saving or discarding the changes to this collector group, click the Add New... button.

Now that you have a collector group configured (within the Loggers &Groups tree node) to use the remote collector, you can the select the same collector group within the Data Collections tree 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 lights in the Home ribbon to turn the, green. If they are already green, refresh the configuration database (by clicking the Refresh button in the Edit section of the Home ribbon) 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:

Collector Groups and Hyper Historian Tags