Installation
Configuration
Management
Monitoring
Troubleshooting
Advanced Configuration
Once a suitable host is selected for the Data Hub, follow the relevant sections below to install the software and begin accepting messages.
To install the Data Hub software:
Install
.Assuming there are no errors, you should now be able to configure appropriate destinations and begin sending data to the Data Hub using the Endpoint URL provided.
If you already have a PreEmptive Analytics for TFS (PA TFS) endpoint deployed and receiving data, you may wish to insert the Data Hub in front of that endpoint. Doing so will redirect all messages originally intended for PA TFS to the Data Hub, allowing you to gain the advantages of the Data Hub without needing to re-instrument previous applications.
It is possible to install the Data Hub on a separate host and use DNS or load balancing to redirect the traffic, or to install the Data Hub on the same host as PA TFS. We recommend installing it on a separate host, when possible, but either configuration is supported.
Note that these instructions assume that the PA TFS endpoint uses the default port, 8000
, and that SSL was not used. Adjust appropriately depending on your installation to ensure all ports and schemes are supported.
This section explains how to deploy the Data Hub on a new host, redirect all traffic intended for the PA TFS endpoint to the Data Hub, and finally dispatch messages from the Data Hub to the PA TFS endpoint.
These steps assume the following prior state:
8000
.PATFS_PUBLIC
, was used to instrument all applications that send data to the PA TFS endpoint.PATFS_INTERNAL
can be used to access the PA TFS endpoint host from both of the other hosts.8000
, the default.
http://PATFS_PUBLIC:8000/message/endpoint.ashx
http://PATFS_PUBLIC:8000/analytics/FaultQuery.svc
PATFS_PUBLIC
hostname.The final state will be:
PATFS_PUBLIC
hostname now points to the IP of the Data Hub host. PATFS_INTERNAL
still refers to the PA TFS endpoint host.80
and 8000
, with a rewrite rule redirecting :8000/message/endpoint.ashx
to :8000/endpoint
.
http://PATFS_PUBLIC/endpoint
http://PATFS_PUBLIC:8000/message/endpoint.ashx
http://PATFS_INTERNAL:8000/message/endpoint.ashx
http://PATFS_INTERNAL:8000/analytics/FaultQuery.svc
PATFS_INTERNAL
hostname.To deploy the Data Hub in front of PA TFS, on a new host:
8000
.
^message/endpoint\.ashx$
.^8000$
.endpoint
.http://PATFS_INTERNAL:8000/message/endpoint.ashx
.PATFS_PUBLIC
points to the Data Hub, not the PA TFS endpoint.PA TFS has two separate server components: the endpoint, and the aggregator (though the basic installation will place both components on the same host). The aggregator service on the aggregator host must know the URL of the endpoint host in order to query it for faults that have been received. As deploying the Data Hub in front of PA TFS requires changing the public hostname of the PA TFS endpoint to instead point to the Data Hub, this URL held by the aggregator must be updated to use the internal hostname.
To change the URL the aggregator service uses to connect to the endpoint host, on the aggregator host:
[PA TFS application folder]\Service\PreEmptive.Analytics.Aggregator.exe.config
file.
C:\Program Files (x86)\PreEmptive Solutions\PreEmptive Analytics for TFS
.C:\Program Files (x86)\PreEmptive Solutions\PreEmptive Analytics for TFS CE
.<system.serviceModel>
section, under <client>
, locate the <endpoint>
element.address
attribute to use the internal hostname (PATFS_INTERNAL
in the example), keeping the rest of the URL the same.
localhost
.Deploying the Data Hub in front of PA TFS will require adding an additional binding (port association) to one of the IIS Web Sites:
8005
) bound, so that the Data Hub can dispatch to PA TFS without using the primary port (8000
),
as this port will be configured to redirect back to the Data Hub.8000
).To add a binding to a Web Site:
inetmgr.exe
).https
from the Type drop-down. Otherwise, choose http
.If the Data Hub is on a different host than the PA TFS endpoint, the Data Hub Web Site (PreEmptive Analytics Data Hub) must have a rewrite rule to redirect requests from the PA TFS endpoint's path (e.g., /message/endpoint.ashx
)
to the Data Hub endpoint's path (/endpoint
).
To add such a rewrite rule:
inetmgr.exe
).^message/endpoint\.ashx$
in the example).{SERVER_PORT}
.^8000$
in the example)./
(endpoint
in the example).Apply...
from the Actions pane.If the PA TFS endpoint and the Data Hub are located on different hosts, the PA TFS endpoint's public hostname must now redirect to the Data Hub, in order for applications instrumented to the old endpoint to send their messages to the Data Hub.
The process of actually pointing the old hostname to the new hostname varies depending on the way the network is managed. Usually, this involves reconfiguring a Domain Name Server or load balancer.
For example, let's assume we have installed the Data Hub on datahub.example.com
, and our applications are instrumented to send messages to the PA TFS endpoint at analytics.example.com
, and a Domain Name Server set
up as follows:
Hostname | IP | TTL (sec) |
---|---|---|
analytics.example.com
|
0.1.2.3
|
86400
|
datahub.example.com
|
4.5.6.7
|
86400
|
By modifying the analytics.example.com
entry to now point to the Data Hub's IP, 4.5.6.7
, requests made to analytics.example.com
will now be equivalent to those going to datahub.example.com
. However,
not all clients will do so immediately. Some clients may still have the old IP cached, so the changeover won't be complete until the TTL has expired. Thus, the original endpoint (located at 0.1.2.3
) may continue to receive
data directly from instrumented applications for at least one day (86400 seconds) in this scenario.
This section explains how to deploy the Data Hub on a the PA TFS endpoint host, redirect all traffic intended for the PA TFS endpoint to the Data Hub, and finally dispatch messages from the Data Hub to the PA TFS endpoint.
These steps assume the following prior state:
8000
, the default.
http://SHARED_HOST:8000/message/endpoint.ashx
http://SHARED_HOST:8000/analytics/FaultQuery.svc
The final state will be:
80
and the PA TFS endpoint bound to ports 8000
and 8005
, with a rewrite rule redirecting :8000/message/endpoint.ashx
to :80/endpoint
.
http://SHARED_HOST/endpoint
http://SHARED_HOST:8000/message/endpoint.ashx
http://SHARED_HOST:8005/message/endpoint.ashx
http://SHARED_HOST:8000/analytics/FaultQuery.svc
and/or http://SHARED_HOST:8005/analytics/FaultQuery.svc
To deploy the Data Hub in front of PA TFS, on the same host as the PA TFS endpoint:
8005
.
http://localhost:8005/message/endpoint.ashx
.^message/endpoint\.ashx$
.^8000$
.http://localhost/endpoint
.If the Data Hub and PA TFS share a host, the server must have an internal proxy and a rewrite rule to redirect requests from the PA TFS endpoint's port and path (e.g., :8000/message/endpoint.ashx
) to the Data Hub endpoint's
port and path (e.g., :80/endpoint
).
To activate the proxy and add such a rewrite rule:
inetmgr.exe
).^message/endpoint\.ashx$
in the example).{SERVER_PORT}
.^8000$
in the example).http://localhost/endpoint
in the example).Apply...
from the Actions pane.Data Hub User Guide Version 1.3.0. Copyright © 2014 PreEmptive Solutions, LLC