Closed weiihann closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.40%. Comparing base (
4e6dcd7
) to head (3bb40da
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Closing this, additional flags are harder to maintain.
Description
This PR adds a new flag called
--instance
to initialize port numbers automatically based on the instance count. This flag affects the following ports:http-port
grpc-port
metrics-port
pprof-port
ws-port
Example
Each instance count will increment the default value of the respective ports by 10. For example:
The default value of each port is as follows:
grpc-port
= 6064http-port
= 6060metrics-port
= 9090pprof-port
= 6062ws-port
= 6061Command:
./juno --instance 2
Then the ports would have the following numbers:grpc-port
= 6074http-port
= 6070metrics-port
= 9100pprof-port
= 6072ws-port
= 6071Rationale
This feature is useful for initializing multiple instances of Juno nodes, without having to care for the port conflict issues.