You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

  1. BINARY = weed
  2. SOURCE_DIR = .
  3. debug ?= 0
  4. all: install
  5. install:
  6. cd weed; go install
  7. install_large:
  8. cd weed; go install -tags "5BytesOffset"
  9. warp_install:
  10. go install github.com/minio/warp@v0.7.6
  11. full_install:
  12. cd weed; go install -tags "elastic gocdk sqlite ydb tikv rclone"
  13. server: install_large
  14. 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 -metricsPort=9324
  15. benchmark: install warp_install
  16. pkill weed || true
  17. pkill warp || true
  18. 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 &
  19. warp client &
  20. while ! nc -z localhost 8000 ; do sleep 1 ; done
  21. warp mixed --host=127.0.0.1:8000 --access-key=some_access_key1 --secret-key=some_secret_key1 --autoterm
  22. pkill warp
  23. pkill weed
  24. # curl -o profile "http://127.0.0.1:6060/debug/pprof/profile?debug=1"
  25. benchmark_with_pprof: debug = 1
  26. benchmark_with_pprof: benchmark
  27. test:
  28. cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...