Skip to content

Commit bd06c54

Browse files
committed
rebase GIE
Signed-off-by: Lei Wang <[email protected]>
1 parent a986bb6 commit bd06c54

File tree

8 files changed

+30
-11
lines changed

8 files changed

+30
-11
lines changed

charts/gart/templates/gie_frontend/deployment.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ spec:
2626
command: ["/bin/bash", "-c"]
2727
args:
2828
- |
29-
cd /home/graphscope/GART &&
30-
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python &&
31-
./scripts/update_gie_schema.py {{ $etcd_service }} {{ .Values.dataconfig.etcdPrefix }} {{ .Release.Namespace }} {{ include "gart.writer.fullname" . }} {{ .Values.gie_frontend.gremlinPort }} {{ .Values.dataconfig.subgraphNum}} {{ include "gart.fullname" . }}-gie-executor-service {{ .Values.gie_executor.GAIA_RPC_PORT}} &&
32-
cd /home/graphscope/GraphScope/interactive_engine/compiler &&
33-
make run &&
34-
sleep infinity
29+
cd /home/graphscope/GART
30+
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
31+
./scripts/update_gie_schema.py {{ $etcd_service }} {{ .Values.dataconfig.etcdPrefix }} {{ .Release.Namespace }} {{ include "gart.writer.fullname" . }} {{ .Values.gie_frontend.gremlinPort }} {{ .Values.dataconfig.subgraphNum}} {{ include "gart.fullname" . }}-gie-executor-service {{ .Values.gie_executor.GAIA_RPC_PORT}} {{ .Values.gie_frontend.cypherPort }}
32+
cd /home/graphscope/GraphScope/interactive_engine/compiler
33+
make run
3534
ports:
3635
- name: gremlin
3736
containerPort: {{ .Values.gie_frontend.gremlinPort }}
37+
- name: cypher
38+
containerPort: {{ .Values.gie_frontend.cypherPort }}
3839
envFrom:
3940
- configMapRef:
4041
name: {{ include "gart.configmapName" . }}

charts/gart/templates/gie_frontend/svc.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ spec:
1414
- protocol: TCP
1515
port: {{ .Values.gie_frontend.gremlinPort }}
1616
targetPort: gremlin
17+
name: gremlin-port
18+
- protocol: TCP
19+
port: {{ .Values.gie_frontend.cypherPort }}
20+
targetPort: cypher
21+
name: cypher-port
1722
{{- end }}

charts/gart/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ gie_frontend:
221221
pullPolicy: IfNotPresent
222222
replicaCount: 1
223223
gremlinPort: 8182
224+
cypherPort: 7687
224225
resources: {}
225226

226227
# gie executor config

coordinator/flex/server/controllers/graph_controller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def list_graphs(): # noqa: E501
576576
result_dict = get_graph_schema()
577577

578578
if not result_dict:
579-
return ([GetGraphResponse.from_dict({})], 200)
579+
return ([], 200)
580580

581581
try:
582582
with open("/tmp/graph_schema_create_time.txt", "r") as f:

k8s/dockerfiles/interactive.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ RUN git clone https://github.com/microsoft/cpprestsdk.git \
8181

8282
WORKDIR /home/graphscope
8383
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
84-
&& git clone https://github.com/doudoubobo/GraphScope.git -b v0.1.4 /home/graphscope/GraphScope \
84+
&& git clone https://github.com/doudoubobo/GraphScope.git -b gart-gie-grin /home/graphscope/GraphScope \
8585
&& cd /home/graphscope/GraphScope/interactive_engine/compiler \
8686
&& make build \
8787
&& rm -rf /home/graphscope/GraphScope/.git \
@@ -155,7 +155,7 @@ RUN git clone https://github.com/microsoft/cpprestsdk.git \
155155
&& rm -rf /home/graphscope/GART
156156

157157
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
158-
&& git clone https://github.com/doudoubobo/GraphScope.git -b v0.1.4 /home/graphscope/GraphScope \
158+
&& git clone https://github.com/doudoubobo/GraphScope.git -b gart-gie-grin /home/graphscope/GraphScope \
159159
&& cd /home/graphscope/GraphScope/interactive_engine/executor/assembly/grin_gart \
160160
&& cargo build --release \
161161
&& rm -rf /home/graphscope/GraphScope/.git \

scripts/launch_gie_executor.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ APP_NAME="grin_executor"
1313
# Start the GIE executor
1414
cd /home/graphscope/GraphScope/interactive_engine/executor/assembly/grin_gart
1515
# run backgorund and redirect stdout and stderr to /home/graphscope/gie_executor.log
16-
./target/release/grin_executor ../../../assembly/src/conf/graphscope/log4rs.yml /home/graphscope/gie-executor-config.properties > /home/graphscope/gie_executor.log 2>&1 &
16+
./target/release/gart_executor ../../../assembly/src/conf/graphscope/log4rs.yml /home/graphscope/gie-executor-config.properties > /home/graphscope/gie_executor.log 2>&1 &

scripts/update_gie_schema.py

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
server_size = sys.argv[6]
1414
rpc_service_name = sys.argv[7]
1515
rpc_service_port = sys.argv[8]
16+
cypher_port = sys.argv[9]
1617

1718
server_size = int(server_size)
1819

@@ -45,6 +46,13 @@
4546
f.write("pegasus.output.capacity: 16\n")
4647
f.write("graph.schema: /home/graphscope/gie-graph-schema.json\n")
4748
f.write("gremlin.server.port = " + gremlin_port + "\n")
49+
f.write("graph.planner.is.on: true\n")
50+
f.write("graph.planner.opt: RBO\n")
51+
f.write("graph.planner.rules: FilterIntoJoinRule, FilterMatchRule, ExtendIntersectRule, ExpandGetVFusionRule\n")
52+
f.write("gremlin.server.disabled: false\n")
53+
f.write("neo4j.bolt.server.disabled: false\n")
54+
f.write("neo4j.bolt.server.port: " + cypher_port + "\n")
55+
f.write("calcite.default.charset: UTF-8\n")
4856
pegasus_hosts = ""
4957
for idx in range(server_size):
5058
service_name = (

scripts/update_ip_tables.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ if ! update_iptables gart-release-coordinator-service 0.0.0.0 18080 gart "$K8S_A
5656
fi
5757

5858
if ! update_iptables gart-release-gie-frontend-service 0.0.0.0 8182 gart "$K8S_API_IP"; then
59-
echo "Failed to update iptables for gart-release-gie-frontend-service"
59+
echo "Failed to update iptables for gart-release-gie-frontend-service gremlin"
60+
fi
61+
62+
if ! update_iptables gart-release-gie-frontend-service 0.0.0.0 7687 gart "$K8S_API_IP"; then
63+
echo "Failed to update iptables for gart-release-gie-frontend-service cypher"
6064
fi
6165

6266
echo "iptables update process completed."

0 commit comments

Comments
 (0)