Multi-node, service rapid networking method and device based on local area network

Through the automated creation and configuration of users and services of management nodes, the problems of complex manual operations and waste of resources in the multi-node server LAN are solved, and fast and accurate deployment of service nodes and networking are achieved.

CN114338384BActive Publication Date: 2024-11-01上海柯林布瑞信息技术有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111658055.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-11-01
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In a multi-node server LAN environment, the existing technology requires manual installation and configuration of each node, resulting in wasted human resources and time resources, and complex operations, prone to errors, and the service node deployment and networking cannot be completed quickly and accurately.

Method used

Through the management node, initializes the target project data based on the target configuration file, creates management users and work users, and synchronizes the target project data, automatically installs and configures project services, generates the target LAN, and reduces manual configuration steps.

Benefits of technology

It realizes rapid networking without manually configuring each node, saves manpower and time resources, and improves the efficiency and accuracy of service node deployment and networking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114338384B_ABST
    Figure CN114338384B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a multi-node, service rapid networking method and device based on a local area network. The method includes: initializing target project data based on target node data in a target configuration file; creating a management user on the management node based on management node data, and synchronizing target project data to the management user; creating a working user on the working node by the management node based on working node data and a secure shell protocol, and synchronizing target project data from the management user to the working user; installing and configuring the corresponding first project service in the management user and the working user based on the target configuration file and the target project service; adding the working user of the working node to the local area network formed by the management user of the management node based on the configured first project service, and generating a target local area network. The technical solution of the embodiment of the present invention saves a lot of resources and can efficiently and accurately complete the service node deployment and networking process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a multi-node, service rapid networking method and device based on a local area network. Background Art

[0002] With the rapid development of information technology, it has become a common working method to deploy multi-node servers in the LAN environment of hospitals, manufacturing, finance and other industries, and provide LAN internal services in the multi-node servers.

[0003] In the prior art, when deploying multi-node servers and networking various systems, applications or services, the staff needs to use offline installation packages to install basic components, applications, services and other components on each working node one by one, such as transferring the offline installation packages in the USB flash drive to each node respectively, installing the internal services of the local area network through manual operation, and completing the networking. However, when a large number of node servers need to be deployed in the local area network environment, it takes a lot of human resources and time resources for the staff to deploy each node separately; and the operation is complicated and prone to operational errors, which requires a high level of operational experience of the staff, and it is impossible to quickly and accurately complete the service node deployment process and networking process. Summary of the invention

[0004] The embodiment of the present invention provides a multi-node, service rapid networking method and device based on a local area network, so as to realize the creation of users and configuration of service operations on working nodes through a management node, without the need for staff to manually configure each node, thus saving a lot of human resources and time resources, and being able to efficiently and accurately complete the service node deployment and networking process.

[0005] In a first aspect, an embodiment of the present invention provides a multi-node, service rapid networking method based on a local area network, initializing target project data based on target node data in a target configuration file; wherein the target project data includes the target configuration file and the target project service, and the target node data is used to specify a local area network node in a target local area network to be created, including management node data and working node data;

[0006] Based on the management node data, create a management user on the management node, and synchronize the target project data to the management user;

[0007] Based on the working node data and the secure shell protocol, the management node creates a working user on the working node, and synchronizes the target project data from the management user to the working user;

[0008] Based on the target configuration file and the target project service, installing and configuring the corresponding first project service in the management user and the working user;

[0009] Based on the configured first project service, the working users of the working nodes are added to the local area network formed by the management users of the management node to generate the target local area network.

[0010] In a second aspect, an embodiment of the present invention further provides a multi-node, service rapid networking device based on a local area network, the device comprising:

[0011] An initialization module, used to initialize target project data based on target node data in a target configuration file; wherein the target project data includes the target configuration file and the target project service, and the target node data is used to specify a local area network node in a target local area network to be created, including management node data and working node data;

[0012] A management user creation module is used to create a management user on the management node based on the management node data, and synchronize the target project data to the management user;

[0013] A working user creation module is used to create a working user on the working node by the management node based on the working node data and the secure shell protocol, and synchronize the target project data from the management user to the working user;

[0014] A first project service configuration module is used to install and configure the corresponding first project service in the management user and the working user based on the target configuration file and the target project service;

