Connection Parameters
Hint
This article is generated by AI translation.
jdbc-milvus supports configuring various parameters in the JDBC URL to control connection behavior, authentication, timeout settings, and more.
JDBC URL Format
jdbc:dbvisitor:milvus://host:port/database?param1=value1¶m2=value2
- Server address format is
host:port. If no port is specified,19530is used as the default port. - In cluster mode, multiple hosts are separated by
;, format:host1:port1[:healthPort1];host2:port2[:healthPort2]. databaseis specified via the URL path, default isdefault.
Authentication Parameters
| Parameter | Description | Default |
|---|---|---|
token | Token authentication; takes priority over user/password when set | None |
user | Username, used with password | None |
password | Password, used with user | None |
Network & Timeout
| Parameter | Description | Default |
|---|---|---|
connectTimeout | Connection timeout (milliseconds) | Driver default |
keepAliveTime | Keep-Alive interval (milliseconds) | Driver default |
keepAliveTimeout | Keep-Alive timeout (milliseconds) | Driver default |
keepAliveWithoutCalls | Whether to keep alive without active calls | false |
idleTimeout | Idle connection timeout (milliseconds) | Driver default |
rpcDeadline | RPC deadline (milliseconds) | Driver default |
Other Parameters
| Parameter | Description | Default |
|---|---|---|
consistencyLevel | Consistency level for queries. Options: Strong, Session, Bounded, Eventually. When set, all queries automatically use this level | None (uses collection default) |
interceptor | Client interceptor. Must implement java.lang.reflect.InvocationHandler | None |
customMilvus | Custom Milvus client. Must implement net.hasor.dbvisitor.adapter.milvus.CustomMilvus | None |