feat: multi build
This commit is contained in:
parent
99d441c7ac
commit
8ce3e5139f
6
Makefile
6
Makefile
@ -56,6 +56,12 @@ build_server: $(BIN_DIR)
|
||||
build_client: $(BIN_DIR)
|
||||
$(GO_BUILD) -o $(CLIENT_BIN) ./cmd/client
|
||||
|
||||
build_server_linux_amd64:
|
||||
GOOS=linux GOARCH=amd64 $(GO_BUILD) -o $(SERVER_BIN) ./cmd/server
|
||||
|
||||
build_client_linux_amd64:
|
||||
GOOS=linux GOARCH=amd64 $(GO_BUILD) -o $(CLIENT_BIN) ./cmd/client
|
||||
|
||||
# 编译调试版本
|
||||
build_debug: check_deps $(BIN_DIR)
|
||||
$(GO_BUILD) $(DEBUG_FLAGS) -o $(SERVER_BIN) ./cmd/server
|
||||
|
10
config.yaml
10
config.yaml
@ -1,21 +1,21 @@
|
||||
server:
|
||||
listen_addr: "0.0.0.0"
|
||||
port: 8080
|
||||
port: 30083
|
||||
log_file: "server.log"
|
||||
devices_nvme: "/dev/nvme0n1"
|
||||
devices_hdd: "/dev/sda"
|
||||
devices_nvme: "/dev/disk/by-id/nvme-DERAP44YGM03T2US_D77451D404M433"
|
||||
devices_hdd: "/dev/disk/by-id/wwn-0x5000cca0c2c123ad"
|
||||
cache_instance_id: "1"
|
||||
mount_point: "/opt/sdf"
|
||||
|
||||
client:
|
||||
server_addr: "localhost:8080"
|
||||
server_addr: "192.168.42.217:30083"
|
||||
log_file: "client.log"
|
||||
concurrency: 5
|
||||
timeout_sec: 30
|
||||
report_format: "json"
|
||||
|
||||
test:
|
||||
data_size_mb: 100
|
||||
data_size_mb: 1000
|
||||
verification_frequency: 10
|
||||
power_cut_method: "signal" # signal或physical
|
||||
test_duration: 60
|
||||
|
Loading…
Reference in New Issue
Block a user