[0015] A target LAN generation module is used to add the working users of the working node to the LAN formed by the management users of the management node based on the configured first project service to generate the target LAN.

[0016] The embodiment of the present invention provides a multi-node, service rapid networking method based on a local area network. Based on the target node data in the target configuration file, the target project data is initialized; based on the management node data, a management user is created on the management node, and the target project data is synchronized to the management user; based on the working node data and the secure shell protocol, the working node can be controlled by the management node, and the management node creates a working user on the working node, and the target project data is synchronized from the management user to the working user; based on the target configuration file and the target project service, the corresponding first project service is installed and configured in the management user and the working user; based on the configured first project service, the working user of the working node is added to the local area network formed by the management user of the management node to generate the target local area network. The embodiment of the present invention realizes the creation of users and configuration of services for the working node through the management node, without the need for the staff to manually configure each node, saving a lot of human resources and time resources, and can efficiently and accurately complete the service node deployment and networking process.

[0017] In addition, a multi-node, service rapid networking device based on a local area network provided by the present invention corresponds to the above method and has the same beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A flowchart of a method for rapid networking of multiple nodes and services based on a local area network provided by an embodiment of the present invention;

[0020] Figure 2 A deployment architecture diagram provided for an embodiment of the present invention;

[0021] Figure 3 A flowchart of another method for fast networking of multiple nodes and services based on a local area network provided by an embodiment of the present invention;

[0022] Figure 4 A structural diagram of a multi-node, service rapid networking device based on a local area network provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0024] It should also be noted that, for ease of description, only the part relevant to the present invention but not all content is shown in the accompanying drawings. It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processing or methods depicted as flow charts. Although the flow chart describes each operation (or step) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.

[0025] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0026] Embodiment 1

[0027] Figure 1 A flowchart of a multi-node, service rapid networking method based on a local area network provided in an embodiment of the present invention. The method can be executed by a multi-node, service rapid networking device based on a local area network, which can be implemented by software and / or hardware and can be configured in a terminal and / or server to implement the multi-node, service rapid networking method based on a local area network in an embodiment of the present invention.

[0028] like Figure 1 As shown, the method of this embodiment may specifically include:

[0029] S101. Initialize target project data based on target node data in a target configuration file.

[0030] In a specific implementation, the target project data includes a target configuration file and a target project service. The target configuration file is used to complete the installation and configuration operation of each node in the target LAN, including target node data. The target node data is used to specify the LAN node in the target LAN to be created, including management node data and working node data.

[0031] Specifically, the target configuration file in the target project data can be preloaded into the memory block, so as to facilitate reading the target node data in the target configuration file, which helps to improve the configuration speed. Further, the configuration data of the target project service in the target project data can be initialized according to the target node data recorded in the target configuration file.

[0032] Optionally, before initializing the target project data based on the target node data in the target configuration file, the process further includes: detecting the system user authority of the management node, and determining the installation path of the target project service based on the system user authority.

[0033] Exemplarily, the target configuration file includes at least one installation path, and the installation path is used to install and configure the target project service. In a specific implementation, different installation paths are assigned to management nodes with different system user permissions, thereby improving the security when configuring and using services and improving configuration efficiency.

[0034] S102. Based on the management node data, create a management user on the management node, and synchronize the target project data to the management user.

[0035] Specifically, the management node data includes the initial user name of the management user, the initial login password, and the corresponding information between the initial user name and the management node, etc. The corresponding management user can be created on the management node through the management node data. Exemplarily, the management user can be created in batch processing.

[0036] Further, the target project data includes management user data and work user data. After creating a management user, the corresponding management user can be logged in based on the initial login password, and the initialized target project data can be synchronized to the management user using a file synchronization instruction. Exemplarily, the file synchronization instruction can be an RSYNC instruction.

[0037] Furthermore, the sshpass tool can be used to perform non-interactive password verification on the management user, realizing password-free login to the management user, avoiding the need to frequently enter the initial user name and initial login password each time the management user is accessed or operated, thereby improving the configuration speed.

[0038] S103. Based on the working node data and the secure shell protocol, the management node creates a working user on the working node, and synchronizes the target project data from the management user to the working user.

[0039] In a specific implementation, the working node can be controlled on the management node based on the secure shell protocol; the working node data is sent to the working node, and the working node data includes the initial user name of the working user, the initial login password, and the corresponding information between the initial user name and the working node, etc. A working user is created on the working node based on the working node data, and the initialized target project data is synchronized to the working user using the file synchronization command.

