The invention relates to the technical field of block chains, and provides a Nacos-based block
chain network service management method and
system, and the Nacos-based block
chain network service management method comprises a
server construction and configuration process and a
client construction and configuration process. The
server construction and configuration process comprises the following steps: loading
local configuration and creating a Nacos instance when a block chain
server is started, starting an RPC and a P2P port, registering the RPC and the P2P port to the Nacos with a
label, and constructing a P2P network; the
client construction and configuration process comprises the following steps that when a block chain
client is started,
local configuration is read, a Nacos instance is created, an RPC port is provided, and a grouping instance
list is created; rPC port balanced access is provided, sub-threads are created for real-time monitoring, and a grouping instance
list is updated. According to the method and the device, the block
chain network nodes and ports can be dynamically managed, real-time network joining of new nodes is supported, and automatic capacity expansion is realized; and the block chain network node
list can be updated in real time through a
health check function, so that the
high availability of the network is ensured.