-
Notifications
You must be signed in to change notification settings - Fork 95
Implement Rust QBG Agent #3459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Implement Rust QBG Agent #3459
Changes from all commits
504ec1b
c8a04c6
681aac7
2c16bcc
53a1f76
fce6dca
c1109b7
c6b8f68
321ea6f
8401747
d3aab56
f3302f1
63afc9d
018e171
8bb36ed
15c8871
e3bb220
0599048
635b91d
e52ffae
d4e8a72
03514ed
8e492ab
618282c
f2672f4
0c6b30f
7594a39
f977e00
17d08e8
be0c827
34bfb51
9b51917
df75de0
48176b9
c2904ee
6c854c7
e144728
9246805
3dcd5ec
444aafa
cf97763
6ce519d
3c0c7d6
f81e5aa
a8e930c
553d7de
e9a1020
0348eaf
66e0875
16cd123
0fe4604
15cb3b4
372df6e
8ba441c
987ffdd
32ec80a
02580e7
6508d5c
0f5a325
9995fc2
203e92d
9f95124
8a961a3
b002665
33d2fab
9a285a2
7606e44
6eb553b
53b86ba
8368731
bd82c26
2eb57a8
e1a339c
490a962
e2d0dc3
7531180
a576d05
49e0840
7749b72
e4b0454
d800477
f6f14eb
597765a
fc19c98
1a3b636
517b1de
bb91b71
efd1902
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,3 +81,7 @@ enabled = true | |
| [[analyzers]] | ||
| name = "test-coverage" | ||
| enabled = false | ||
|
|
||
| [[analyzers]] | ||
| name = "rust" | ||
| enabled = true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,7 @@ | |
| .github/helm/values/values-mirror-01.yaml | ||
| .github/helm/values/values-mirror-02.yaml | ||
| .github/helm/values/values-profile.yaml | ||
| .github/helm/values/values-qbg.yaml | ||
| .github/helm/values/values-readreplica.yaml | ||
| .github/issue_label_bot.yaml | ||
| .github/kubelinter.yaml | ||
|
|
@@ -431,6 +432,7 @@ charts/vald/templates/agent/networkpolicy.yaml | |
| charts/vald/templates/agent/ngt/configmap.yaml | ||
| charts/vald/templates/agent/pdb.yaml | ||
| charts/vald/templates/agent/priorityclass.yaml | ||
| charts/vald/templates/agent/qbg/configmap.yaml | ||
| charts/vald/templates/agent/serviceaccount.yaml | ||
| charts/vald/templates/agent/sidecar/configmap.yaml | ||
| charts/vald/templates/agent/sidecar/svc.yaml | ||
|
|
@@ -2275,24 +2277,40 @@ renovate.json | |
| rust/Cargo.lock | ||
| rust/Cargo.toml | ||
| rust/bin/agent/Cargo.toml | ||
| rust/bin/agent/build.rs | ||
| rust/bin/agent/src/config.rs | ||
| rust/bin/agent/src/handler.rs | ||
| rust/bin/agent/src/handler/common.rs | ||
| rust/bin/agent/src/handler/flush.rs | ||
| rust/bin/agent/src/handler/health.rs | ||
| rust/bin/agent/src/handler/index.rs | ||
| rust/bin/agent/src/handler/insert.rs | ||
| rust/bin/agent/src/handler/object.rs | ||
| rust/bin/agent/src/handler/remove.rs | ||
| rust/bin/agent/src/handler/search.rs | ||
| rust/bin/agent/src/handler/update.rs | ||
| rust/bin/agent/src/handler/upsert.rs | ||
| rust/bin/agent/src/lib.rs | ||
| rust/bin/agent/src/main.rs | ||
| rust/bin/agent/src/metrics.rs | ||
| rust/bin/agent/src/middleware.rs | ||
| rust/bin/agent/src/service.rs | ||
| rust/bin/agent/src/service/daemon.rs | ||
| rust/bin/agent/src/service/k8s.rs | ||
| rust/bin/agent/src/service/memstore.rs | ||
| rust/bin/agent/src/service/metadata.rs | ||
| rust/bin/agent/src/service/persistence.rs | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [file name cspell] reported by reviewdog 🐶 |
||
| rust/bin/agent/src/service/qbg.rs | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [file name cspell] reported by reviewdog 🐶 |
||
| rust/bin/agent/src/version.rs | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [file name cspell] reported by reviewdog 🐶 |
||
| rust/bin/agent/tests/integration_test.rs | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [file name cspell] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [file name cspell] reported by reviewdog 🐶 |
||
| rust/bin/meta/Cargo.toml | ||
| rust/bin/meta/src/config.rs | ||
| rust/bin/meta/src/handler.rs | ||
| rust/bin/meta/src/handler/meta.rs | ||
| rust/bin/meta/src/main.rs | ||
| rust/bin/meta/src/test_client.rs | ||
| rust/libs/algorithm/Cargo.toml | ||
| rust/libs/algorithm/src/error.rs | ||
| rust/libs/algorithm/src/lib.rs | ||
| rust/libs/algorithms/faiss/Cargo.toml | ||
| rust/libs/algorithms/faiss/src/lib.rs | ||
|
|
@@ -2317,51 +2335,30 @@ rust/libs/kvs/src/map/types.rs | |
| rust/libs/kvs/src/map/unidirectional_map.rs | ||
| rust/libs/observability/Cargo.toml | ||
| rust/libs/observability/src/config.rs | ||
| rust/libs/observability/src/error.rs | ||
| rust/libs/observability/src/lib.rs | ||
| rust/libs/observability/src/macros.rs | ||
| rust/libs/observability/src/observability.rs | ||
| rust/libs/observability/src/tracing.rs | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [file name cspell] reported by reviewdog 🐶 |
||
| rust/libs/proto/Cargo.toml | ||
| rust/libs/proto/build.rs | ||
| rust/libs/proto/src/core/mod.rs | ||
| rust/libs/proto/src/core/v1/core.v1.tonic.rs | ||
| rust/libs/proto/src/core/v1/mod.rs | ||
| rust/libs/proto/src/discoverer/mod.rs | ||
| rust/libs/proto/src/discoverer/v1/discoverer.v1.tonic.rs | ||
| rust/libs/proto/src/discoverer/v1/mod.rs | ||
| rust/libs/proto/src/filter/egress/mod.rs | ||
| rust/libs/proto/src/filter/egress/v1/filter.egress.v1.tonic.rs | ||
| rust/libs/proto/src/filter/egress/v1/mod.rs | ||
| rust/libs/proto/src/filter/ingress/mod.rs | ||
| rust/libs/proto/src/filter/ingress/v1/filter.ingress.v1.tonic.rs | ||
| rust/libs/proto/src/filter/ingress/v1/mod.rs | ||
| rust/libs/proto/src/filter/mod.rs | ||
| rust/libs/proto/src/google/mod.rs | ||
| rust/libs/proto/src/google/rpc/mod.rs | ||
| rust/libs/proto/src/google/rpc/status.rs | ||
| rust/libs/proto/src/lib.rs | ||
| rust/libs/proto/src/meta/mod.rs | ||
| rust/libs/proto/src/meta/v1/meta.v1.tonic.rs | ||
| rust/libs/proto/src/meta/v1/mod.rs | ||
| rust/libs/proto/src/mirror/mod.rs | ||
| rust/libs/proto/src/mirror/v1/mirror.v1.tonic.rs | ||
| rust/libs/proto/src/mirror/v1/mod.rs | ||
| rust/libs/proto/src/payload/mod.rs | ||
| rust/libs/proto/src/payload/v1/mod.rs | ||
| rust/libs/proto/src/payload/v1/payload.v1.rs | ||
| rust/libs/proto/src/payload/v1/payload.v1.serde.rs | ||
| rust/libs/proto/src/rpc/mod.rs | ||
| rust/libs/proto/src/rpc/v1/mod.rs | ||
| rust/libs/proto/src/rpc/v1/rpc.v1.rs | ||
| rust/libs/proto/src/rpc/v1/rpc.v1.serde.rs | ||
| rust/libs/proto/src/rpc/v1/rpc.v1.tonic.rs | ||
| rust/libs/proto/src/sidecar/mod.rs | ||
| rust/libs/proto/src/sidecar/v1/mod.rs | ||
| rust/libs/proto/src/sidecar/v1/sidecar.v1.tonic.rs | ||
| rust/libs/proto/src/tikv/tikv.rs | ||
| rust/libs/proto/src/tikv/tikv.serde.rs | ||
| rust/libs/proto/src/tikv/tikv.tonic.rs | ||
| rust/libs/proto/src/vald/mod.rs | ||
| rust/libs/proto/src/vald/v1/mod.rs | ||
| rust/libs/proto/src/vald/v1/vald.v1.tonic.rs | ||
| rust/libs/proto/wkt.proto | ||
| rust/libs/vqueue/Cargo.toml | ||
|
|
@@ -2400,6 +2397,7 @@ tests/v2/e2e/assets/readreplica.yaml | |
| tests/v2/e2e/assets/rollout.yaml | ||
| tests/v2/e2e/assets/stream_crud.yaml | ||
| tests/v2/e2e/assets/unary_crud.yaml | ||
| tests/v2/e2e/assets/unary_crud_qbg.yaml | ||
| tests/v2/e2e/config/config.go | ||
| tests/v2/e2e/config/enums.go | ||
| tests/v2/e2e/crud/agent_test.go | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| # | ||
| # Copyright (C) 2019-2026 vdaas.org vald team <vald@vdaas.org> | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # You may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| defaults: | ||
| logging: | ||
| level: debug | ||
| networkPolicy: | ||
| enabled: true | ||
| gateway: | ||
| lb: | ||
| enabled: true | ||
| minReplicas: 1 | ||
| hpa: | ||
| enabled: false | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 50Mi | ||
|
kmrmt marked this conversation as resolved.
|
||
| gateway_config: | ||
| index_replica: 3 | ||
| agent: | ||
| algorithm: qbg | ||
| minReplicas: 3 | ||
| maxReplicas: 10 | ||
| podManagementPolicy: Parallel | ||
| hpa: | ||
| enabled: false | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 50Mi | ||
|
kmrmt marked this conversation as resolved.
|
||
| image: | ||
| repository: vdaas/vald-agent | ||
| qbg: | ||
| dimension: 784 | ||
| index_path: "/var/lib/vald/index" | ||
| auto_index_check_duration: "30s" | ||
| auto_save_index_duration: "35m" | ||
| auto_index_duration_limit: "24h" | ||
| auto_index_length: 100 | ||
| initial_delay_max_duration: "3m" | ||
| bulk_insert_chunk_size: 10 | ||
| data_type: "float" | ||
| internal_data_type: "float" | ||
| distance_type: "l2" | ||
| enable_in_memory_mode: false | ||
| discoverer: | ||
| minReplicas: 1 | ||
| hpa: | ||
| enabled: false | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 50Mi | ||
|
kmrmt marked this conversation as resolved.
|
||
| manager: | ||
| index: | ||
| replicas: 1 | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 30Mi | ||
|
kmrmt marked this conversation as resolved.
|
||
| indexer: | ||
| auto_index_duration_limit: 2m | ||
| auto_index_check_duration: 30s | ||
| auto_index_length: 1000 | ||
| corrector: | ||
| enabled: false | ||
| suspend: true | ||
| schedule: "1 2 3 4 5" | ||
Uh oh!
There was an error while loading. Please reload this page.