summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-17 15:44:54 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-18 15:51:28 +0200
commit88c792e051aea57823423bd91dfb4c439a7b52a8 (patch)
treedc524de7d5e1b6cd727ad24cbaaddbca6377b965 /share
parent8744b30b9612354b42474b2a1fb323fce5d182c1 (diff)
downloadjustbuild-88c792e051aea57823423bd91dfb4c439a7b52a8.tar.gz
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.
Diffstat (limited to 'share')
-rw-r--r--share/man/just-mr.1.md14
1 files changed, 14 insertions, 0 deletions
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`**.