Technologies/LangChain/weaviate_batch_durations_ms
LangChainLangChainMetric

weaviate_batch_durations_ms

The number of operations observed for the batch operation duration histogram by `upper_bound` buckets
Dimensions:None

Technical Annotations (32)

Configuration Parameters (6)
ASYNC_INDEXINGrecommended: true
enables background vector indexing to reduce lock contention
timeout.insertrecommended: 120
Insert timeout in seconds for batch operations with WeaviateAsyncClient
timeout.initrecommended: 30
Client initialization timeout in seconds
timeout.queryrecommended: 60
Query operation timeout in seconds
skip_init_checksrecommended: False
Ensures connection validation during client initialization
worker_classrecommended: sync (default) or gthread
Avoid gevent with weaviate-client <4.7.0 due to asyncio/gevent deadlock in batch operations
Error Signatures (5)
AttributeError: 'CollectionAsync' object has no attribute 'batch'exception
'coroutine' object has no attribute 'multi_tenancy_config'exception
coroutine '_ConfigCollectionAsync.get' was never awaitedlog pattern
WORKER TIMEOUTlog pattern
was sent SIGKILL! Perhaps out of memory?log pattern
CLI Commands (1)
gunicorn -k gevent -w 1 -t 90 -b 0.0.0.0:80 --threads 32 --worker-connections 1024 --log-level 'debug' 'server:app'diagnostic
Technical References (20)
inverted indexcomponentvectorizer modulecomponentWeaviateAsyncClientcomponentCollectionAsynccomponentasyncio.gather()componentWeaviateVectorStorecomponentinsert_manycomponent_ConfigCollectionAsync.getcomponentAdditionalConfigcomponentTimeoutcomponentbatchingconcept/v1/batch/objectscomponent/v1/objectscomponentreplicationconceptwrite locksconceptasynciocomponentgeventcomponentbatch.flush()componentcollection.batch.dynamic()componentcollection.data.insert_manycomponent
Related Insights (8)
Batch operation latency degradation indicates indexing problemswarning
Lock contention slows concurrent indexing operationsinfo
Async batch operations fail with AttributeError on CollectionAsyncwarning
LangChain WeaviateVectorStore fails with async client due to unawaited coroutinewarning
Async batch insert requires extended timeout configurationinfo
Document indexing time increases significantly with collection sizewarning
Write operations timeout in replicated clusters while reads remain functionalcritical
Gevent worker causes Weaviate batch import deadlock before client v4.7.0critical