Add option to configure max-peers

Signed-off-by: Edward Evans <edward.evans@consensys.net>
pull/16/head
Edward Evans 5 years ago
parent e1a3653c25
commit 80d7dbb6cd
No known key found for this signature in database
GPG Key ID: D043D2B173BC2484
  1. 1
      README.md
  2. 3
      templates/config.toml.j2

@ -51,6 +51,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
| `besu_identity` | ___unset___ | Configuration of Identity in the Client ID |
| `besu_host_ip` | "" | The host IP that Besu uses for the P2P network. This specifies the host on which P2P listens |
| `besu_default_ip` | "{{ default(ansible_host) \| default('127.0.0.1') }}" | The fallback default for `besu_host_ip` |
| `besu_max_peers` | ___unset___ | The maximum number of P2P connections you can establish |
| `besu_network` | mainnet | The network that this node will join. Other values are 'ropsten', 'rinkeby', 'goerli', 'dev' and 'custom' |
| `besu_genesis_path` | ___unset___ | The path to the genesis file, only valid when `besu_network` is `custom` |
| `besu_sync_mode` | FAST | Specifies the synchronization mode. Other values are 'FULL' |

@ -60,6 +60,9 @@ graphql-http-cors-origins=[{{besu_graphql_http_cors_origins|map('to_json')|join(
p2p-host="{{besu_host_ip}}"
{% endif %}
p2p-port={{besu_p2p_port}}
{% if besu_max_peers is defined %}
max_peers={{besu_max_peers}}
{% endif %}
# metrics
metrics-enabled=true

Loading…
Cancel
Save