Configuring TCP Keepalives
By default, the Simba Amazon Redshift ODBC Connector is configured to use TCP keepalives to prevent connections from timing out. Settings such as how frequently the connector sends TCP keepalive packets are based on the operating system defaults. You can configure the TCP keepalive settings or disable the feature by modifying the appropriate values in the Windows Registry.
Important:
Editing the Windows Registry incorrectly can potentially cause serious, system-wide problems that may require re-installing Windows to correct.
To configure TCP keepalives:
- On the Start screen, type regedit, and then click the regedit search result.
- Select the appropriate registry key for the bitness of your connector:
- If you are using the 32-bit connector on a 64-bit machine, then select the following registry key, where [YourDSN] is the DSN for which you want to configure keepalives:
- Otherwise, select the following registry key, where [YourDSN] is the DSN for which you want to configure keepalives:
- To specify the interval of inactivity before the connector sends a TCP keepalive packet, configure the KeepAliveIdle value by doing the following:
- If the KeepAliveIdle value does not already exist, create it. Select Edit > New > String Value, type KeepAliveIdle as the name of the value, and then press Enter.
- Select the KeepAliveIdle value, and then Select Edit > Modify.
- In the Edit String dialog box, in the Value Data field, type the number of seconds of inactivity before the connector sends a TCP keepalive packet.
- Click OK.
- To specify the number of TCP keepalive packets that can be lost before the connection is considered broken, configure the KeepAliveCount value. To do this, follow the procedure above, but type KeepAliveCount for the value name, and in the Value Data field, type the number of keepalive packets that can be lost.
- To specify the interval of time between each retransmission of a keepalive packet, configure the KeepAliveInterval value. To do this, follow the procedure above, but type KeepAliveInterval for the value name, and in the Value Data field, type the number of seconds to wait between each retransmission.
- Close the Registry Editor.
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\[YourDSN]
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\[YourDSN]
Note:
To use the system default, in the Value Data field, type 0.
Note:
To use the system default, in the Value Data field, type 0.
Note:
To use the system default, in the Value Data field, type 0.
To disable TCP keepalives:
- On the Start screen, type regedit, and then click the regedit search result.
- Select the appropriate registry key for the bitness of your connector:
- If you are using the 32-bit connector on a 64-bit machine, then select the following registry key, where
[YourDSN]
is the DSN for which you want to configure keepalives: - Otherwise, select the following registry key, where
[YourDSN]
is the DSN for which you want to configure keepalives: - If the KeepAlive value does not already exist, create it. Select Edit > New > String Value, then type KeepAlive as the name of the value, and then press Enter.
- Select the KeepAlive value, and then click Edit > Modify.
- In the Edit String dialog box, in the Value Data field, type 0.
- Click OK.
- Close the Registry Editor.
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\[YourDSN]
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\[YourDSN]
Note:
To enable TCP keepalives after disabling them, set KeepAlive
to 1
.