Skip to content

Commit 8641760

Browse files
committed
Merge branch 'develop_930' of github.com:ModelEngine-Group/data-platform into develop_930
2 parents 7fc05a3 + 157e653 commit 8641760

File tree

5 files changed

+72
-4
lines changed

5 files changed

+72
-4
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ frontend-docker-uninstall:
9393
runtime-helm-install:
9494
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
9595
helm repo update
96-
helm install kuberay-operator kuberay/kuberay-operator --version 1.4.0
97-
helm install raycluster deployment/helm/ray/ray-cluster/
96+
helm upgrade kuberay-operator kuberay/kuberay-operator --version 1.4.0 --install
97+
helm upgrade raycluster deployment/helm/ray/ray-cluster/ --install
98+
kubectl apply -f deployment/helm/ray/service.yaml
9899

99100
.PHONY: unstructured-k8s-install
100101
unstructured-k8s-install:

backend/services/main-application/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,18 @@
139139

140140
<build>
141141
<plugins>
142+
<plugin>
143+
<groupId>org.apache.maven.plugins</groupId>
144+
<artifactId>maven-compiler-plugin</artifactId>
145+
<configuration>
146+
<source>${maven.compiler.source}</source>
147+
<target>${maven.compiler.target}</target>
148+
<compilerArgs>
149+
<arg>-parameters</arg>
150+
</compilerArgs>
151+
</configuration>
152+
</plugin>
153+
142154
<plugin>
143155
<groupId>org.springframework.boot</groupId>
144156
<artifactId>spring-boot-maven-plugin</artifactId>

deployment/helm/ray/ray-cluster/values.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,22 @@ head:
106106
hostPath:
107107
path: /opt/data-platform/data/log
108108
type: DirectoryOrCreate
109+
- name: dataset-volume
110+
hostPath:
111+
path: /opt/data-platform/data/dataset
112+
type: DirectoryOrCreate
113+
- name: flow-volume
114+
hostPath:
115+
path: /opt/data-platform/data/flow
116+
type: DirectoryOrCreate
109117
volumeMounts:
110118
- mountPath: /tmp/ray
111119
name: log-volume
112120
subPath: ray
121+
- mountPath: /dataset
122+
name: dataset-volume
123+
- mountPath: /flow
124+
name: flow-volume
113125
# sidecarContainers specifies additional containers to attach to the Ray pod.
114126
# Follows standard K8s container spec.
115127
sidecarContainers:
@@ -127,6 +139,10 @@ head:
127139
volumeMounts:
128140
- mountPath: /var/log/data-platform
129141
name: log-volume
142+
- mountPath: /dataset
143+
name: dataset-volume
144+
- mountPath: /flow
145+
name: flow-volume
130146
# See docs/guidance/pod-command.md for more details about how to specify
131147
# container command for head Pod.
132148
command: []
@@ -210,10 +226,22 @@ worker:
210226
hostPath:
211227
path: /opt/data-platform/data/log
212228
type: DirectoryOrCreate
229+
- name: dataset-volume
230+
hostPath:
231+
path: /opt/data-platform/data/dataset
232+
type: DirectoryOrCreate
233+
- name: flow-volume
234+
hostPath:
235+
path: /opt/data-platform/data/flow
236+
type: DirectoryOrCreate
213237
volumeMounts:
214238
- mountPath: /tmp/ray
215239
name: log-volume
216240
subPath: ray
241+
- mountPath: /dataset
242+
name: dataset-volume
243+
- mountPath: /flow
244+
name: flow-volume
217245
# sidecarContainers specifies additional containers to attach to the Ray pod.
218246
# Follows standard K8s container spec.
219247
sidecarContainers: []
@@ -291,10 +319,22 @@ additionalWorkerGroups:
291319
hostPath:
292320
path: /opt/data-platform/data/log
293321
type: DirectoryOrCreate
322+
- name: dataset-volume
323+
hostPath:
324+
path: /opt/data-platform/data/dataset
325+
type: DirectoryOrCreate
326+
- name: flow-volume
327+
hostPath:
328+
path: /opt/data-platform/data/flow
329+
type: DirectoryOrCreate
294330
volumeMounts:
295331
- mountPath: /tmp/ray
296332
name: log-volume
297333
subPath: ray
334+
- mountPath: /dataset
335+
name: dataset-volume
336+
- mountPath: /flow
337+
name: flow-volume
298338
sidecarContainers: []
299339
# See docs/guidance/pod-command.md for more details about how to specify
300340
# container command for worker Pod.

deployment/helm/ray/service.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: runtime
5+
labels:
6+
ray.io/node-type: head
7+
spec:
8+
type: ClusterIP
9+
ports:
10+
- port: 8081
11+
targetPort: 8081
12+
protocol: TCP
13+
selector:
14+
ray.io/node-type: head
15+

runtime/python-executor/data_platform/operator_runtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def query_task_info(request: QueryTaskRequest):
7171

7272
@app.post("/api/task/{task_id}/submit")
7373
async def submit_task(task_id):
74-
config_path = f"/opt/runtime/flow/{task_id}/process.yaml"
74+
config_path = f"/flow/{task_id}/process.yaml"
7575
logger.info("Start submitting job...")
7676

7777
dataset_path = get_from_cfg(task_id, "dataset_path")
@@ -122,7 +122,7 @@ def check_valid_path(file_path):
122122

123123

124124
def get_from_cfg(task_id, key):
125-
config_path = f"/opt/runtime/flow/{task_id}/process.yaml"
125+
config_path = f"/flow/{task_id}/process.yaml"
126126
if not check_valid_path(config_path):
127127
logger.error(f"config_path is not existed! please check this path.")
128128
raise APIException(ErrorCode.FILE_NOT_FOUND_ERROR)

0 commit comments

Comments
 (0)