You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IPFS occasionally hangs during reading chunks and requires retrying the request.
This commit adds the following options
- `--read-retry-num`: times to retry query on IPFS
- `--read-timeout`: timeout duration of a read request to IPFS
Signed-off-by: Kohei Tokunaga <[email protected]>
-:nerd_face:`--ipfs-address`: Multiaddr of IPFS API (default is pulled from `$IPFS_PATH/api` file. If `$IPFS_PATH` env var is not present, it defaults to `~/.ipfs`).
1217
1219
-:nerd_face:`--listen-registry`: Address to listen (default `localhost:5050`).
1220
+
-:nerd_face:`--read-retry-num`: Times to retry query on IPFS (default 0 (no retry))
1221
+
-:nerd_face:`--read-timeout`: Timeout duration of a read request to IPFS (defualt 0 (no timeout))
1218
1222
1219
1223
## Global flags
1220
1224
-:nerd_face::blue_square:`--address`: containerd address, optionally with "unix://" prefix
ipfsRegistryServeCommand.PersistentFlags().String("listen-registry", defaultIPFSRegistry, "address to listen")
41
45
ipfsRegistryServeCommand.PersistentFlags().String("ipfs-address", "", "multiaddr of IPFS API (default is pulled from $IPFS_PATH/api file. If $IPFS_PATH env var is not present, it defaults to ~/.ipfs)")
46
+
ipfsRegistryServeCommand.PersistentFlags().Int("read-retry-num", defaultIPFSReadRetryNum, "times to retry query on IPFS. Zero or lower means no retry.")
47
+
ipfsRegistryServeCommand.PersistentFlags().Duration("read-timeout", defaultIPFSReadTimeoutDuration, "timeout duration of a read request to IPFS. Zero means no timeout.")
ipfsRegistryUpCommand.PersistentFlags().String("listen-registry", defaultIPFSRegistry, "address to listen")
47
+
ipfsRegistryUpCommand.PersistentFlags().Int("read-retry-num", defaultIPFSReadRetryNum, "times to retry query on IPFS. Zero or lower means no retry.")
48
+
ipfsRegistryUpCommand.PersistentFlags().Duration("read-timeout", defaultIPFSReadTimeoutDuration, "timeout duration of a read request to IPFS. Zero means no timeout.")
0 commit comments