https://slingdata.io logo
About Transparent Application Failover
# sling-help
d
Oracle TAF support in TNS Entry I noticed that a (relatively) recent sling update has changed the way Oracle loads are handled and potentially fixed a performance bottleneck that was really limiting my implementation. Between my last attempt and now, one of my source systems has enforced [TAF](https://docs.oracle.com/en/database/oracle/oracle-database/26/netag/transparent-application-failover.html) which results in tns entry looking kind of like:
(DESCRIPTION=(FAILOVER=ON)(CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)(ADDRESS_LIST=(LOAD_BALANCE=OFF)(ADDRESS=(PROTOCOL=TCP)(HOST=my_host)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=my_fallback_host)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=my_sn)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
Does anybody know if this failover will be respected? Must admit my transport layer expertise doesn't run very deep...
f
hey @daniel_859158 , Sling uses the pure-Go go-ora driver, not the Oracle client libraries, so real TAF (
FAILOVER_MODE
, query replay) is ignored. Connect-time failover works: go-ora tries each ADDRESS in order, so if my_host is down when sling connects, it uses
my_fallback_host
. If the host fails during a run, that stream fails, and the next run connects to the fallback. `CONNECT_TIMEOUT`/`TRANSPORT_CONNECT_TIMEOUT` are not applied, so a host that is silently down can delay the switch by a minute or two.
d
That's perfectly fine for my use-case - thanks as always