Re: client/server mode error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, 16 Sep 2020 at 20:03, Frank Ritchie <frankaritchie@xxxxxxxxx> wrote:
>
> Hi all,
>
> I am looking for documentation on how fio handles unavailable servers
> in client/server mode. For instance, if I start a client specifying 10
> servers to run tests on and only 5 are immediately available will fio
> retry, block, fail, etc? Is the behavior configurable?

Client connection is done in
https://github.com/axboe/fio/blob/14060ebb90ce5a0a164d0e5e52c13e31b53b282d/client.c#L601
. Reading through the functions it calls (such as fio_client_connect_ip() see
https://github.com/axboe/fio/blob/14060ebb90ce5a0a164d0e5e52c13e31b53b282d/client.c#L529)
they call ultimately connect() and if that fails for any reason (see
https://man7.org/linux/man-pages/man2/connect.2.html ) an error is returned and
the client exits. In the above scenario, if the fio client tries to connect to
a server that is not running but the port is not being firewalled that client
will exit with an error message (and if firewalled it will eventually timeout).
There is nothing that I see in the current code that would allow
retrying/blocking but you could modify the code to do the connect in a loop
until some number of retries had been done / some timeout reached.  After you
had succeeded with the initial change, you could make it an option that
attached to the client struct and then it would be configurable...


--
Sitsofe | http://sucs.org/~sits/



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux