
Unity Director 14.00 provides user and query routing between multiple Teradata systems. This satisfies two requirements – routing users to a system that has data to satisfy their queries and re-routing users during planned or unplanned system outages. Hence, end users receive the ultimate benefit of continuous, transparent access to data. In addition, Unity Director provides high availability, disaster recovery, and data synchronization for multiple Teradata systems. For more information on Unity Director 14.00 please follow the links provided at the end of this article.
In this article, I will provide details of various routing rules that can be created using Unity Director 14.00. One can choose from various routing rule modes Auto, Preferred and Balanced. I will be explaining how reads and writes can be configured in these modes.
Given below is a short description and detailed video demonstration on each of the routing rules with examples for a Unity Director configuration managing two backend Teradata systems named ASTRO and CHILI.
Create Balanced Routing Rule:
If request is a CREATE statement: The request is submitted only to the designated system for the session. If request is successful, Unity Director's Data Dictionary is updated to reflect the existence of the new object on the system that the request was submitted to. If the request fails with a Resubmit error code then the request is submitted to the next system on the WRITE list that is in a valid state. If the request fails with an Exit error code then the client session is disconnected. The sessions to the Teradata systems are closed once all of the previous pending requests are processed by the system.
Create Balanced using Unity Director's Admin tool
Create Balanced using the Unity Director Portlet
Read Preferred Routing Rule:
If request is a read, it is sent to the system listed first in the list of preferred Teradata systems. The tables in the read request should be in valid state on the Teradata systems. If the preferred Teradata system is unavailable, next system is chosen to satisfy the request provided tables in the read request are in a valid state.
Read Preferred using Unity Director's Admin tool
Read Preferred using the Unity Director Portlet
Read only Routing Rule:
Only read requests are allowed in a session using read only routing rule. Write requests are denied since this is a read only rule. This routing rule can be made a Ready Only with/out preferred option. If preferred option is specified, this routing rule behaves as a Read preferred one. Without a preferred option reads are sent to a system chosen by Unity Director.
Read Only using Unity Director's Admin tool
Read Only using the Unity Director Portlet
Read Auto Write Auto Routing rule:
When a user with this routing rule logs on, all systems are used for both read and write. Sessions are created on all systems. Read requests are automatically routed using the shortest queue algorithm to load balance amongst all systems. Write requests are sent to all systems.
Read Auto Write Auto using Unity Director's Admin tool
Read Auto Write Auto using the Unity Director Portlet
Create Preferred Routing Rule
If request is a CREATE statement: The request is only submitted to the first system on the WRITE list that is in a valid state. If successful the Unity Director's Data Dictionary is updated to reflect the existence of the new object on the system that the request was submitted to. If the request fails with a Resubmit error code then the request is submitted to the next system on the WRITE list that is in a valid state. If the request fails with an Exit error code then the client session is disconnected. The sessions to the Teradata systems are closed once all of the previous pending requests have been processed by the system. You can find detailed example of using this routing rule with MicroStrategy here MicroStrategy reporting using Teradata Unity Director 14.00.
Create Preferred using the Unity Director Portlet
Create Preferred using Unity Director's Admin tool
Additional Resources
- Teradata Unity Director User Guide (.pdf, 2.2MB)
- Teradata Unity Director brochure (.pdf, 707KB)
- MicroStrategy reporting using Teradata Unity Director 14.00
- Teradata Unity Loader brochure (.pdf, 252KB)
- See also the Unity Director 14.00 & Unity Loader 14.00 release announcement.
- For community support, please visit the Ecosystem forum.