summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2023-12-11 18:26:16 +0100
committerAlberto Sartori <alberto.sartori@huawei.com>2023-12-13 23:04:36 +0100
commit0d01c2bcd670f5600c337b87115e089f6d48aab5 (patch)
tree702c21459952c126d1a67430324f93004fe36d04 /share
parent9b3eb0e818f25be8a49b441a55991bcf86697548 (diff)
downloadjustbuild-0d01c2bcd670f5600c337b87115e089f6d48aab5.tar.gz
Add command line options to tune the retry strategy for rpc calls
Three new command line options have been added: - `--max-attempts` - `--initial-backoff-seconds` - `--max-backoff-seconds`
Diffstat (limited to 'share')
-rw-r--r--share/man/just.1.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/share/man/just.1.md b/share/man/just.1.md
index bc409b2c..600b742d 100644
--- a/share/man/just.1.md
+++ b/share/man/just.1.md
@@ -541,6 +541,23 @@ as specified by **`-r`**, or local execution if no endpoint is
specified).
Supported by: analyse|build|install|rebuild|traverse.
+**`--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).
+Supported by: analyse|build|install|rebuild|traverse.
+
+**`--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).
+Supported by: analyse|build|install|rebuild|traverse.
+
+**`--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)
+Supported by: analyse|build|install|rebuild|traverse.
+
Remote serve options
--------------------