[0040] Optionally, based on the working node data and the secure shell protocol, after the management node creates a working user on the working node, it also includes: generating a working login key required for logging in to the corresponding working user for the working node through a non-interactive password verification method; and logging in to the working user corresponding to the working node based on the working login key.

[0041] Specifically, when controlling a working node through the secure shell protocol, it is necessary to input the password of the working user. In the embodiment of the present invention, the working login key can be generated in advance by the sshpass tool in a non-interactive password authentication manner and stored. When it is necessary to log in to the working user corresponding to the working node, the stored working login key is input in advance to perform a remote login operation of the secure shell protocol.

[0042] It should be noted that the sshpass tool is a simple, lightweight command line tool that can provide non-interactive password authentication to the command prompt itself, and can execute automated pre-edited shell scripts for controlling the working nodes to perform networking operations through the cron task scheduler. Further, the working nodes are accessed using a TTY device to achieve the purpose of using one management node to control other working nodes in an offline LAN. Exemplarily, a TTY device is a terminal device composed of a virtual console, a serial port, and a pseudo terminal device.

[0043] Optionally, synchronizing the target project data from the management user to the working user includes: obtaining the working node data in the target configuration file; and distributing the target project data from the management user to the working users of the working nodes based on the working node data, the secure shell protocol and the file synchronization instructions.

[0044] Specifically, a connection can be established with the working node based on the secure shell protocol, and the node address, working user name and other information of the working node can be determined based on the working node data. The target project data can be distributed to the working users of the working node through file synchronization instructions and the determined node address, working user name and other information.

[0045] S104: Based on the target configuration file and the target project service, install and configure the corresponding first project service in the management user and the working user.

[0046] Exemplarily, the target project service includes a first project service for building a target local area network and a second project service for building a target service network to provide application services. For example, the first project service may be a basic service installation package for building a target local area network, and the second project service may be an application template file for providing application services.

[0047] Specifically, the corresponding first project service can be installed and configured for each management user and working user, so that the management user and the working user have the conditions to establish the target local area network. Exemplarily, the target configuration file may include a configuration information directory of the first project service, and the management node completes the installation configuration of the first project server by executing the management installation script in the configuration information directory. Further, the management node completes the installation of the first project service for the working user by controlling the working node to execute the work installation script in the configuration information directory. Exemplarily, the installation script can be a file in the **-init.sh format.

[0048] S105. Based on the configured first project service, add the working users of the working nodes to the local area network formed by the management users of the management nodes to generate a target local area network.

[0049] Optionally, based on the configured first project service, the working user of the working node is added to the local area network formed by the management user of the management node to generate a target local area network, including: based on the first project service configured by the management user, creating a networking authority token for forming the target local area network; synchronizing the networking authority token to the working user of the working node through a networking synchronization instruction; based on the first project service and the networking authority token configured by the working user, adding the working user to the local area network corresponding to the networking authority token to generate a target local area network.

[0050] In a specific implementation, the management user has the authority to establish a local area network. After logging in to the management user, a local area network can be established based on the first project service installed by the management user, and a networking authority token (Token) corresponding to the local area network can be created. The networking authority token is synchronized to the working user of the working node through the networking synchronization instruction. The working user can join the local area network corresponding to the networking authority token and set the node label of each node to complete the creation of the target local area network. The creation of the target local area network can solve the problem of cross-server communication, and the communication between the management node and the working node in the same target local area network is highly confidential, which can save communication resources.

[0051] Figure 2 A deployment architecture diagram provided for an embodiment of the present invention; Figure 2As shown, the target LAN may include a management node, and the address of the management node is "*.*.*.*1"; the target LAN also includes three working nodes, and the addresses of the working nodes may be "*.*.*.*2", "*.*.*.*3", and "*.*.*.*4" respectively. Each node can realize password-free login through the sshpass tool, and provide application container engine service, monitoring service and firewall service. Among them, the application container engine service is the first project service.

[0052] The embodiment of the present invention provides a multi-node, service rapid networking method based on a local area network. Based on the target node data in the target configuration file, the target project data is initialized; based on the management node data, a management user is created on the management node, and the target project data is synchronized to the management user; based on the working node data and the secure shell protocol, the working node can be controlled by the management node, and the management node creates a working user on the working node, and the target project data is synchronized from the management user to the working user; based on the target configuration file and the target project service, the corresponding first project service is installed and configured in the management user and the working user; based on the configured first project service, the working user of the working node is added to the local area network formed by the management user of the management node to generate the target local area network. The embodiment of the present invention realizes the creation of users and configuration of services for the working node through the management node, without the need for the staff to manually configure each node, saving a lot of human resources and time resources, and can efficiently and accurately complete the service node deployment and networking process.

[0053] Embodiment 2

[0054] Figure 3A flowchart of another multi-node, service rapid networking method based on a local area network provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. Optionally, after generating the target local area network, it also includes: loading the data of the second project service into the first project service, and installing and configuring the corresponding second project service in the management user and the working user based on the installation configuration information of the second project service in the target configuration file; based on the target local area network, adding the second project service of the management user and the second project service of the working user to the target local area network to generate the target service network. Optionally, before initializing the target project data based on the target node data in the target configuration file, it also includes: generating a visual operation control interface containing at least one operation process at the management node based on the target configuration file. Optionally, based on the configured first project service, adding the working user of the working node to the local area network formed by the management user of the management node, after generating the target local area network, it also includes: generating virtual domain name information and node names of the management node and the working node respectively; broadcasting the virtual domain name information and node names so that any management node and working node obtain all virtual domain name information and node names. The explanations of the terms that are the same as or corresponding to the above embodiments are not repeated here.

[0055] like Figure 3 As shown, the method of this embodiment may specifically include:

[0056] S201. Based on a target configuration file, generate a visual operation control interface including at least one operation process at a management node.

[0057] Specifically, the visual operation control interface includes the installation operation process and update operation process of each node and each service; it is used to guide user operations, obtain user input, and perform installation or update operations on each node and each service based on user input, as well as display the installation or update progress of each node and each service, so that users can monitor the installation and update status in real time.

[0058] For example, the visual operation control interface displays operations including clearing the screen, initializing project information, initializing middleware services, updating applications, restarting services, service details, service logs, and outputting system information to local files. Different operation processes can be formed based on each operation. The visual operation control interface also displays the operation process of installation steps, plug-in update steps, and application update steps. Users can use the visual operation control interface to follow the standard operation process to complete the multi-node, multi-service networking process more conveniently and efficiently.

[0059] S202: Initialize target project data based on target node data in the target configuration file.

[0060] S203. Based on the management node data, create a management user on the management node, and synchronize the target project data to the management user.

[0061] S204. Based on the working node data and the secure shell protocol, the management node creates a working user on the working node, and synchronizes the target project data from the management user to the working user.

[0062] S205: Based on the target configuration file and the target project service, install and configure the corresponding first project service in the management user and the working user.

[0063] S206. Based on the configured first project service, add the working users of the working nodes to the local area network formed by the management users of the management nodes to generate a target local area network.

[0064] S207: Load the data of the second project service into the first project service, and install and configure the corresponding second project service in the management user and the working user based on the installation configuration information of the second project service in the target configuration file.

[0065] After the target LAN is generated, the corresponding application services can be installed for management users and working users respectively according to the needs of project application service networking. Specifically, the data of the second project service can be loaded into the first project service at the management node; for example, the application template file is loaded into the configured basic service. Based on the secure shell protocol and in a non-interactive password authentication manner, the data of the second project service corresponding to the working user of the working node is loaded into the first project service.

[0066] Optionally, the data of the second project service is loaded into the first project service, and based on the installation configuration information of the second project service in the target configuration file, the corresponding second project service is installed and configured in the management user and the working user, including: the management node loads the data of the second project service in the management user into the first project service in the management user; based on the secure shell protocol and in accordance with non-interactive password verification, the management node controls the working node to load the data of the second project service in the working user into the first project service in the working user; each node installs and configures the corresponding second project service in the management user and the working user respectively based on the installation configuration information of the second project service in the target configuration file.

[0067] Specifically, the installation configuration information may be the installation sequence of the installation files of the second service project. Exemplarily, the management node and the working node read the installation sequence of the second service project through the first project service, and install the installation files corresponding to the second service project in sequence according to the installation sequence to complete the installation operation of the second service project.

[0068] S208. Based on the target local area network, the second project service of the management user and the second project service of the working user are added to the target local area network to generate a target service network.

[0069] Furthermore, the management user adds the installed second project service to the established target LAN; and based on the secure shell protocol, controls the working user of the working node in a non-interactive password authentication manner, adds the second project service installed and configured by the working user to the target LAN, and generates a target service network corresponding to the target LAN.

[0070] S209, respectively generating virtual domain name information and node names of the management node and the working node; broadcasting the virtual domain name information and node names so that any management node and working node can obtain all virtual domain name information and node names.

[0071] Specifically, communication between nodes can be achieved through virtual domain name information and node names. For example, the address of each node is a four-segment server address of "*.*.*.*", which is not convenient for users to communicate and access, nor is it convenient for ordinary users to read and understand. Virtual domain name information and node names can be generated for each node. For example, the virtual domain name information is "www.**.com" and the node name is "Node 1". The use of text node names improves the convenience of dissemination and reading and enhances the user experience.

[0072] The embodiment of the present invention realizes the rapid deployment and networking of multiple nodes on a distributed server, which is simple to operate, greatly reduces the technical pressure of operation and maintenance personnel, and saves deployment time; and displays the operation process and various operation information through a visual operation control interface, and encapsulates at least one rapid deployment installation networking logic and corresponding operation process through a target configuration file, which reduces the knowledge reserve and experience requirements of operation and maintenance personnel. Only one-click deployment is required to complete the installation, deployment and networking of multiple nodes and their multiple applications and services, which greatly reduces the requirements for operation and maintenance personnel; a management node is used to perform unified operations, and each working node is installed, deployed and networked in parallel, without the need to frequently switch servers to complete the deployment process, which greatly improves efficiency and reduces the error rate.

[0073] Embodiment 3

[0074] Figure 4A structural diagram of a multi-node, service rapid networking device based on a local area network provided in an embodiment of the present invention, the device is used to execute the multi-node, service rapid networking method based on a local area network provided in any of the above embodiments. The device and the multi-node, service rapid networking method based on a local area network in the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiment of the multi-node, service rapid networking device based on a local area network can refer to the embodiment of the multi-node, service rapid networking method based on a local area network. The device may specifically include:

[0075] The initialization module 10 is used to initialize the target project data based on the target node data in the target configuration file; wherein the target project data includes the target configuration file and the target project service, and the target node data is used to specify the local area network node in the target local area network to be created, including the management node data and the working node data;

[0076] A management user creation module 11 is used to create a management user on the management node based on the management node data, and synchronize the target project data to the management user;

[0077] A working user creation module 12 is used to create working users on working nodes by the management node based on working node data and a secure shell protocol, and synchronize target project data from the management user to the working user;

[0078] A first project service configuration module 13 is used to install and configure the corresponding first project service in the management user and the working user based on the target configuration file and the target project service;

[0079] The target LAN generating module 14 is used to add the working users of the working nodes to the LAN formed by the management users of the management nodes based on the configured first project service to generate the target LAN.

[0080] Based on any optional technical solution in the embodiment of the present invention, optionally, the target project service includes a first project service for establishing a target local area network, and a second project service for establishing a target service network to provide application services; the device also includes:

[0081] Generate a target service network module, which is used to load the data of the second project service into the first project service after generating the target local area network, and install and configure the corresponding second project service in the management user and the working user based on the installation configuration information of the second project service in the target configuration file; based on the target local area network, add the second project service of the management user and the second project service of the working user to the target local area network to generate the target service network.

[0082] Based on any optional technical solution in the embodiments of the present invention, optionally, generating a target service network module includes:

[0083] A loading service unit is used for the management node to load the data of the second project service in the management user into the first project service in the management user; based on the secure shell protocol and in a non-interactive password verification manner, the management node controls the working node to load the data of the second project service in the working user into the first project service in the working user; based on the installation configuration information of the second project service in the target configuration file, the corresponding second project service is installed and configured in the management user and the working user respectively.

[0084] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0085] The working user login module is used to generate the working login key required for logging in the corresponding working user on the working node through non-interactive password verification after the management node creates the working user on the working node based on the working node data and the secure shell protocol; based on the working login key, log in to the working user corresponding to the working node.

[0086] Based on any optional technical solution in the embodiment of the present invention, optionally, the creating work user module 12 includes:

[0087] The work node data acquisition unit is used to acquire the work node data in the target configuration file; based on the work node data, the secure shell protocol and the file synchronization instruction, the target project data is distributed from the management user to the work user of the work node.

[0088] Based on any optional technical solution in the embodiment of the present invention, optionally, generating a target local area network module 14 includes:

[0089] Generate a target local area network unit, which is used to create a networking authority token for establishing a target local area network based on the first project service configured by the management user; synchronize the networking authority token to the working user of the working node through the networking synchronization instruction; based on the first project service and the networking authority token configured by the working user, add the working user to the local area network corresponding to the networking authority token to generate the target local area network.

[0090] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0091] The user authority detection module is used to detect the system user authority of the management node before initializing the target project data based on the target node data in the target configuration file, and determine the installation path of the target project service based on the system user authority; wherein the target configuration file contains at least one installation path, and the installation path is used to install and configure the target project service.

[0092] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0093] The interface generation module is used to generate a visual operation control interface including at least one operation process on the management node based on the target configuration file before initializing the target project data based on the target node data in the target configuration file.

[0094] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0095] A module for generating a virtual domain name is used to add the working users of the working node to the local area network formed by the management users of the management node based on the configured first project service. After the target local area network is generated, the virtual domain name information and node names of the management node and the working node are generated respectively; the virtual domain name information and node names are broadcasted so that any management node and working node can obtain all virtual domain name information and node names.

[0096] The multi-node, service rapid networking device based on a local area network provided in an embodiment of the present invention can execute the following method:

[0097] Initialize target project data based on target node data in target configuration file; wherein target project data includes target configuration file and target project service, target node data is used to specify LAN node in target LAN to be created, including management node data and working node data; based on management node data, create management user on management node, and synchronize target project data to management user; based on working node data and secure shell protocol, create working user on working node by management node, and synchronize target project data from management user to working user; based on target configuration file and target project service, install and configure corresponding first project service in management user and working user; based on configured first project service, add working user of working node to LAN formed by management user of management node, and generate target LAN.

[0098] The embodiment of the present invention realizes the creation of users and configuration of service operations for working nodes through the management node, without the need for staff to manually configure each node, saving a lot of human resources and time resources, and can efficiently and accurately complete the service node deployment and networking process.

[0099] It is worth noting that in the above-mentioned embodiment of the multi-node, service rapid networking device based on a local area network, the various units and modules included are divided only according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific name of each functional unit is only for the convenience of distinguishing each other, and is not used to limit the scope of protection of the present invention.

[0100] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A multi-node, service rapid networking method based on a local area network, characterized in that: include: Initializing target project data based on target node data in the target configuration file; wherein the target project data includes the target configuration file and the target project service, and the target node data is used to specify the local area network node in the target local area network to be created, including management node data and working node data; Based on the management node data, a management user is created on the management node in a batch processing manner, and the target project data is synchronized to the management user; Before initializing the target project data based on the target node data in the target configuration file, the method further includes: detecting the system user authority of the management node, and determining the installation path of the target project service based on the system user authority, wherein different installation paths are allocated according to different system user authorities of the management node; Based on the working node data and the secure shell protocol, the management node creates a working user on the working node, and synchronizes the target project data from the management user to the working user; The step of synchronizing the target project data from the management user to the working user includes: obtaining the working node data in the target configuration file; distributing the target project data from the management user to the working user of the working node based on the working node data, the secure shell protocol and the file synchronization instruction; Based on the target configuration file and the target project service, installing and configuring the corresponding first project service in the management user and the working user; Based on the configured first project service, adding the working user of the working node to the local area network formed by the management user of the management node to generate the target local area network; the management user has the authority to form a local area network; The first project service based on the configuration, adding the working user of the working node to the local area network formed by the management user of the management node to generate the target local area network, includes: Based on the first project service configured by the management user, create a networking authority token for establishing the target local area network; Synchronize the networking authority token to the working user of the working node through a networking synchronization instruction; Based on the first project service and the networking authority token configured by the working user, adding the working user to the local area network corresponding to the networking authority token to generate the target local area network; The target project service includes the first project service for forming the target local area network and the second project service for forming the target service network to provide application services; after generating the target local area network, the method further includes: Loading the data of the second project service into the first project service, and installing and configuring the corresponding second project service in the management user and the working user based on the installation configuration information of the second project service in the target configuration file; Based on the target local area network, the second project service of the management user and the second project service of the working user are added to the target local area network to generate the target service network.

