Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions api/v1/qdrantcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,18 @@ type StorageConfig struct {
MaxCollections *uint `json:"maxCollections,omitempty"`
}

// IOUringMode specifies the async I/O mode, supported from Qdrant v1.19.0.
// +kubebuilder:validation:Enum=auto;disabled
type IOUringMode string

//goland:noinspection GoUnusedConst
const (
// IOUringAuto uses io_uring for every structure in the cold memory tier.
IOUringAuto IOUringMode = "auto"
// IOUringDisabled turns io_uring off entirely.
IOUringDisabled IOUringMode = "disabled"
)

type StoragePerformanceConfig struct {
// OptimizerCPUBudget defines the number of CPU allocation.
// If 0 - auto selection, keep 1 or more CPUs unallocated depending on CPU size
Expand All @@ -583,6 +595,10 @@ type StoragePerformanceConfig struct {
// AsyncScorer enables io_uring when rescoring
// +optional
AsyncScorer *bool `json:"async_scorer,omitempty"`
// IOUring selects the async I/O mode, supported from Qdrant v1.19.0.
// When set it overrides AsyncScorer.
// +optional
IOUring *IOUringMode `json:"io_uring,omitempty"`
}

func (c *QdrantConfiguration) GetService() *QdrantConfigurationService {
Expand Down
5 changes: 5 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@ spec:
async_scorer:
description: AsyncScorer enables io_uring when rescoring
type: boolean
io_uring:
description: |-
IOUring selects the async I/O mode, supported from Qdrant v1.19.0.
When set it overrides AsyncScorer.
enum:
- auto
- disabled
type: string
optimizer_cpu_budget:
description: |-
OptimizerCPUBudget defines the number of CPU allocation.
Expand Down
8 changes: 8 additions & 0 deletions crds/qdrant.io_qdrantclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ spec:
async_scorer:
description: AsyncScorer enables io_uring when rescoring
type: boolean
io_uring:
description: |-
IOUring selects the async I/O mode, supported from Qdrant v1.19.0.
When set it overrides AsyncScorer.
Comment thread
sonasingh46 marked this conversation as resolved.
Resolved
enum:
- auto
- disabled
type: string
optimizer_cpu_budget:
description: |-
OptimizerCPUBudget defines the number of CPU allocation.
Expand Down
19 changes: 19 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,24 @@ _Appears in:_
| `object` _[HelmRepository](#helmrepository)_ | Object specifies the helm repository object | | EmbeddedResource: \{\} <br /> |


#### IOUringMode

_Underlying type:_ _string_

IOUringMode specifies the async I/O mode, supported from Qdrant v1.19.0.

_Validation:_
- Enum: [auto disabled]

_Appears in:_
- [StoragePerformanceConfig](#storageperformanceconfig)

| Field | Description |
| --- | --- |
| `auto` | IOUringAuto uses io_uring for every structure in the cold memory tier.<br /> |
| `disabled` | IOUringDisabled turns io_uring off entirely.<br /> |


#### InferenceConfig


Expand Down Expand Up @@ -1802,6 +1820,7 @@ _Appears in:_
| --- | --- | --- | --- |
| `optimizer_cpu_budget` _integer_ | OptimizerCPUBudget defines the number of CPU allocation.<br />If 0 - auto selection, keep 1 or more CPUs unallocated depending on CPU size<br />If negative - subtract this number of CPUs from the available CPUs.<br />If positive - use this exact number of CPUs. | | Optional: \{\} <br /> |
| `async_scorer` _boolean_ | AsyncScorer enables io_uring when rescoring | | Optional: \{\} <br /> |
| `io_uring` _[IOUringMode](#iouringmode)_ | IOUring selects the async I/O mode, supported from Qdrant v1.19.0.<br />When set it overrides AsyncScorer. | | Enum: [auto disabled] <br />Optional: \{\} <br /> |


#### TemplateMetadata
Expand Down
Loading