Skip to content

Commit

Permalink
make GIE run on helm
Browse files Browse the repository at this point in the history
Signed-off-by: Lei Wang <[email protected]>
  • Loading branch information
doudoubobo committed Jun 13, 2024
1 parent 60759a7 commit 244f500
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion charts/gart/templates/gie_frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ spec:
make run &&
sleep infinity
ports:
- containerPort: {{ .Values.gie_frontend.gremlinPort }}
- name: gremlin
containerPort: {{ .Values.gie_frontend.gremlinPort }}
envFrom:
- configMapRef:
name: {{ include "gart.configmapName" . }}
Expand Down
3 changes: 2 additions & 1 deletion charts/gart/templates/gie_frontend/svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ spec:
ports:
- protocol: TCP
port: {{ .Values.gie_frontend.gremlinPort }}
targetPort: gremlin
targetPort: gremlin
nodePort: null
13 changes: 6 additions & 7 deletions charts/gart/templates/writer/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
name: {{ include "gart.writer.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
serviceName: "writer"
serviceName: {{ include "gart.fullname" . }}-gie-executor-service
replicas: {{ .Values.dataconfig.subgraphNum }}
selector:
matchLabels:
Expand Down Expand Up @@ -80,20 +80,19 @@ spec:
image: {{ include "gart.gie_executor.image" . }}
imagePullPolicy: {{ .Values.gie_executor.image.pullPolicy | quote }}
ports:
- name: gaia-rpc
containerPort: {{ .Values.gie_executor.GAIA_RPC_PORT }}
- name: gaia-engine
containerPort: {{ .Values.gie_executor.ENGINE_PORT }}
- name: gaia-rpc
containerPort: {{ .Values.gie_executor.GAIA_RPC_PORT }}
- name: gaia-engine
containerPort: {{ .Values.gie_executor.ENGINE_PORT }}
command: ["/bin/bash", "-c"]
args:
- |
echo "subgraph id: $((${HOSTNAME##*-} + 0))" &&
cd /home/graphscope/GART &&
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib &&
./scripts/update_gie_executor_config.py $((${HOSTNAME##*-} + 0)) {{ .Values.dataconfig.subgraphNum }} {{ .Values.gie_executor.GAIA_RPC_PORT }} {{ .Release.Namespace }} {{ include "gart.writer.fullname" . }} {{ include "gart.fullname" . }}-gie-executor-service {{ .Values.gie_executor.ENGINE_PORT}} &&
sleep infinity &&
cd /home/graphscope/GraphScope/interactive_engine/executor/assembly/grin_gart &&
./target/release/grin_executor ../../../assembly/src/conf/graphscope/log4rs.yml /home/graphscope/gie-executor-config.properties &&
echo ./target/release/grin_executor ../../../assembly/src/conf/graphscope/log4rs.yml /home/graphscope/gie-executor-config.properties &&
sleep infinity
volumeMounts:
- name: shared-socket
Expand Down
4 changes: 2 additions & 2 deletions charts/gart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ gie_executor:
dataconfig:
subgraphNum: 2
dbHost: "127.0.0.1"
dbPort: "3306"
dbPort: "5432"
dbUser: "dbuser"
dbPassword: "123456"
dbType: "mysql"
dbType: "postgresql"
dbName: "ldbc"
v6dSocket: "/tmp/shared/v6d.sock"
v6dSize: "750G"
Expand Down

0 comments on commit 244f500

Please sign in to comment.