intel-cloud / cosbench

a benchmark tool for cloud object storage service
Other
573 stars 242 forks source link

why cosbench hang up 30 seconds when obj-service has network error #434

Open weingithub opened 5 months ago

weingithub commented 5 months ago

we use vip to provide HA, but in out test, when do network error in node1,the vip change to node2 aftter 4 seconds, but capture package in cosbench client, there is 30 second with no packet.

can anyone tell me why is 30 seconds and how to short it? look the time between 17:50:59 and 17:51:29. 111-2024-4-29 17-52

thanks! @mcspring @Niklas974

kisscelia commented 4 months ago

maybe the default timeout is 30s

    // --------------------------------------------------------------------------
    // CONNECTION
    // --------------------------------------------------------------------------
    String CONN_TIMEOUT_KEY = "timeout";
    int CONN_TIMEOUT_DEFAULT = 30000;

http's ConnectionTimeout and SocketTimeout are related to this parameter(timeout).