2022-04-21 08:10:46 +00:00
|
|
|
BINARY = weed
|
|
|
|
|
|
|
|
SOURCE_DIR = .
|
2023-10-16 06:02:27 +00:00
|
|
|
debug ?= 0
|
2022-04-21 08:10:46 +00:00
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
install:
|
|
|
|
cd weed; go install
|
|
|
|
|
2023-10-16 06:02:27 +00:00
|
|
|
warp_install:
|
|
|
|
go install github.com/minio/warp@v0.7.6
|
|
|
|
|
2022-04-21 08:10:46 +00:00
|
|
|
full_install:
|
2023-11-23 08:48:27 +00:00
|
|
|
cd weed; go install -tags "elastic gocdk sqlite ydb tikv rclone"
|
2022-06-23 18:32:15 +00:00
|
|
|
|
2023-09-25 15:34:12 +00:00
|
|
|
server: install
|
|
|
|
weed -v 4 server -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json
|
|
|
|
|
2023-10-16 06:02:27 +00:00
|
|
|
benchmark: install warp_install
|
|
|
|
pkill weed || true
|
|
|
|
pkill warp || true
|
|
|
|
weed server -debug=$(debug) -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json &
|
|
|
|
warp client &
|
|
|
|
while ! nc -z localhost 8000 ; do sleep 1 ; done
|
|
|
|
warp mixed --host=127.0.0.1:8000 --access-key=some_access_key1 --secret-key=some_secret_key1 --autoterm
|
|
|
|
pkill warp
|
|
|
|
pkill weed
|
|
|
|
|
|
|
|
# curl -o profile "http://127.0.0.1:6060/debug/pprof/profile?debug=1"
|
|
|
|
benchmark_with_pprof: debug = 1
|
|
|
|
benchmark_with_pprof: benchmark
|
|
|
|
|
2023-09-25 15:34:12 +00:00
|
|
|
test:
|
2023-11-23 08:48:27 +00:00
|
|
|
cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...
|