-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmlsysops-test-app-description.yaml
More file actions
89 lines (89 loc) · 2.79 KB
/
mlsysops-test-app-description.yaml
File metadata and controls
89 lines (89 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
MLSysOpsApp:
name: test-application
cluster_placement:
cluster_id:
- mls01
components:
- metadata:
name: server-app
uid: server-app-v1
node_placement:
<<<<<<<< HEAD:northbound-api/mlsysops-test-app-description.yaml
node: mls04
restart_policy: on_failure
========
node: mls01
restart_policy: OnFailure
>>>>>>>> e3625f0 (feat: Fix various errors with CLI, agents and NB API):mlsysops-cli/mlsysops-test-app-description.yaml
containers:
- image: harbor.nbfc.io/mlsysops/test-app:latest
image_pull_policy: IfNotPresent
command: ["python", "TcpServer.py"]
env:
- name: OTEL_RESOURCE_ATTRIBUTES
value: "service.name=server-app, service.version=0.0.0"
- name: OTEL_SERVICE_NAME
value: "server-app"
- name: NODE_IP
value_from:
field_ref:
field_path: status.hostIP
- name: TELEMETRY_ENDPOINT
value: "$(NODE_IP):43170"
- name: TCP_SERVER_IP
value: "0.0.0.0"
ports:
- container_port: 10000
protocol: TCP
qos_metrics:
- application_metric_id: test_received_success_counter_total
target: 20
relation: lower_or_equal
- metadata:
name: client-app
uid: client-app-v1
restart_policy: OnFailure
containers:
- image: harbor.nbfc.io/mlsysops/test-app:latest
image_pull_policy: IfNotPresent
command: ["python", "TcpClient.py"]
env:
- name: OTEL_RESOURCE_ATTRIBUTES
value: "service.name=client-app, service.version=0.0.0"
- name: OTEL_SERVICE_NAME
value: "client-app"
- name: NODE_IP
value_from:
field_ref:
field_path: status.hostIP
- name: TELEMETRY_ENDPOINT
value: "$(NODE_IP):43170"
- name: TCP_SERVER_IP
value: "server-app"
ports:
- container_port: 10000
protocol: TCP
qos_metrics:
- application_metric_id: metric-2
target: 30
relation: equal
component_interactions:
- component_name1: client-app
type: egress
component_name2: server-app
permitted_actions:
- component_relocation
- traffic_redirection
- change_container_image
- change_container_runtime_class
- change_container_cpu_set
- change_container_resource_requirements
- acceleration
global_satisfaction:
threshold: 0.7
relation: greater_than
achievement_weights:
- metric_id: test_received_success_counter
weight: 0.5
- metric_id: test_sent_success_counter
weight: 0.5