Skip to content
Snippets Groups Projects
Commit 83d0eee6 authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch 'fix/enableDomainRestriction' into 'master'

Enable setting domain restriction from theodolite.yaml

See merge request !62
parents 312c9a86 3122beac
No related branches found
No related tags found
No related merge requests found
...@@ -125,6 +125,8 @@ def benchmark_parser(description): ...@@ -125,6 +125,8 @@ def benchmark_parser(description):
help='[mandatory] List of instances used in benchmarks') help='[mandatory] List of instances used in benchmarks')
parser.add_argument('--domain-restriction', parser.add_argument('--domain-restriction',
action="store_true", action="store_true",
default=os.environ.get(
'DOMAIN_RESTRICTION', 'false').lower() == 'true',
help='To use domain restriction. For details see README') help='To use domain restriction. For details see README')
parser.add_argument('--search-strategy', parser.add_argument('--search-strategy',
metavar='<strategy>', metavar='<strategy>',
......
...@@ -14,22 +14,24 @@ spec: ...@@ -14,22 +14,24 @@ spec:
image: bvonheid/theodolite:latest image: bvonheid/theodolite:latest
# imagePullPolicy: Never # Used to pull "own" local image # imagePullPolicy: Never # Used to pull "own" local image
env: env:
- name: UC - name: UC # mandatory
value: "1" value: "1"
- name: LOADS - name: LOADS # mandatory
value: "13206, 19635" value: "100000, 200000"
- name: INSTANCES - name: INSTANCES # mandatory
value: "1, 2" value: "1, 2, 3"
- name: DURATION # - name: DURATION
value: "3" # value: "5"
- name: PARTITIONS # - name: PARTITIONS
value: "30" # value: "40"
# - name: DOMAIN_RESTRICTION
# value: "True"
# - name: SEARCH_STRATEGY # - name: SEARCH_STRATEGY
# value: "" # value: "linear-search"
# - name: CPU_LIMIT # - name: CPU_LIMIT
# value: "" # value: "1000m"
# - name: MEMORY_LIMIT # - name: MEMORY_LIMIT
# value: "" # value: "4Gi"
- name: PROMETHEUS_BASE_URL - name: PROMETHEUS_BASE_URL
value: "http://prometheus-operated:9090" value: "http://prometheus-operated:9090"
# - name: NAMESPACE # - name: NAMESPACE
...@@ -38,7 +40,7 @@ spec: ...@@ -38,7 +40,7 @@ spec:
# value: "COMMIT_INTERVAL_MS=100, NUM_STREAM_THREADS=1" # value: "COMMIT_INTERVAL_MS=100, NUM_STREAM_THREADS=1"
- name: RESULT_PATH - name: RESULT_PATH
value: "results" value: "results"
- name: PYTHONUNBUFFERED - name: PYTHONUNBUFFERED # Enable logs in Kubernetes
value: "1" value: "1"
volumeMounts: volumeMounts:
- mountPath: "/app/results" - mountPath: "/app/results"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment