Skip to content

Instantly share code, notes, and snippets.

@cmendesce
Last active May 16, 2024 19:29
Show Gist options
  • Select an option

  • Save cmendesce/b06ddb3822b7930dc578f4c3cf11c908 to your computer and use it in GitHub Desktop.

Select an option

Save cmendesce/b06ddb3822b7930dc578f4c3cf11c908 to your computer and use it in GitHub Desktop.
apiVersion: resiliencebench.io/v1beta1
kind: Benchmark
metadata:
name: bookinfo
namespace: bookinfo
spec:
rounds: 5
workload: loadtest
connections:
- name: productpage-reviews
source:
patternConfig:
- name: attempts
value:
- 1
- 2
- name: perTryTimeout
value:
- 1
- 2
service: productpage
target:
fault:
abort:
httpStatus: 503
percentage:
- 25
- 50
service: reviews
- name: reviews-ratings
source:
patternConfig:
- name: attempts
value:
- 1
- 2
- name: perTryTimeout
value:
- 1
- 2
service: reviews
target:
fault:
abort:
httpStatus: 503
percentage:
- 25
- 50
service: ratings
{
"root_group": {
"name": "",
"path": "",
"id": "d41d8cd98f00b204e9800998ecf8427e",
"groups": [],
"checks": []
},
"options": {
"summaryTrendStats": [
"avg",
"min",
"med",
"max",
"p(90)",
"p(95)"
],
"summaryTimeUnit": "",
"noColor": false
},
"state": {
"isStdOutTTY": false,
"isStdErrTTY": false,
"testRunDurationMs": 34322.192044
},
"metrics": {
"http_req_waiting": {
"contains": "time",
"values": {
"max": 5977.179836,
"p(90)": 5186.3729567,
"p(95)": 5305.9340588,
"avg": 3304.290365612746,
"min": 5.250042,
"med": 5047.53912
},
"type": "trend"
},
"partial_load_two_thirds": {
"type": "rate",
"contains": "default",
"values": {
"passes": 0,
"fails": 1428,
"rate": 0
}
},
"data_received": {
"type": "counter",
"contains": "data",
"values": {
"count": 6483557,
"rate": 188902.765641783
}
},
"http_reqs": {
"type": "counter",
"contains": "default",
"values": {
"count": 1428,
"rate": 41.605734219112456
}
},
"http_req_receiving": {
"contains": "time",
"values": {
"med": 0.063917,
"max": 19.575416,
"p(90)": 1.3403623,
"p(95)": 2.4453666499999964,
"avg": 0.5017054474789906,
"min": 0.009458
},
"type": "trend"
},
"partial_load_one_third": {
"values": {
"rate": 0,
"passes": 0,
"fails": 1428
},
"type": "rate",
"contains": "default"
},
"http_req_sending": {
"type": "trend",
"contains": "time",
"values": {
"p(90)": 0.052637500000000025,
"p(95)": 0.35222939999999997,
"avg": 0.09272752100840345,
"min": 0.002541,
"med": 0.00875,
"max": 3.545667
}
},
"http_req_tls_handshaking": {
"type": "trend",
"contains": "time",
"values": {
"p(90)": 0,
"p(95)": 0,
"avg": 0,
"min": 0,
"med": 0,
"max": 0
}
},
"vus": {
"type": "gauge",
"contains": "default",
"values": {
"value": 150,
"min": 150,
"max": 150
}
},
"http_req_duration": {
"contains": "time",
"values": {
"p(95)": 5310.834365049999,
"avg": 3304.884798581234,
"min": 5.303166,
"med": 5047.5962035,
"max": 5979.954794,
"p(90)": 5186.818711
},
"type": "trend"
},
"data_sent": {
"type": "counter",
"contains": "data",
"values": {
"count": 146754,
"rate": 4275.7758540557625
}
},
"http_req_duration{expected_response:true}": {
"type": "trend",
"contains": "time",
"values": {
"p(90)": 5186.818711,
"p(95)": 5310.834365049999,
"avg": 3304.884798581234,
"min": 5.303166,
"med": 5047.5962035,
"max": 5979.954794
}
},
"iteration_duration": {
"values": {
"max": 6000.241961,
"p(90)": 5187.2889441,
"p(95)": 5313.51774235,
"avg": 3306.60098804272,
"min": 5.398709,
"med": 5048.324377
},
"type": "trend",
"contains": "time"
},
"iterations": {
"type": "counter",
"contains": "default",
"values": {
"count": 1428,
"rate": 41.605734219112456
}
},
"http_req_failed": {
"values": {
"rate": 0,
"passes": 0,
"fails": 1428
},
"type": "rate",
"contains": "default"
},
"full_load": {
"values": {
"rate": 0,
"passes": 0,
"fails": 1428
},
"type": "rate",
"contains": "default"
},
"http_req_connecting": {
"type": "trend",
"contains": "time",
"values": {
"avg": 0.21536377310924373,
"min": 0,
"med": 0,
"max": 12.684083,
"p(90)": 0.0520956,
"p(95)": 0.77590865
}
},
"vus_max": {
"type": "gauge",
"contains": "default",
"values": {
"value": 150,
"min": 150,
"max": 150
}
},
"http_req_blocked": {
"type": "trend",
"contains": "time",
"values": {
"avg": 1.2676481148459353,
"min": 0.0005,
"med": 0.002041,
"max": 21.123666,
"p(90)": 2.593362500000004,
"p(95)": 12.41185789999999
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment