Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat(interactive): add http service in Insight #4411

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1768c36
[Insight] add http service on Groot
BingqingLyu Dec 16, 2024
e86b945
refine and implement openapi service, including VertexManagementServi…
BingqingLyu Dec 17, 2024
9084713
add ddl apis in openapi
BingqingLyu Dec 19, 2024
6ec0e20
wip: implementation of ddl apis
BingqingLyu Dec 23, 2024
9d6d09a
refine openapi, and add update api for vertex type and edge type, for…
BingqingLyu Dec 25, 2024
1e65b3d
fix bugs in schema spec conversion
shirly121 Dec 25, 2024
2e1e13d
implementation of ddl apis
BingqingLyu Dec 25, 2024
fa14e53
minor fix
BingqingLyu Jan 7, 2025
bd76cd3
fix pom in groot-http
BingqingLyu Jan 7, 2025
704bbd9
start up groot-http in k8s
BingqingLyu Jan 7, 2025
996fa08
generate spring codes in compilation
BingqingLyu Jan 7, 2025
a55accc
delete auto-generated files
BingqingLyu Jan 7, 2025
ed8f9ef
minor refine
BingqingLyu Jan 7, 2025
fb71533
minor refine
BingqingLyu Jan 8, 2025
8a5d048
refine openapi: 1) seperate batch operations; 2) add a addVerticesEdg…
BingqingLyu Jan 8, 2025
4f2eba1
refine implementations for batch operations etc.
BingqingLyu Jan 8, 2025
c2556b5
add a remoteFlush api to check the si's availability
BingqingLyu Jan 8, 2025
bea9a18
refine apis: 1) only preserve batch apis; 2) support add vertices and…
BingqingLyu Jan 9, 2025
316a43d
format
BingqingLyu Jan 9, 2025
6289c88
Merge remote-tracking branch 'upstream/main' into insight_http_service
BingqingLyu Jan 9, 2025
6b5efaa
minor fix
BingqingLyu Jan 9, 2025
5e7e460
refine discriminator
BingqingLyu Jan 9, 2025
2e416f1
refine discriminator
BingqingLyu Jan 13, 2025
db00091
refine get_snapshot_status api
BingqingLyu Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ flex/interactive/sdk/python/gs_interactive/rest.py
!flex/interactive/sdk/python/gs_interactive/client/generated/__init__.py
!flex/interactive/sdk/python/gs_interactive/models/long_text.py

interactive_engine/groot-http/src/main/java/com/alibaba/graphscope/groot/service/models/
interactive_engine/groot-http/.openapi-generator/
interactive_engine/groot-http/src/main/java/com/alibaba/graphscope/groot/*.java
interactive_engine/groot-http/src/main/java/org/
interactive_engine/groot-http/src/main/resources/
interactive_engine/groot-http/src/main/java/com/alibaba/graphscope/groot/service/api/V1Api.java

**/.cache/

Expand Down
4 changes: 4 additions & 0 deletions charts/graphscope-store/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ data:
# export MALLOC_CONF=prof:true,lg_prof_interval:29,lg_prof_sample:19,prof_prefix=/tmp

export RUST_BACKTRACE=1
if [ "$ROLE" = "frontend" ]; then
echo "Starting groot-http Spring Boot service..."
java -jar ${GRAPHSCOPE_HOME}/groot/lib/groot-http-0.0.1-SNAPSHOT.jar > /var/log/graphscope/groot-http.log 2>&1 &
fi
${GRAPHSCOPE_HOME}/groot/bin/store_ctl.sh start ${ROLE} # || sleep infinity
portal_setup.sh: |-
#!/bin/bash
Expand Down
17 changes: 17 additions & 0 deletions flex/interactive/sdk/generate_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ function do_gen_python() {
eval $cmd
}

function do_gen_spring() {
echo "Generating Spring API"
OUTPUT_PATH="${CUR_DIR}/../../../interactive_engine/groot-http"
GROOT_PACKAGE_NAME="com.alibaba.graphscope.groot"
GROOT_ARTIFACT_ID="groot-http"
additional_properties="apiPackage=${GROOT_PACKAGE_NAME}.service.api,modelPackage=${GROOT_PACKAGE_NAME}.service.models,artifactId=${GROOT_ARTIFACT_ID},groupId=${GROUP_ID},invokerPackage=${GROOT_PACKAGE_NAME}"
export JAVA_OPTS="-Dlog.level=${LOG_LEVEL}"
cmd="openapi-generator-cli generate -i ${OPENAPI_SPEC_PATH} -g spring -o ${OUTPUT_PATH}"
cmd=" ${cmd} --additional-properties=${additional_properties}"
echo "Running command: ${cmd}"

eval $cmd
}

function do_gen() {
# expect only one argument
if [ $# -ne 1 ]; then
Expand All @@ -97,6 +111,9 @@ function do_gen() {
python)
do_gen_python
;;
spring)
do_gen_spring
;;
*)
err "Unsupported language: $lang"
usage
Expand Down
Loading
Loading