From 88c792e051aea57823423bd91dfb4c439a7b52a8 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 17 Apr 2024 15:44:54 +0200 Subject: just-mr: support retry for temporary grpc failures ... using the same mechanism that just uses. As just-mr now also does quite some grpc calls, e.g., fetching distribution files from the remote-execution endpoint and negociating roots with the serve endpoint, it may now also be affected by a bad network or a service temporarily be unavailable. --- share/man/just-mr.1.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'share') diff --git a/share/man/just-mr.1.md b/share/man/just-mr.1.md index c69227cf..ea420a97 100644 --- a/share/man/just-mr.1.md +++ b/share/man/just-mr.1.md @@ -145,6 +145,20 @@ location for archives, between local CAS (or distdirs) and the network. Address of a **`just`** **`serve`** service. This is used as intermediary fetch location for Git commits, between local CAS and the network. +**`--max-attempts`** *`NUM`* +If a remote procedure call (rpc) returns `grpc::StatusCode::UNAVAILABLE`, that +rpc is retried at most *`NUM`* times. (Default: 1, i.e., no retry). + +**`--initial-backoff-seconds`** *`NUM`* +Before retrying the second time, the client will wait the given amount of +seconds plus a jitter, to better distribute the workload. (Default: 1). + +**`--max-backoff-seconds`** *`NUM`* +From the third attempt (included) on, the backoff time is doubled at +each attempt, until it exceeds the `max-backoff-seconds` +parameter. From that point, the waiting time is computed as +`max-backoff-seconds` plus a jitter. (Default: 60) + **`--fetch-absent`** Try to make available all repositories, including those marked as absent. This option cannot be set together with **`--compatible`**. -- cgit v1.2.3