Skip to content

Commit 9f5b3dc

Browse files
authored
Merge pull request #27 from go-graphite/rebalance/more-accurate-controls
rebalance: introduce go-carbon health check with better sync rate control
2 parents ee866ed + 2ec000e commit 9f5b3dc

File tree

8 files changed

+746
-68
lines changed

8 files changed

+746
-68
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,17 @@ test: clean bucky buckyd
3737
go run -mod vendor testing/rebalance.go $(REBALANCE_FLAGS)
3838
go run -mod vendor testing/copy.go $(COPY_FLAGS)
3939

40+
# only works on linux
41+
test_rebalance_health_check_setup:
42+
sudo ip addr add 10.0.1.7 dev lo
43+
sudo ip addr add 10.0.1.8 dev lo
44+
sudo ip addr add 10.0.1.9 dev lo
45+
46+
test_rebalance_health_check: clean bucky buckyd
47+
go run -mod vendor testing/rebalance_health_check.go $(REBALANCE_FLAGS)
48+
4049
clean_test:
50+
rm -rf bucky buckyd
4151
rm -rf testdata_rebalance_*
4252
rm -rf testdata_copy_*
4353

cmd/bucky/common.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ func DeleteMetric(server, metric string) error {
157157

158158
switch resp.StatusCode {
159159
case 200:
160-
log.Printf("DELETED: %s", metric)
160+
if msFlags.printDeletedMetrics {
161+
log.Printf("DELETED: %s", metric)
162+
}
161163
case 404:
162164
log.Printf("Not found / Not deleted: %s", metric)
163165
return fmt.Errorf("Metric not found.")

0 commit comments

Comments
 (0)