You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "vladimirpetrov (via GitHub)" <gi...@apache.org> on 2024/02/06 08:13:33 UTC

[I] Misleading message when there's no connection to the server, [cloudstack-csbench]

vladimirpetrov opened a new issue, #17:
URL: https://github.com/apache/cloudstack-csbench/issues/17

   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 |
   +---------------------+-------+-------+-------+-------+--------+-----------------+-----------------+-----------------+
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org