- Teradata Database downtime is required because scaling in reconfigures the database and migrates the premium storage. Schedule a time that minimally impacts users.
- Increase the Azure service limits.
Use this procedure to scale in a system after deployment.
-
Provide service principal details and enter responses to the prompts.
See Azure Documentation Center for how to create the service principal.
-
Run tdc-feature-init without arguments.
# tdc-feature-init
- Enter the client ID of your service principal.
- Enter the secret key of your service principal.
- Enter the tenant of your service principal.
- Enter your Azure subscription ID.
-
Run tdc-feature-init without arguments.
-
[First time you scale in] Check if your system can be scaled in:
# tdc-fold -d
-
Stop the database.
# tpareset –x –y stop for scaling in
-
Verify the database is in a DOWN/HARDSTOP state.
# pdestate -a
PDE state: DOWN/HARDSTOP Putting the database in this state may take several minutes. -
Enter one of the following commands to start the scale in process:
After entering one of the following commands, you can check log files to determine how long the process will take to finish.
The output displays how the configuration changes after scaling in the system, as shown in the following example:Command Description # tdc-fold 2x Removes half of the current node count. For example, if the current system has 8 nodes, the scaled in system will have 4 nodes.
# tdc-fold 4x Removes a quarter of the current node count. For example, if the current system has 8 nodes, the scaled in system will have 2 nodes.
Current system will be folded by [2x]: =========================================================================== Nodes: Node Count: 4 => 2 --------------------------------------------------------------------------- CPU(Core)/Mem(GB): CPUs/Node: 16 == 16 CPUs Total: 64 => 32 Mem/Node: 65 == 65 Mem Total: 260 => 130 --------------------------------------------------------------------------- AMPs/PEs: AMPs/Node: 10 => 20 AMPs Total: 40 == 40 PEs/Node: 2 == 2 PEs Total: 8 => 4 =========================================================================== Continue? [yes/no] yes
- Enter yes. When the process completes, the new configuration appears under Current Configuration.
-
[Optional] Check the status of the database.
# pdestate –a
- [Optional] Check the logs for troubleshooting.