@@ -24,29 +24,64 @@ You can also use Docker to install b7s. See the [Docker documentation](/docker/R
24
24
25
25
## Usage
26
26
27
- For a more detailed overview of the configuration options, see the [ b7s-node Readme] ( /cmd/node/README.md#usage ) .
28
-
29
- | Flag | Short Form | Default Value | Description |
30
- | ------------------------- | ---------- | ----------------------- | ----------------------------------------------------------------------------------------------------- |
31
- | config | N/A | N/A | Specifies the config file to load. |
32
- | log-level | -l | "info" | Specifies the level of logging to use. |
33
- | db | N/A | "db" | Specifies the path to database used for persisting peer and function data. |
34
- | role | -r | "worker" | Specifies the role this node will have in the Blockless protocol (head or worker). |
35
- | address | -a | "0.0.0.0" | Specifies the address that the libp2p host will use. |
36
- | port | -p | 0 | Specifies the port that the libp2p host will use. |
37
- | websocket-port | N/A | 0 | Specifies the port that the libp2p host will use for websocket connections. |
38
- | private-key | N/A | N/A | Specifies the private key that the libp2p host will use. |
39
- | concurrency | -c | node.DefaultConcurrency | Specifies the maximum number of requests the node will process in parallel. |
40
- | rest-api | N/A | N/A | Specifies the address where the head node REST API will listen on. |
41
- | boot-nodes | N/A | N/A | Specifies a list of addresses that this node will connect to on startup, in multiaddr format. |
42
- | workspace | N/A | "./workspace" | Specifies the directory that the node can use for file storage. |
43
- | runtime | N/A | N/A | Specifies the runtime address used by the worker node. |
44
- | dialback-address | N/A | N/A | Specifies the advertised dialback address of the Node. |
45
- | dialback-port | N/A | N/A | Specifies the advertised dialback port of the Node. |
46
- | websocket-dialback-port | N/A | 0 | Specifies the advertised dialback port for Websocket connections. |
47
- | cpu-percentage-limit | N/A | 1.0 | Specifies the amount of CPU time allowed for Blockless Functions in the 0-1 range, 1 being unlimited. |
48
- | memory-limit | N/A | N/A | Specifies the memory limit for Blockless Functions, in kB. |
49
- | no-dialback-peers | N/A | false | Specifies if the node should avoid dialing back peers known from past runs |
27
+ For a more detailed overview of the node options and their meaning see [ b7s-node Readme] ( /cmd/node/README.md#usage ) .
28
+ You can see an example YAML config file [ here] ( /cmd/node/example.yaml ) .
29
+
30
+ ### General Flags
31
+
32
+ | Flag | Short Form | Default Value | Description |
33
+ | ------------------------- | ---------- | ----------------------- | --------------------------------------------------------------------------------------- |
34
+ | config | N/A | N/A | Config file to load. |
35
+ | log-level | -l | "info" | Level of logging to use. |
36
+ | db | N/A | "db" | Path to database used for persisting peer and function data. |
37
+ | role | -r | "worker" | Role this node will have in the Blockless protocol (head or worker). |
38
+ | workspace | N/A | "./workspace" | Directory that the node will use for file storage. |
39
+ | concurrency | -c | node.DefaultConcurrency | Maximum number of requests the node will process in parallel. |
40
+ | load-attributes | N/A | false | Load attributes from the environment. |
41
+ | topics | N/A | N/A | Topics that the node should subscribe to. |
42
+
43
+ ### Connectivity
44
+
45
+ | Flag | Short Form | Default Value | Description |
46
+ | ------------------------- | ---------- | ----------------------- | --------------------------------------------------------------------------------------- |
47
+ | address | -a | "0.0.0.0" | Address that the libp2p host will use. |
48
+ | port | -p | 0 | Port that the libp2p host will use. |
49
+ | private-key | N/A | N/A | Private key that the libp2p host will use. |
50
+ | boot-nodes | N/A | N/A | List of addresses that this node will connect to on startup, in multiaddr format. |
51
+ | websocket | -w | false | Use websocket protocol for communication, besides TCP. |
52
+ | websocket-port | N/A | 0 | Port that the libp2p host will use for websocket connections. |
53
+ | dialback-address | N/A | N/A | Advertised dialback address of the Node. |
54
+ | dialback-port | N/A | N/A | Advertised dialback port of the Node. |
55
+ | websocket-dialback-port | N/A | 0 | Advertised dialback port for Websocket connections. |
56
+ | no-dialback-peers | N/A | false | Avoid dialing back peers known from past runs |
57
+ | must-reach-boot-nodes | N/A | false | Halt if the Node cannot reach boot nodes on startup. |
58
+ | disable-connection-limits | N/A | false | Try to maintain as many connections as possible. |
59
+ | connection-count | N/A | N/A | Number of connections that the node will aim to have. |
60
+
61
+ ### Worker Node
62
+
63
+ | Flag | Short Form | Default Value | Description |
64
+ | ------------------------- | ---------- | ----------------------- | --------------------------------------------------------------------------------------------- |
65
+ | runtime-path | N/A | N/A | Local path to the Blockless Runtime. |
66
+ | runtime-cli | N/A | "bls-runtime" | Name of the Blockless Runtime executable, as found in the runtime-path. |
67
+ | cpu-percentage-limit | N/A | 1.0 | Amount of CPU time allowed for Blockless Functions in the 0-1 range, 1 being unlimited (100%) |
68
+ | memory-limit | N/A | N/A | Memory limit for Blockless Functions, in kB. |
69
+
70
+ ### Head Node
71
+
72
+ | Flag | Short Form | Default Value | Description |
73
+ | ------------------------- | ---------- | ----------------------- | --------------------------------------------------------------------------------------- |
74
+ | rest-api | N/A | N/A | Address where the head node will serve the REST API |
75
+
76
+ ### Telemetry
77
+
78
+ | Flag | Short Form | Default Value | Description |
79
+ | ------------------------- | ---------- | ----------------------- | --------------------------------------------------------------------------------------- |
80
+ | enable-tracing | N/A | false | Emit tracing data. |
81
+ | tracing-grpc-endpoint | N/A | N/A | GRPC endpoint where node should send tracing data. |
82
+ | tracing-http-endpoint | N/A | N/A | HTTP endpoint where node should send tracing data. |
83
+ | enable-metrics | N/A | false | Enable metrics. |
84
+ | prometheus-address | N/A | N/A | Address where node should serve metrics (for head node this is the REST API address) |
50
85
51
86
## Dependencies
52
87
0 commit comments