Skip to content

Vermeer update go version to 1.23 #322

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

Merged
merged 3 commits into from
Apr 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
77 changes: 46 additions & 31 deletions vermeer/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,62 @@
# 图计算平台
# Vermeer Graph Compute Engine

### grpc protobuf 依赖项安装
## Introduction
Vermeer is a high-performance distributed graph computing platform based on memory, supporting more than 15 graph algorithms, custom algorithm extensions, and custom data source access.

## Start

```
master: ./vermeer --env=master
worker: ./vermeer --env=worker01
```
The parameter env specifies the name of the configuration file in the useconfig folder.

```
./vermeer.sh start master
./vermeer.sh start worker
```
Configuration items are specified in vermeer.sh
## supervisord
Can be used with supervisord to start and stop services, automatically start applications, rotate logs, and more; for the configuration file, refer to config/supervisor.conf;

Configuration file reference config/supervisor.conf

````
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.0 \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
# run as daemon
./supervisord -c supervisor.conf -d
````

## Compile
Required
* go 1.23

### Install dependencies

```
go mod tidy
```

### Local compile

```
go build
```

---

### protobuf build
### install grpc protobuf dependencies
````
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.0 \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
````

### protobuf build
````
../../tools/protoc/osxm1/protoc *.proto --go-grpc_out=. --go_out=.
````

---

### 交叉编译
### Cross Compile

````
linux: GOARCH=amd64 GOOS=linux go build
Expand All @@ -26,32 +65,8 @@ CC=x86_64-linux-musl-gcc CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -buildmo

---

### 运行

```
master: ./vermeer --env=master
worker: ./vermeer --env=worker01
# 参数env是指定使用config文件夹下的配置文件名
or
./vermeer.sh start master
./vermeer.sh start worker
# 配置项在vermeer.sh中指定
```

---

## supervisord

配置文件参考 config/supervisor.conf

````
# 启动 run as daemon
./supervisord -c supervisor.conf -d
````

# 使用hubble平台
有三种搭建方式,参考https://hugegraph.apache.org/docs/quickstart/hugegraph-hubble/

Use Docker (Convenient for Test/Dev)
Download the Toolchain binary package
Source code compilation
79 changes: 79 additions & 0 deletions vermeer/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Vermeer图计算平台

## 简介
Vermeer是一个基于内存的高性能分布式图计算平台,支持15+图算法。支持自定义算法扩展,支持自定义数据源接入。

## 运行

```
master: ./vermeer --env=master
worker: ./vermeer --env=worker01
```
参数env是指定使用config文件夹下的配置文件名

```
./vermeer.sh start master
./vermeer.sh start worker
```
配置项在vermeer.sh中指定


## supervisord
可搭配supervisord使用,启动和停止服务,应用自动拉起、日志轮转等功能;

配置文件参考 config/supervisor.conf

````
# 启动 run as daemon
./supervisord -c supervisor.conf -d
````

## 编译

* Go 1.23

### 安装依赖项

```
go mod tidy
```

### 本地编译

```
go build
```

### grpc protobuf 依赖项安装
````
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.0 \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
````



### protobuf build
生成protobuf文件
````
../../tools/protoc/osxm1/protoc *.proto --go-grpc_out=. --go_out=.
````



### 交叉编译

````
linux: GOARCH=amd64 GOOS=linux go build
CC=x86_64-linux-musl-gcc CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -buildmode=plugin
````

---



# 使用hubble平台
有三种搭建方式,参考https://hugegraph.apache.org/docs/quickstart/hugegraph-hubble/

Use Docker (Convenient for Test/Dev)
Download the Toolchain binary package
Source code compilation
4 changes: 2 additions & 2 deletions vermeer/apps/compute/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

"github.com/sirupsen/logrus"

"github.com/antonmedv/expr"
"github.com/antonmedv/expr/vm"
"github.com/expr-lang/expr"
"github.com/expr-lang/expr/vm"
)

type VertexFilter struct {
Expand Down
24 changes: 0 additions & 24 deletions vermeer/config/worker04.ini

This file was deleted.

24 changes: 0 additions & 24 deletions vermeer/config/worker05.ini

This file was deleted.

24 changes: 0 additions & 24 deletions vermeer/config/worker06.ini

This file was deleted.

24 changes: 0 additions & 24 deletions vermeer/config/worker07.ini

This file was deleted.

24 changes: 0 additions & 24 deletions vermeer/config/worker08.ini

This file was deleted.

23 changes: 0 additions & 23 deletions vermeer/config/worker09.ini

This file was deleted.

Loading
Loading