* Sets `"useCodeBlocks": true` * Adds a post-processing script `nodejs/typedoc_post_process.js` that puts the parameter description on the same line as the parameter name, like it is in our Python docs. This makes the text hierarchy clearer in those sections and also makes the sections shorter.
2.0 KiB
@lancedb/lancedb • Docs
@lancedb/lancedb / RetryConfig
Interface: RetryConfig
Retry configuration for the remote HTTP client.
Properties
backoffFactor?
optional backoffFactor: number;
The backoff factor to apply between retries. Default is 0.25. Between each retry
the client will wait for the amount of seconds:
{backoff factor} * (2 ** ({number of previous retries})). So for the default
of 0.25, the first retry will wait 0.25 seconds, the second retry will wait 0.5
seconds, the third retry will wait 1 second, etc.
You can also set this via the environment variable
LANCE_CLIENT_RETRY_BACKOFF_FACTOR.
backoffJitter?
optional backoffJitter: number;
The jitter to apply to the backoff factor, in seconds. Default is 0.25.
A random value between 0 and backoff_jitter will be added to the backoff
factor in seconds. So for the default of 0.25 seconds, between 0 and 250
milliseconds will be added to the sleep between each retry.
You can also set this via the environment variable
LANCE_CLIENT_RETRY_BACKOFF_JITTER.
connectRetries?
optional connectRetries: number;
The maximum number of retries for connection errors. Default is 3. You
can also set this via the environment variable LANCE_CLIENT_CONNECT_RETRIES.
readRetries?
optional readRetries: number;
The maximum number of retries for read errors. Default is 3. You can also
set this via the environment variable LANCE_CLIENT_READ_RETRIES.
retries?
optional retries: number;
The maximum number of retries for a request. Default is 3. You can also
set this via the environment variable LANCE_CLIENT_MAX_RETRIES.
statuses?
optional statuses: number[];
The HTTP status codes for which to retry the request. Default is [429, 500, 502, 503].
You can also set this via the environment variable
LANCE_CLIENT_RETRY_STATUSES. Use a comma-separated list of integers.