apache / apache/cloudstack-csbench

Misleading message when there's no connection to the server,

オープン
#17 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
6
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

説明

An additional check is required whether the server is accessible. Currently, it just blindly tries each of the API requests:

```
2024/02/06 09:59:30 Failed to create domain due to: Get "http://10.0.35.120:8080/client/api/?apiKey=LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q&command=createDomain&name=Domain-PIcJCkazXi&parentdomainid=7e12782c-c3fb-11ee-bcc6-1e002000040b&response=json&signature=o0uRUi7kQ4nOABlxYWO%2F8o1CtB0%3D": dial tcp 10.0.35.120:8080: connect: connection refused
2024/02/06 09:59:30 Failed to create domain due to: Get "http://10.0.35.120:8080/client/api/?apiKey=LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q&command=createDomain&name=Domain-yJniRGHGlc&parentdomainid=7e12782c-c3fb-11ee-bcc6-1e002000040b&response=json&signature=cKe2Ql3yDSTioi478FFnFLm0BHY%3D": dial tcp 10.0.35.120:8080: connect: connection refused
```

and even though these are failing, it reports this:

```
time="2024-02-06T09:59:30+02:00" level=info msg="Created 1000 domains in 2.21 seconds"
```

Note: The final table is showing the proper result:

```
+---------------------+-------+-------+-------+-------+--------+-----------------+-----------------+-----------------+
| TYPE | COUNT | MIN | MAX | AVG | MEDIAN | 90TH PERCENTILE | 95TH PERCENTILE | 99TH PERCENTILE |
+---------------------+-------+-------+-------+-------+--------+-----------------+-----------------+-----------------+
| domain - All | 1000 | 0.002 | 0.022 | 0.004 | 0.003 | 0.007 | 0.009 | 0.015 |
| domain - Successful | 0 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| domain - Failed | 1000 | 0.002 | 0.022 | 0.004 | 0.003 | 0.007 | 0.009 | 0.015 |
+---------------------+-------+-------+-------+-------+--------+-----------------+-----------------+-----------------+
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。