createShardSnapshot

abstract suspend fun createShardSnapshot(name: String, shardId: Int, wait: Boolean = true): SnapshotDescription

Create a snapshot of a single shard rather than the whole collection.

val info = qdrant.collectionClusterInfo("docs")
val snap = qdrant.createShardSnapshot("docs", info.localShards.first().shardId)

On a sharded collection a whole-collection snapshot is every shard at once, which on a large collection is the difference between a backup that fits in a window and one that does not. Shard ids come from collectionClusterInfo.

Parameters

wait

if true (the default) return only once the snapshot exists. See createSnapshot.

Throws

if the collection does not exist.

if the shard is not on the node that answered.