Pantheon uses the network to find and connect to peers.
Ports must be exposed appropriately to enable communication. An example port configuration for a Pantheon node on AWS is:
To enable peer discovery, the P2P UDP port must be open for inbound connections.
We also recommended opening the P2P TCP port for inbound connections. This is not strictly required because Pantheon attempts to initiate outbound TCP connections. However, if no nodes on the network are accepting inbound TCP connections, nodes cannot communicate.
The P2P port is specified by the
The default is
To enable access to the JSON-RPC API, open the HTTP JSON-RPC and WebSockets JSON-RPC ports to the intended users of the JSON-RPC API on TCP.
To enable Prometheus to access Pantheon, open the metrics port or metrics push port to Prometheus or the Prometheus push gateway on TCP.
The default logging configuration does not list node connection and disconnection messages.
To enable listing of node connection and disconnection messages, specify the
--logging command line option
For more verbosity, specify
The console logs connection and disconnection events when the log level is
DEBUG or higher.
Successfully accepted connection from ... is displayed, connections are getting through the firewalls.
Example log output
2018-10-16 12:37:35.479-04:00 | nioEventLoopGroup-3-1 | INFO | NettyP2PNetwork | Successfully accepted connection from 0xa979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c
Limiting peers reduces the bandwidth used by Pantheon. It also reduces the CPU time and disk access used to manage and respond to peers.
--max-peers command line option to reduce
the maximum number of peers. The default is 25.
--discovery-enabled command line option
can be used to disable P2P peer discovery.
Set this option to
false if you are running a test node or a test network with fixed nodes.
Monitoring Peer Connections
debug_metrics JSON-RPC API method
to obtain information about peer connections.