2. The method according to claim 1, characterized in that The step of loading the data of the second project service into the first project service, and installing and configuring the corresponding second project service in the management user and the working user based on the installation configuration information of the second project service in the target configuration file, includes: The management node loads the data of the second project service in the management user into the first project service in the management user; Based on the secure shell protocol and in a non-interactive password authentication manner, the management node controls the working node to load the data of the second project service in the working user into the first project service in the working user; Based on the installation configuration information of the second project service in the target configuration file, the corresponding second project service is installed and configured in the management user and the working user respectively.

3. The method according to claim 1, characterized in that: After the management node creates a working user on the working node based on the working node data and the secure shell protocol, the method further includes: Generate a work login key required for logging in a corresponding work user for the work node by means of non-interactive password authentication; Based on the working login key, log in the working user corresponding to the working node.

4. The method according to claim 1, characterized in that: Before initializing the target project data based on the target node data in the target configuration file, it also includes: Detect the system user authority of the management node, and determine the installation path of the target project service based on the system user authority; wherein the target configuration file includes at least one installation path, and the installation path is used to install and configure the target project service.

5. The method according to claim 1, characterized in that Before initializing the target project data based on the target node data in the target configuration file, the method further includes: Based on the target configuration file, a visual operation control interface including at least one operation process is generated at the management node.

6. The method according to claim 1, characterized in that In the configuration-based first project service, after adding the working user of the working node to the local area network formed by the management user of the management node to generate the target local area network, the method further includes: Generate virtual domain name information and node names of the management node and working node respectively; The virtual domain name information and the node name are broadcasted so that any management node and working node can obtain all the virtual domain name information and the node name.

7. A multi-node, service rapid networking device based on a local area network, characterized in that: include: An initialization module is used to initialize target project data based on target node data in a target configuration file; wherein the target project data includes the target configuration file and target project services, and the target node data is used to specify a local area network node in a target local area network to be created, including management node data and working node data; before initializing the target project data based on the target node data in the target configuration file, it also includes: detecting the system user authority of the management node, and determining the installation path of the target project service based on the system user authority, wherein different installation paths are allocated according to different system user authorities of the management node; A management user creation module is used to create a management user on the management node based on the management node data, and synchronize the target project data to the management user; A working user creation module is used to create working users on working nodes by the management node in a batch processing manner based on the working node data and the secure shell protocol, and synchronize the target project data from the management user to the working user; Create a working user module including: An acquisition unit for work node data is used to acquire work node data in a target configuration file; based on the work node data, the secure shell protocol and the file synchronization instruction, the target project data is distributed from the management user to the work user of the work node; A first project service configuration module is used to install and configure the corresponding first project service in the management user and the working user based on the target configuration file and the target project service; A module for generating a target local area network is used to add the working user of the working node to the local area network formed by the management user of the management node based on the configured first project service to generate the target local area network; the management user has the authority to form a local area network; the first project service based on the configuration adds the working user of the working node to the local area network formed by the management user of the management node to generate the target local area network, including: based on the first project service configured by the management user, creating a networking authority token for forming the target local area network; synchronizing the networking authority token to the working user of the working node through a networking synchronization instruction; based on the first project service configured by the working user and the networking authority token, adding the working user to the local area network corresponding to the networking authority token to generate the target local area network; The target project service includes a first project service for forming a target local area network and a second project service for forming a target service network to provide application services; the device also includes: Generate a target service network module, which is used to load the data of the second project service into the first project service after generating the target local area network, and install and configure the corresponding second project service in the management user and the working user based on the installation configuration information of the second project service in the target configuration file; based on the target local area network, add the second project service of the management user and the second project service of the working user to the target local area network to generate the target service network.

Citation Information

Patent Citations

  • Real-time message exchange platform and distributed cluster establishment method

    CN103475566A

  • Distributed management method, distributed management system and device

    CN110764882A

  • Node cluster management method and device, equipment and storage medium

    CN112799789A

  • Container type localization deployment method and system, equipment and storage medium

    CN113204410A

  • Automatic service deployment method and system and computer readable storage medium

    CN113721931A