[
https://issues.apache.org/jira/browse/CALCITE-5581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706333#comment-17706333
]
Vaibhav Joshi commented on CALCITE-5581:
----------------------------------------
Thanks [~stoty]
Based on your inputs I am planning to add following connection properties.
*HTTP_CONNECTION_TIMEOUT* - Timeout in milliseconds. Default will be 3 minutes
( retained from the old implementation). Also this will be generic property,
which can be set irrespective of LB configs.
*LB_FAILOVER_RETRIES* - Number of retries we need to do during failover. We
will have a retry logic to try different URLs when some connection attempt is
failed. By default we will do 3 retries. This Config will be applicable only
when USE_CLIENT_SIDE_LB is true.
Please let me know if this looks okay.
> Implement Basic client side load balancing in Avatica Driver
> ------------------------------------------------------------
>
> Key: CALCITE-5581
> URL: https://issues.apache.org/jira/browse/CALCITE-5581
> Project: Calcite
> Issue Type: New Feature
> Components: avatica
> Affects Versions: 1.33.0
> Reporter: Vaibhav Joshi
> Assignee: Vaibhav Joshi
> Priority: Major
> Labels: pull-request-available
> Attachments: Avatica Basic client side load balancing.docx
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Implement mechanism to support Client side load balancing by configuring
> connection properties for load balancing
> {code:java}
> jdbc:phoenix:thin:
> url=https://<host>:<port>;
> serialization=PROTOBUF;
> authentication=BASIC;
> avatica_user=<userName>;
> avatica_password=<userPw>
> useClientSideLB: [true/false]
> lbStrategy: [RandomDistribution/Sequential/RoundRobin]
> lbURLs: <comma separated URls e.g. URL1, URL2,URL3,...URLn> {code}
> Client should connect to any of the URLs specified in lbURLs ( depending on
> LB strategy selected). Please refer to [^Avatica Basic client side load
> balancing.docx]for more details
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)