Skip to content
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

Backport PR #2397 to release/v1.7 for Update license headers / Format codes #2400

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
61 changes: 61 additions & 0 deletions example/helm/benchmark/job-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]>
#
# 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.
#
apiVersion: vald.vdaas.org/v1
kind: ValdBenchmarkJob
metadata:
name: sample-job
spec:
# @schema {"name": "dataset", "type": "object"}
# dataset -- dataset information
dataset:
# @schema {"name": "dataset.name", "type": "string" }
# dataset.name -- the name of dataset
name: "fashion-mnist"
# @schema {"name": "dataset.indexes", "type": "integer"}
# dataset.indexes -- the amount of indexes
indexes: 60000
# @schema {"name": "dataset.group", "type": "string"}
# dataset.group -- the hdf5 group name of dataset
group: "train"
# @schema {"name": "dataset.range", "type": "object"}
# dataset.range -- the data range of indexes
range:
# @schema {"name": "dataset.range.start", "type": "integer"}
# dataset.range.start -- start index number
start: 1
# @schema {"name": "dataset.range.end", "type": "integer"}
# dataset.range.end -- end index number
end: 60000
url: "http://ann-benchmarks.com/fashion-mnist-784-euclidean.hdf5"
job_type: "upsert"
repetition: 1
replica: 1
rules: []
client_config:
health_check_duration: "10s"
rps: 2000
insert_config:
skip_strict_exist_check: false
upsert_config:
skip_strict_exist_check: false
target:
host: "vald-lb-gateway.default.svc.cluster.local"
port: 8081
global_config:
version: v0.0.1
time_zone: JST
logging:
level: debug
198 changes: 198 additions & 0 deletions example/helm/benchmark/scenario-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
#
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]>
#
# 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.
#
apiVersion: vald.vdaas.org/v1
kind: ValdBenchmarkScenario
metadata:
name: insert-search
spec:
# @schema {"name": "dataset", "type": "object"}
# dataset -- dataset information
dataset:
# @schema {"name": "dataset.name", "type": "string" }
# dataset.name -- the name of dataset
name: "fashion-mnist"
# @schema {"name": "dataset.indexes", "type": "integer"}
# dataset.indexes -- the amount of indexes
indexes: 100000
# @schema {"name": "dataset.group", "type": "string"}
# dataset.group -- the hdf5 group name of dataset
group: "train"
# @schema {"name": "dataset.range", "type": "object"}
# dataset.range -- the data range of indexes
range:
# @schema {"name": "dataset.range.start", "type": "integer"}
# dataset.range.start -- start index number
start: 1
# @schema {"name": "dataset.range.end", "type": "integer"}
# dataset.range.end -- end index number
end: 100000
# @schema {"name": "jobs", "type": "array", "items": {"type": "object"}}
# jobs -- benchmark jobs
jobs:
- job_type: "insert"
repetition: 1
replica: 1
rules: []
dataset:
name: "fashion-mnist"
indexes: 10000
group: "train"
range:
start: 1
end: 10000
insert_config:
skip_strict_exist_check: true
client_config:
health_check_duration: "10s"
rps: 2000
concurrency_limit: 150
ttl_seconds_after_finished: 100
- job_type: "upsert"
repetition: 1
replica: 1
rules: []
dataset:
name: "fashion-mnist"
indexes: 20000
group: "train"
range:
start: 1
end: 20000
upsert_config:
skip_strict_exist_check: true
client_config:
health_check_duration: "10s"
rps: 2000
concurrency_limit: 150
ttl_seconds_after_finished: 100
- job_type: "search"
repetition: 1
replica: 1
rules: []
search_config:
epsilon: 0.1
radius: -1
num: 10
min_num: 10
timeout: "1m"
enable_linear_search: false
client_config:
health_check_duration: "10s"
rps: 2000
concurrency_limit: 150
ttl_seconds_after_finished: 100
- job_type: "upsert"
repetition: 1
replica: 1
rules: []
dataset:
name: "fashion-mnist"
indexes: 30000
group: "train"
range:
start: 10001
end: 40000
search_config:
epsilon: 0.1
radius: -1
num: 10
min_num: 5
timeout: "1m"
upsert_config:
skip_strict_exist_check: true
client_config:
health_check_duration: "10s"
rps: 2000
concurrency_limit: 150
ttl_seconds_after_finished: 100
- job_type: "search"
repetition: 1
replica: 1
rules: []
dataset:
name: "fashion-mnist"
indexes: 20000
group: "test"
range:
start: 1
end: 20000
search_config:
epsilon: 0.1
radius: -1
num: 10
min_num: 10
timeout: "1m"
enable_linear_search: false
client_config:
health_check_duration: "10s"
rps: 4000
concurrency_limit: 150
ttl_seconds_after_finished: 100
- job_type: "exists"
repetition: 1
replica: 1
rules: []
dataset:
name: "fashion-mnist"
indexes: 20000
group: "train"
range:
start: 1
end: 20000
client_config:
health_check_duration: "10s"
rps: 1000
concurrency_limit: 150
ttl_seconds_after_finished: 100
- job_type: "getobject"
repetition: 1
replica: 1
rules: []
dataset:
name: "fashion-mnist"
indexes: 20000
group: "train"
range:
start: 1
end: 20000
client_config:
health_check_duration: "10s"
rps: 1000
concurrency_limit: 150
ttl_seconds_after_finished: 100
- job_type: "remove"
repetition: 1
replica: 1
rules: []
dataset:
name: "fashion-mnist"
indexes: 40000
group: "train"
range:
start: 1
end: 40000
remove_config:
skip_strict_exist_check: true
client_config:
health_check_duration: "10s"
rps: 1000
concurrency_limit: 150
ttl_seconds_after_finished: 100
# @schema {"name": "target", "type": "array", "items": {"type": "object"}}
# target -- target cluster host&port
target:
host: "vald-lb-gateway.default.svc.cluster.local"
port: 8081
Loading