X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/22e066d43cb09beb21c4cd5b12a787b81a00f97e..3c23a0a57bde2978402e5d46ca2b003becee6d58:/services/keep-balance/usage.go diff --git a/services/keep-balance/usage.go b/services/keep-balance/usage.go index b521c652cc..4c7d506718 100644 --- a/services/keep-balance/usage.go +++ b/services/keep-balance/usage.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + package main import ( @@ -7,19 +11,16 @@ import ( ) var exampleConfigFile = []byte(` - { - "Client": { - "APIHost": "zzzzz.arvadosapi.com:443", - "AuthToken": "xyzzy", - "Insecure": false - }, - "KeepServiceTypes": [ - "disk" - ], - "RunPeriod": "600s", - "CollectionBatchSize": 100000, - "CollectionBuffers": 1000 - }`) +Client: + APIHost: zzzzz.arvadosapi.com:443 + AuthToken: xyzzy + Insecure: false +KeepServiceTypes: + - disk +RunPeriod: 600s +CollectionBatchSize: 100000 +CollectionBuffers: 1000 +RequestTimeout: 30m`) func usage() { fmt.Fprintf(os.Stderr, ` @@ -30,7 +31,7 @@ overreplicated and unreferenced blocks, and moves blocks to better positions (according to the rendezvous hash algorithm) so clients find them faster. -Usage: keep-balance -config path/to/config.json [options] +Usage: keep-balance [options] Options: `) @@ -86,6 +87,11 @@ Tuning resource usage: while the current page is still being processed. If this is zero or omitted, pages are processed serially. + RequestTimeout is the maximum time keep-balance will spend on a + single HTTP request (getting a page of collections, getting the + block index from a keepstore server, or sending a trash or pull + list to a keepstore server). Defaults to 30 minutes. + Limitations: keep-balance does not attempt to discover whether committed pull