WO2021226784A1 - 节点配置方法、装置、分布式系统及计算机可读介质 - Google Patents

节点配置方法、装置、分布式系统及计算机可读介质 Download PDF

Info

Publication number
WO2021226784A1
WO2021226784A1 PCT/CN2020/089589 CN2020089589W WO2021226784A1 WO 2021226784 A1 WO2021226784 A1 WO 2021226784A1 CN 2020089589 W CN2020089589 W CN 2020089589W WO 2021226784 A1 WO2021226784 A1 WO 2021226784A1
Authority
WO
WIPO (PCT)
Prior art keywords
node device
node
configuration
connection port
installation package
Prior art date
Application number
PCT/CN2020/089589
Other languages
English (en)
French (fr)
Inventor
许志鹏
赖延辉
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2020/089589 priority Critical patent/WO2021226784A1/zh
Priority to CN202080094856.3A priority patent/CN115004650B/zh
Publication of WO2021226784A1 publication Critical patent/WO2021226784A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • This application relates to the field of computer technology, and more specifically, to a node configuration method, device, distributed system, and computer-readable medium.
  • Distributed system (distr iados system) is a software system built on the network. Through the distributed system, a job can be divided into multiple tasks, and multiple tasks can be processed on different computer nodes at the same time, so that the job can be completed quickly and safely.
  • the distributed system includes multiple devices, and the multiple devices work together to provide external data storage or other business functions.
  • distributed systems such as cloud storage systems.
  • Cloud storage systems usually include servers, management nodes, storage nodes and other equipment.
  • This application proposes a node configuration method, device, distributed system, and computer-readable medium to improve the above-mentioned drawbacks.
  • an embodiment of the present application provides a node configuration method, which is applied to a master control device of a distributed system, the distributed system further includes at least one node device, and the method includes: detecting a connection port of the node device The working state of the connection port, wherein the connection port is used to realize the communication connection between the master control device and the node device; if the working state of the connection port is an available state, the communication with the node device is established Link; based on the communication link, send an installation package to the node device, the installation package including a configuration file of a specified program, and instruct the node device to configure the specified program to run the specified program according to the configuration file parameter.
  • an embodiment of the present application also provides a node configuration device, which is applied to a master control device of a distributed system, and the distributed system further includes at least one node device.
  • the node configuration device includes: a detection unit, a connection unit, and a processing unit.
  • the detection unit is configured to detect the working status of the connection port of the node device, wherein the connection port is used to implement a communication connection between the master control device and the node device.
  • the connection unit is configured to establish a communication link with the node device if the working state of the connection port is an available state.
  • the processing unit is configured to send an installation package to the node device based on the communication link, the installation package including a configuration file of a specified program, and instruct the node device to configure the node device to run the specified program according to the configuration file The specified parameters.
  • the embodiments of the present application also provide a distributed system, including: a master control device and at least one node device; the master control device is used to detect the working status of the connection port of the node device, wherein The connection port is used to realize the communication connection between the main control device and the node device; if the working state of the connection port is available, the communication link with the node device is established, and based on the The communication link sends an installation package to the node device, where the installation package includes a configuration file of a specified program.
  • the node device is configured to configure designated parameters for running the designated program according to the configuration file.
  • the embodiments of the present application also provide a computer-readable medium, the readable storage medium storing a program code executable by a processor, and when the program code is executed by the processor, the processor Perform the above method.
  • the configuration of the node device is uniformly configured by the master control device through an installation package, that is, the master control device sends the installation package to the node device,
  • the installation package includes a configuration file of the specified program, and the node device configures the specified parameters for running the specified program according to the configuration file, so as to avoid manual configuration of the node which may cause configuration errors or low efficiency.
  • the port status of the node device is also determined to avoid configuration failure due to the unavailability of the node device port when configuring the node device.
  • the detection The working status of the connection port of the node device, wherein the connection port is used to realize the communication connection between the master control device and the node device;
  • the communication link of the node device and based on the communication link, send an installation package to the node device.
  • Figure 1 shows a schematic diagram of a distributed system provided by an embodiment of the present application
  • FIG. 2 shows a method flowchart of a node configuration method provided by an embodiment of the present application
  • FIG. 3 shows a method flowchart of a node configuration method provided by another embodiment of the present application
  • FIG. 4 shows a method flowchart of a node configuration method provided by another embodiment of the present application.
  • Fig. 5 shows a block diagram of a node configuration device provided by an embodiment of the present application
  • Fig. 6 shows a block diagram of a node configuration device provided by another embodiment of the present application.
  • Fig. 7 shows a block diagram of a node configuration device provided by another embodiment of the present application.
  • FIG. 8 shows a schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 9 is a storage unit for storing or carrying program code for implementing the data synchronization method according to the embodiment of the present application according to an embodiment of the present application.
  • Distributed system (distr iados system) is a software system built on the network. Through the distributed system, a job can be divided into multiple tasks, and multiple tasks can be processed on different computer nodes at the same time, so that the job can be completed quickly and safely.
  • the distributed system includes multiple devices, and the multiple devices work together to provide external data storage or other business functions.
  • distributed systems such as cloud storage systems.
  • Cloud storage systems usually include servers, management nodes, storage nodes and other equipment.
  • Distributed systems can deploy large-scale computing tasks to multiple machines to run, thereby using the computing resources of multiple clusters to improve data processing capabilities, and therefore have been widely used.
  • each server In order to realize that each server can complete a business task together, it is necessary to configure each server for the business task, so that each server can configure the parameters required for running the corresponding process of the business.
  • the parameter configuration methods for each server are generally divided into manual configuration and automated deployment based on Jenkins or Ansible.
  • the manual configuration method is that the configuration personnel manually modify the configuration parameters of each server and manually start the process of each server for realizing the specified service or completing the specified task.
  • Jenkins is an open source continuous integration (CI) tool that provides a friendly interface. It originated from Hudson. It is mainly used to continuously and automatically build/test software projects and monitor the operation of external tasks. Jenkins is written in Java language and can be run in popular servlet containers such as Tomcat or independently.
  • the jenkins project can be published on different servers through the node configuration of jenkins (distribute the jenkins workspace, deploy the project to tomcat or jboss on different servers) , Which forms the distributed of jenkins.
  • the node server does not need to install jenkins (only need to run a slave node service), and the distribution of build events is performed by the master (jenkins main service).
  • Ansible is an open source configuration management tool that can be used to automate tasks and deploy applications to implement IT infrastructure.
  • Ansible can be used to automate daily tasks, such as initial configuration of servers, security baseline configuration, updating and patching systems, and installing software packages.
  • the Ansible architecture is relatively simple, only need to connect to the client through SSH to perform tasks.
  • Ansible is simple to deploy. You only need to deploy the Ansible environment on the host. The host does not need to do any operations.
  • the SSH protocol is used to manage the device by default. There are a large number of regular operation and maintenance modules that can achieve most of the daily operations.
  • the configuration is simple, It is powerful and extensible, supports API and custom modules, and can be easily extended through Python. Powerful configuration and state management can be customized through Playbooks. There is no need to install an agent on the client. When updating, only one update is required on the operating machine. Yes, it provides a powerful and operability Web management interface and REST API interface-AWX platform.
  • the embodiments of the present application provide a node configuration method and device, which can directly send the configuration file to each node service by the master control device to complete the configuration of each node service, simple operation and high accuracy ,efficient.
  • the provided node configuration method and device are applied to a distributed system.
  • the distributed system includes a main control device 10 and at least one node device 21.
  • at least one node device 21 constitutes a cluster 20, that is, at least one node device 21 is included in the cluster 20, and the master control device 10 is used to configure the parameters of multiple node devices 21 in the cluster 20 and to start each node device 21
  • the designated process the designated process can be a distributed task.
  • Figure 2 shows a node configuration method provided by an embodiment of the present application.
  • the method is applied to the above-mentioned distributed system.
  • the method is used to improve the efficiency of node configuration, improve the accuracy of node configuration, and reduce node configuration.
  • the execution subject of the method may be the master control device.
  • the method includes: S201 to S203.
  • connection port is used to implement a communication connection between the main control device and the node device.
  • connection port of the node device may be a port set in the node device for data and signaling transmission.
  • the connection port may be an I/O port or a service port.
  • the node device may be a node server, and the aforementioned cluster may be a server cluster.
  • the connection port may be a service port.
  • the service port can be divided into "TCP protocol port” and "UDP protocol port".
  • the TCP protocol port can include FTP port (default port number is 21), SSH port (default port number is 22), SMTP port (default port number is 25), HTTP port (default port number is 80), UDP port ( The default port number is 138) and HTTPS port (the default port number is 443), etc.
  • each different port of the node device is used to connect with other devices through the protocol corresponding to the port, and realize the corresponding function.
  • the SSH port is used to connect to other devices through the SSH protocol, and to connect to other devices remotely through the command line mode.
  • the working state of the connection port may include an available state and an unavailable state.
  • the available status is used to characterize that the connection port can be connected by the main control device and a communication link can be established with the main control device.
  • the unavailable state is used to indicate that the connection port cannot be connected by the main control device and cannot establish a communication link with the main control device.
  • the connection port whose working status is in the unavailable state may be that the connection port is closed or the connection port is connected by another device, resulting in the main control device being unable to connect to the connection port.
  • the available or unusable state of the connection port may depend on whether the connection port is occupied.
  • the implementation manner of detecting the working status of the connection port of the node device may be to determine whether the connection port of the node device is occupied; if it is occupied, it is determined that the working status of the connection port of the node device is not available. Use state; if it is not occupied, it is determined that the working state of the connection port of the node device is an unavailable state.
  • the master control device is used to manage and record the working status of the connection port of each node device.
  • each node can record the working status of the connection port of the node device, and feedback the recorded working status to the main control device, so that the main control device can record the connection of each node device
  • the working status of the port For example, whether the connection port is occupied.
  • the node device detects whether the connection port is occupied, and the node device sends the port record information to the main control device.
  • the port record information includes first information and second information. The first information is used to indicate that the connection port is occupied, and the second information is used to indicate that the connection port is not occupied.
  • the node device sends the port record information and also sends the device identification of the node device to the master control device, so that the node device can send its own device identification and its own port record information to the master control device for the master control device
  • the device identification of each node device and the working status corresponding to the device identification can be correspondingly recorded. As shown in Table 1 below:
  • the master control device configures each node device in a preset order. Before configuring the node device, first search for the working status corresponding to the device ID of the node device to be configured in the port record information corresponding to the device ID and the device ID In this way, the working state of the connection port of the node device corresponding to the device identifier can be determined, and thus, it can be determined whether the working state of the connection port of the node device is an available state or an unavailable state.
  • each node device reports the port record information to the master control device according to a preset trigger condition.
  • the preset trigger condition is that a preset node device satisfies a certain condition and executes the node device.
  • the conditions for the port record information to be reported to the master control device may be a preset reporting period, that is, when each period arrives according to the preset reporting period, the operation of reporting the port record information to the master control device is performed.
  • the preset trigger condition can also be that the port record information of the connection port of the node device changes, that is, the working state of the connection port changes.
  • the node The port record information of the device is reported to the main control device. Therefore, the master control device can record the working status of the connection port of each node device in real time, and update it in real time according to the actual working status of the connection port of each node device.
  • the master control device sends a detection request to the node device, and the detection request is used to instruct the node device to detect whether the connection port is occupied, and return the detection result to the master control device. That is, after obtaining the detection request, the node device detects whether the connection port is occupied, and returns the detection result to the master control device. Then, the master control device determines whether the connection port of the node device is occupied according to the acquired detection result.
  • the implementation manner for the node device to record whether the connection port is occupied can be referred to the foregoing description, which will not be repeated here.
  • the detection result may include the working status of the node device, that is, including occupied and unoccupied. Therefore, if the detection result is occupied, it is determined that the working state of the connection port of the node device is an unavailable state, and if the detection result is unoccupied, it is determined that the working state of the connection port of the node device is an unavailable state.
  • connection port If the working state of the connection port is an available state, establish a communication link with the node device.
  • the communication link refers to the network path through which data is transmitted to the opposite client.
  • the communication link is divided into two modes: direct transmission and transit transmission.
  • the direct connection transmission mode is that the user equipment and the user equipment directly perform point-to-point (P2P) data transmission, and there is no server node in the transmission path.
  • the relay transmission method is to add a relay server between two user devices, and the data stream needs to be transmitted to the opposite end through the server.
  • the success rate of direct link creation and transmission stability are limited, while the stability of the transit link is more reliable, so it is important to improve the transmission quality of the transit link.
  • the creation of a transfer link is realized between two terminals through a transfer server, and data interaction is realized according to the transfer connection.
  • the communication link may be a wireless network link or a cellular data network link.
  • a cellular data network also known as a mobile network
  • the network service area is divided into many cells (cells, that is, "cells"), and each cell is equipped with a base station, which is responsible for the communication and control of each mobile station in the cell.
  • the cellular data network can be a 5G (5th Generation, 5G) communication system (or called a New Radio (NR) system), a long-term evolution (LTE, Long Term Evolution) network, and a general packet radio service (GPRS, General Packet Radio). Service) system, Global System for Mobile communications (GSM) network or Universal Mobile Telecommunications System (UMTS), of course, can also be other cellular networks.
  • 5G 5th Generation, 5G
  • NR New Radio
  • LTE Long-term evolution
  • GPRS General Packet Radio
  • Service General Packet Radio
  • GSM Global System for Mobile communications
  • UMTS Universal Mobile Telecommunications System
  • the wireless network may be a wireless local area network (WLAN, Wireless Local Area Networks), and specifically may be a wireless fidelity (Wireless Fidelity, Wi-Fi).
  • WLAN Wireless Local Area Networks
  • Wi-Fi Wireless Fidelity
  • the communication link may be established based on the HTTP protocol, that is, if the working state of the connection port is an available state, the communication link with the node device is established based on the HTTP protocol.
  • HTTP HyperText Transfer Protocol
  • HTTP is an application layer protocol for distributed, collaborative, and hypermedia information systems.
  • HTTP is the basis of data communication on the World Wide Web.
  • HTTP is a client terminal (user) and server (website) request and response standard (TCP).
  • TCP request and response standard
  • the client initiates an HTTP request to the specified port on the server (the default port is 80).
  • You can call this client a user agent.
  • Some resources, such as HTML files and images, are stored on the responding server.
  • This response server can be called the origin server.
  • an HTTP client initiates a request to create a TCP connection to the server's designated port (the default is port 80).
  • the HTTP server listens for client requests on that port. Once the request is received, the server will return a status to the client, such as "HTTP/1.1 200 OK", and the returned content, such as the requested file, error message, or other information.
  • the designated port may be the connection port of the aforementioned node device.
  • S203 Based on the communication link, send an installation package to the node device, the installation package including a configuration file of a specified program, and instruct the node device to configure the specified parameters for running the specified program according to the configuration file .
  • the master control device may simultaneously send the installation package to the node device through the wireless network link and the cellular data network link. For example, if the master control device sends the installation package to the node device, the master control device can send a part of the installation package to the node device data through the wireless network link, and send the other part of the installation package to the node device through the cellular data network link.
  • Node device data so that when the quality of one of the wireless network link and the cellular data network link is poor, the part of the installation package that is sent to the node device through the poor link can be reduced, and the stability of data transmission can be improved It can improve the user experience, and the multiple links between the master control device and the node device adopt a relay transmission mode, which further improves the stability of data transmission.
  • the master control device can send the installation package to the node device through the wireless network link and the cellular data network link based on the importance information of the installation package and the communication quality of the two network links.
  • the installation package includes at least two sub-data.
  • the type of each sub-data is different.
  • different sub-data may be different data segments in the installation package.
  • the importance information of the installation package can be the importance of each sub-data, to obtain the communication quality of the wireless network link and the cellular data network link, through the link with better communication quality among the wireless network link and the cellular data network link,
  • the more important sub-data is sent to the node device, and the less important sub-data is sent to the node device through the link with poor communication quality in the wireless network link and the cellular data network link.
  • the higher degree of importance means that the degree of importance is greater than the specified degree of importance, and the higher degree of importance means that the degree of importance is less than or equal to the specified degree of importance, and the specified degree of importance may be a degree value set in advance according to requirements.
  • the degree of importance may be represented by an important value.
  • the importance value is a numerical value. The higher the importance value of the sub-data, the higher the importance of the sub-data.
  • a preset numerical range of important values (for example, 0-10) may be set for multiple sub-data with different important values, and the specified importance is taken from the value range, for example, it may be 6. .
  • sub-data 3 is Sub-data with a higher degree of importance can be sent by the master device to the node device through a wireless network link.
  • Sub-data 1 and sub-data 2 are sub-data with a lower degree of importance and can be sent by the master device via a cellular data network link. To the node device.
  • higher importance and lower importance may be the important states of the sub-data, that is, the important states include higher importance and lower importance.
  • the important state may be configured by the main control device for the sub-data, specifically, may be configured for multiple sub-data in the installation package based on the configuration operation of the user on the main control device.
  • the configuration operation may be configured according to the category of the sub-data.
  • the important state of the sub-data belonging to the first category is configured to have a higher degree of importance, and the important state of the sub-data of the second category is configured to The importance is low.
  • the first category and the second category can be set according to actual usage requirements, for example, the first category is a video stream, and the second category is an audio stream.
  • the communication quality is used to measure the data transmission capability of the link.
  • the data transmission capability may include the data transmission rate, the stability of the data transmission, and the like.
  • the first signal strength value of the wireless network link and the second signal strength value of the cellular data network link may be obtained, and the signal strength value of the wireless network link and the cellular data network link may be higher.
  • the link is the link with better communication quality, and the link with the lower signal strength value in the wireless network link and the cellular data network link is regarded as the link with poor communication quality.
  • the main control device can send the installation package to the node device through the wireless network link and the cellular data network link based on the data size of the sub-data in the installation package.
  • the data size of each sub-data is acquired, the sub-data whose data size is larger than the specified size is sent to the node device through the wireless network link, and the other sub-data is sent to the node device through the cellular data network link.
  • the sub-data whose data size is greater than the specified size is recorded as the first sub-data
  • the sub-data whose data size is less than or equal to the specified size is recorded as the second sub-data
  • the first sub-data is sent to the node through the wireless network link
  • the device sends the second sub-data to the node device through the cellular data network link.
  • the designated size may be a value set in advance according to requirements, which is not limited here. For example, in audio and video data, if the data size of the video stream is greater than the data size of the audio stream, the master control device sends the video stream to the node device through the wireless network link, and the master control device sends the audio stream to the node device through the cellular data network link. Node device.
  • the installation package includes the configuration file of the designated program, where the designated program can be an application program required for a distributed task jointly completed by each node device in a distributed system.
  • the application program corresponds to a designated process. Different node devices can run the designated process. Work together to complete a distributed task.
  • the node device After obtaining the configuration file, the node device can configure the specified parameters for running the specified program according to the configuration file.
  • the designated parameter may include application-related parameters.
  • the specified parameters may include service request timeout, thread pool and queue size, cache expiration time, database connection pool capacity, log output level, current limit fuse threshold, service security black and white list, etc.
  • the specified parameters may also include configuration parameters of the operating environment, for example, connection string configuration of databases, middleware, and other services.
  • the specified parameters may also include security configuration parameters, for example, user name, password, access token, license certificate, etc.
  • the master control device can pre-appoint the location of the configuration file in the installation package with the node device. After the power-saving device obtains the installation package, it will follow the pre-appointed location , That is, at the specified location, the configuration file is obtained from the installation package to complete the configuration of the specified parameters.
  • configuration parameters are set in the configuration file, and the node device may configure the specified parameters by replacing the specified parameters with the configuration parameters. For details, please refer to the subsequent embodiments.
  • each node device there may be multiple node devices, and the installation package received by each node device is sent by the master control device.
  • Figure 3 shows a node configuration method provided by another embodiment of the present application.
  • the method is applied to the above-mentioned distributed system.
  • the execution subject of the method may be the master control device.
  • the method includes: S301 to S304.
  • each node device can provide multiple service ports.
  • the master control device wants to configure the node device, it needs to first obtain the service port provided by the node device. Specifically, the service port provided by the node device is acquired, and the service port is used as the connection port.
  • the implementation of the service port can refer to the foregoing, and the service port provided by each node device is recorded in the master control device.
  • cluster information may be set inside the master control device, and the cluster information includes the device identifier of each node device and the port identifier of the service port corresponding to each device identifier.
  • the port identifier may be a port number, specifically, The port numbers of different devices may be the same or different, and the same port number can be distinguished by the corresponding device identification.
  • the cluster information may be manually entered into the master control device, or may be information of each node device collected by a collection component.
  • each node device is provided with a data reporting component, and the data reporting component is used to collect device information of each node device and report the device information to the collection component, so that the master control device can obtain cluster information.
  • the cluster information can be obtained by both manual entry and collection component collection, that is, the collection component collects the device information of each node device, and the device information can be manually entered or modified.
  • the working state of the service port of the node device is detected, that is, it is judged whether the working state of the service port of the node device is available, that is, it is judged whether the service port of the node device is available. Occupied, if it is occupied, the configuration of the node device will be discarded this time, and the operation of detecting the working status of the service port of the node device will be performed until the working status of the service port of the node device is in the available state, that is, not If occupied, execute S302.
  • the service port of the node device when it is determined that the service port of the node device is occupied, you can choose to wait for the port to be released, or you can send a switching request to the node device to instruct the node device to replace the service port, and change the service port of the changed service port.
  • the port identifier is sent to the main control device, and the main control device uses the replaced service port as a new service port and executes detection of the working status of the service port of the node device and subsequent operations.
  • the master control device and the node device can send the switching request and return the port identifier of the replaced service port through a broadcast message, or send the switching request to the node device through other intermediate devices.
  • the device sends the port identifier of the replaced service port to the main control device through the intermediate device.
  • the intermediate device may be a device preset by the node device, so that when a communication connection cannot be established between the master control device and the node device, the intermediate device communicates.
  • the intermediate device may have unstable factors, such as too many connected devices or high power consumption, the intermediate device can temporarily establish a data transmission link between the master device and the node device.
  • the master control device obtains the port identifier of the replaced service port, it can directly establish a connection through the service port.
  • the master control device includes port identifiers of multiple service ports of the node device, and each port identifier corresponds to a use priority, that is, the service port with the highest priority is the preferred service port, and the other ports are used as the service port.
  • a port is selected from the alternative ports as a new connection port until a connection port whose working status is available is found.
  • connection port If the working state of the connection port is an available state, obtain the node network address of the node device, and establish a communication link with the node device based on the node network address.
  • the node network address may be the IP address of the node device or other network addresses.
  • the cluster information also includes the node network address. Therefore, the node network address corresponding to the node device can be determined by searching the cluster information corresponding to the device identifier of the node device stored in the master control device, and then, A communication link with the node device is established based on the node network address.
  • an installation package is sent to the target service component of the node device.
  • the target service component may be a service for receiving commands from the master control device.
  • the target service component may be an agent service.
  • the target service component of the node device when the target service component of the node device is started, it indicates that the node device allows access to the master device, and the master device can access the node device through the target service component, and can control the node device through the target service component Perform the specified operation. For example, start a certain process, for example, start the process of the specified program.
  • a command corresponding to each operation is sent to the target service component.
  • the detection of the working status of the connection port of the node device may instruct the target service component of the node device to detect the connection port of the node device.
  • S304 Based on the communication link, send an installation package to the target service component of the node device, where the target service component is used to configure the specified parameters of the corresponding node device for running the specified program according to the configuration file .
  • the above-mentioned cluster information may also include device information of the node device.
  • the device information may include the node network address and node parameters of the node device. It can include operating parameters such as the memory space of the node.
  • the master control device sends the cluster information to the target service component of the node device, so that the target service component can obtain the relevant information of the node device.
  • the master control device processes the target service component that sends cluster information to the node device, and also sends a first connection request to the target service component of the node device.
  • the first connection request includes the master control network of the master device.
  • the target service component establishes a communication link according to the node network address of the node device and the master control network address of the master control device.
  • the target service component of the node device sends the second connection request to the main control device, and after the main control device agrees to the connection, it feeds back the consent indication information to the second connection request, so as to realize the establishment of the communication link.
  • the master control device After the communication link is established, the master control device sends the installation package to the target service component.
  • the installation package includes a configuration file and a configuration request.
  • the configuration request is used to instruct the target service component to perform a parameter configuration operation.
  • the parameter configuration operation may be based on
  • the node device corresponding to the configuration file configuration is used to run the specified parameters of the specified program.
  • the installation package further includes an execution file of the specified program and an installation request, and the installation request is used to instruct the node device to install the specified program according to the execution file and configure for running according to the configuration file.
  • the designated parameters of the designated program Specifically, the master control device sends the execution file and installation request of the specified program to the target service component through the installation package, and the target service component runs the execution file to install the specified program in the node device.
  • the main control device sends the instruction information and the installation package to the node device based on the communication link.
  • the indication information includes an identifier of a parameter that needs to be configured by the node device, and the indication information is used to instruct the node device to search for a configuration parameter corresponding to the identifier in the configuration file, and according to the configuration parameter Modify the designated parameter of the node device, where the designated parameter corresponds to the identifier.
  • the configuration file in the installation package sent by the master control device to each node device and the execution file of the specified program can be the same, that is, the parameters that need to be configured for all node devices are packaged in the installation package, and Each node device sets an instruction information, so that each node device can find the required configuration parameters in the installation package according to the instruction information.
  • the instruction information may include the device identification of the node device, and the configuration file in the installation package includes a plurality of configuration parameters, and each configuration parameter corresponds to one instruction information.
  • the master control device sends the installation information for each node device.
  • the instruction information corresponding to the package is different, that is, the corresponding instruction information is sent to each node device.
  • each node device looks up the configuration parameters corresponding to the instruction information in the installation package, and modifies the specified parameters of the node device. Is the configuration parameter. Therefore, the installation package sent by the master control device to each node device is the same, avoiding manual intervention and different installation packages sent to cause the configuration of the node device to be inaccurate.
  • the indication information includes an identifier of a parameter that needs to be configured by the node device.
  • the identifier is a placeholder, and the indication information is used to instruct the node device to modify the parameter in the placeholder to the configuration parameter.
  • the designated parameter of the node device corresponds to a placeholder
  • the placeholder can be set by yourself, such as ⁇ xxx ⁇ , or @xxxx@
  • the placeholder user is used as the identifier of the parameter in the node device
  • the placeholder can be
  • the placeholders for the designated parameters of the node equipment obtained in advance are stored in the cluster information in advance.
  • the master control device actively sends the installation package to the node device. For example, it may send the installation package to the node device after establishing a communication link with the node device, or it may be in the process of establishing a communication link with the node device. After the communication link, and when it is detected that the target service component on the node device is started, the installation package is sent to the node device.
  • the node device may actively send an acquisition request to the master control device, and the master control device sends the installation package to the node device based on the acquisition request.
  • the master control device acquires the acquisition request sent by the node device, and the acquisition request corresponds to a designated path; the installation package is acquired from the designated path and sent to the node device.
  • the master control device sends a designated path to the target service component of the node device.
  • the designated path may be a network address, and the network address may be an IP address. , It can also be a URL address.
  • the target service component of the node device sends an acquisition request to the main control device through the specified path, and the main control device sends the installation package to the node device.
  • the node device replaces the corresponding placeholders according to the configuration parameters in the configuration file, generates the configuration parameters of the node, and starts the process according to the configuration parameters.
  • Figure 4 shows a node configuration method provided by another embodiment of the present application.
  • the method is applied to the above-mentioned distributed system.
  • the method is used to improve the efficiency of node configuration, improve the accuracy of node configuration, and reduce node
  • the operational complexity of the configuration may be the execution subject of the method.
  • the execution subject of the method may be the master control device.
  • the method includes: S401 to S404.
  • connection port If the working state of the connection port is an available state, establish a communication link with the node device.
  • S403 Based on the communication link, send an installation package to the node device, the installation package including a configuration file of the specified program, and instruct the node device to configure the specified parameters for running the specified program according to the configuration file .
  • the master control device can also record the configuration of each node device, so as to be able to display the result of whether each node device is successfully configured. Specifically, in some embodiments, the master control device can actively poll the deployment progress of each node device on a regular basis, and when the deployment of each node is completed or the deployment fails, it will return corresponding information to the master control machine so that the operator can obtain The deployment status of the cluster. In other embodiments, each node device may actively feed back the configuration result to the main control device when it obtains the installation package and configures the specified parameters according to the installation package.
  • the implementation manner of detecting the configuration result of the node device may be to detect whether the successful configuration information sent by the node device is acquired within a specified time period, and if it is acquired, it is determined that the node device has been Successful configuration; if it is not obtained, it is determined that the node device is not successfully configured.
  • the successful configuration information is information sent after the node device determines that the specified parameter is successfully configured.
  • the successful configuration information is the information sent after the node device determines that the specified program is successfully installed and the specified parameters are successfully configured, that is, the successful configuration information It is the information sent after the node device is successfully configured.
  • the designated time period may be a preset time length, which may be set according to actual needs, for example, it may be ten minutes.
  • the implementation manner for the node device to determine that the configuration is successful may be to run the specified program after completing the configuration of the specified parameters. If it can run successfully, it is determined that the configuration is successful, thereby returning the successful configuration information to the master control device, and if it fails to run successfully The designated program may return failed configuration information or not return any information. Therefore, if the master control device does not receive successful configuration information within the specified time period, it is determined that the node device has not been successfully configured; otherwise, it is determined that the node device has been configured successfully. The configuration is successful, so that the configuration result is recorded, and when the query request is obtained, the configuration result can be fed back to the query end. It may also be that the main control device includes a display screen to obtain a query request input by the user from the main control device, and when the query request is obtained, the configuration result can be displayed on the display screen.
  • the master control device may also actively start the designated program of the node device, and the node device feeds back successful configuration information according to the designated program. Specifically, sending a startup instruction to the node device, where the startup instruction is used to instruct the node device to start the specified program; detecting whether the successful configuration information sent by the node device is acquired within a specified time period, wherein, The time starting point of the specified time period is the time point at which the start instruction is sent.
  • the master control device sends the start instruction to the target service component, and the target service component starts the specified program installed in the node device, and detects whether the specified program can be successfully started, specifically, when the specified program can be successfully started At that time, the specified process can exist in the system background of the node device. Therefore, if the specified process can be found, it can be determined that the specified program is successfully started, and then the successful configuration information is returned to the main control device.
  • the node device receives the installation package, if the successful configuration information is received within the specified time period, it can be determined that the node device is successfully configured; otherwise, it is determined that the configuration is unsuccessful.
  • the master control device periodically inquires about the deployment progress of the node device, specifically, sends an inquiry request to the node device, and the inquiry request is used to request the node device to return the configuration result; if the configuration result is If it is a successful configuration, it is determined that the node device has been successfully configured; if the configuration result is an unsuccessful configuration, it is determined that the node device has not been successfully configured.
  • FIG. 5 shows a structural block diagram of a node configuration device 500 provided by an embodiment of the present application.
  • the device may include a detection unit 501, a connection unit 502, and a processing unit 503.
  • the detection unit 501 is configured to detect the working status of the connection port of the node device, where the connection port is used to implement a communication connection between the master control device and the node device.
  • connection unit 502 is configured to establish a communication link with the node device if the working state of the connection port is an available state.
  • the processing unit 503 is configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program are configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program is configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program are configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • FIG. 6 shows a structural block diagram of a node configuration device 600 provided by an embodiment of the present application.
  • the device may include a detection unit 601, a connection unit 602, a judgment unit 603, and a processing unit 604.
  • the detection unit 601 is configured to detect the working status of the connection port of the node device, where the connection port is used to implement a communication connection between the master control device and the node device.
  • the detection unit 601 is also used to determine whether the connection port of the node device is occupied; if it is occupied, it is determined that the working state of the connection port of the node device is an unavailable state; if it is not occupied, it is determined that the connection port of the node device is unavailable; The working state of the connection port of the node device is an unavailable state.
  • the detection unit 601 is further configured to send a detection request to the node device, where the detection request is used to instruct the node device to detect whether the connection port is occupied, and to return the detection result to the master control device; Determine whether the connection port of the node device is occupied according to the acquired detection result.
  • connection unit 602 is configured to establish a communication link with the node device if the working state of the connection port is an available state.
  • the connecting unit 602 is further configured to obtain the node network address of the node device; and establish a communication link with the node device based on the node network address. Specifically, the communication link with the node device is established based on the HTTP protocol.
  • connection unit 602 is further configured to obtain a service port provided by the node device, and use the service port as the connection port.
  • the judging unit 603 is configured to detect whether the target service component on the node device is started; if it is started, jump to the processing unit 604.
  • the processing unit 604 is configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program are configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program is configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program are configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • processing unit 604 is further configured to send an installation package to a target service component of the node device based on the communication link, and the target service component is used to configure the corresponding node device for operation according to the configuration file.
  • the designated parameters of the designated program are further configured to send an installation package to a target service component of the node device based on the communication link, and the target service component is used to configure the corresponding node device for operation according to the configuration file.
  • the processing unit 604 is further configured to send the instruction information and the installation package to the node device based on the communication link, where the instruction information includes the identifier of the parameter that needs to be configured by the node device, and The indication information is used to instruct the node device to search for the configuration parameter corresponding to the identifier in the configuration file, and modify the designated parameter of the node device according to the configuration parameter, and the designated parameter corresponds to the identifier.
  • processing unit 604 is further configured to obtain an acquisition request sent by the node device, where the acquisition request corresponds to a designated path; the installation package is acquired from the designated path and sent to the node device.
  • the identifier is a placeholder
  • the indication information is used to instruct the node device to modify the parameter in the placeholder to the configuration parameter.
  • FIG. 7 shows a structural block diagram of a node configuration device 700 provided by an embodiment of the present application.
  • the device may include a detection unit 701, a connection unit 702, a processing unit 703, and a statistics unit 704.
  • the detection unit 701 is configured to detect the working status of the connection port of the node device, where the connection port is used to implement a communication connection between the master control device and the node device.
  • connection unit 702 is configured to establish a communication link with the node device if the working state of the connection port is an available state.
  • the processing unit 703 is configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program are configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program is configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the designated parameters of the designated program are configured to send an installation package to the node device based on the communication link, where the installation package includes an execution file and a configuration file of a specified program, and instructs the node device to configure for operation according to the configuration file.
  • the statistics unit 704 is configured to detect the configuration result of the node device, and record the configuration result.
  • the statistics unit 704 is further configured to detect whether the successful configuration information sent by the node device is acquired within a specified time period, where the successful configuration information is the node device determining that the specified program is successfully installed and the specified parameters Information sent after successful configuration; if it is obtained, it is determined that the node device has been successfully configured; if it is not obtained, it is determined that the node device is not successfully configured. Wherein, the successful configuration information is generated when the node device successfully runs the designated program.
  • the statistics unit 704 is further configured to send a start instruction to the node device, where the start instruction is used to instruct the node device to start the specified program; and to detect whether the data sent by the node device is obtained within a specified time period.
  • the successful configuration information wherein the time starting point of the specified time period is the time point at which the start instruction is sent.
  • the statistics unit 704 is further configured to send an inquiry request to the node device, the inquiry request is used to request the node device to return a configuration result; if the configuration result is a successful configuration, it is determined that the node device has succeeded Configuration; if the configuration result is an unsuccessful configuration, it is determined that the node device is not successfully configured.
  • each node device there are multiple node devices, and the installation package received by each node device is sent by the master control device.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, an e-book, a computer, or a server.
  • the electronic device 100 may be the above-mentioned main control device.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs may be stored in the memory 120 and configured to be configured by One or more processors 110 execute, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the electronic device 100 may adopt at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PDA Programmable Logic Array
  • the processor 110 may be integrated with one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc.
  • the storage data area can also store data (such as phone book, audio and video data, chat record data) created by the electronic device 100 during use.
  • FIG. 9 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 900 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 900 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 900 has storage space for the program code 910 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • the program code 910 may be compressed in a suitable form, for example.
  • the configuration of the node device is uniformly configured by the main control device through the installation package, that is, the main control device sends the node to the node.
  • the device sends an installation package, the installation package includes a configuration file of the specified program, and the node device configures the specified parameters for running the specified program according to the configuration file, so as to avoid manual configuration of the node, which may cause configuration errors or excessive efficiency. Low.
  • the port status of the node device is also determined to avoid configuration failure due to the unavailability of the node device port when configuring the node device.
  • the detection The working status of the connection port of the node device, wherein the connection port is used to realize the communication connection between the master control device and the node device;
  • the communication link of the node device and based on the communication link, send an installation package to the node device.
  • the embodiment of the application can realize the automatic deployment of the distributed system, save the energy and time of the deployment personnel, reduce the repetitive work, and the automatic deployment method makes the entire deployment process more accurate and avoids unnecessary manual intervention. mistake. At the same time, the dependence on other software is small, and the requirements for deployment personnel are low. Because the configuration parameters of each service node in the cluster are uniformly configured by the main control machine, manual modification of configuration parameters is avoided, which reduces manual intervention and can avoid errors to a certain extent.
  • the embodiment of the application is based on the http protocol, does not need to rely on Jenkins or Ansible software, and has low requirements for deployment personnel.
  • the deployment process of the method is simple, the deployment result is accurate, and the deployment efficiency of the distributed system is greatly improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

本申请实施例公开了一种节点配置方法、装置、分布式系统及计算机可读介质,涉及计算机技术领域,应用于分布式系统的主控设备,分布式系统还包括至少一个节点设备,该方法包括:检测节点设备的连接端口的工作状态,其中,连接端口用于实现主控设备与节点设备之间的通信连接;若连接端口的工作状态为可用状态,则建立与节点设备的通信链路;基于通信链路,向节点设备发送安装包,安装包包括指定程序的配置文件,指示节点设备根据配置文件配置用于运行指定程序的指定参数。因此,能够避免人工的方式对节点的配置而导致配置出错或者效率太低,避免在对节点设备配置的时候,由于节点设备的端口无法使用而导致配置失败。

Description

节点配置方法、装置、分布式系统及计算机可读介质 技术领域
本申请涉及计算机技术领域,更具体地,涉及一种节点配置方法、装置、分布式系统及计算机可读介质。
背景技术
分布式系统(distr ibuted system)是建立在网络之上的软件系统。通过分布式系统可以将一个作业分成多个任务,并在不同的计算机节点上同时处理多个任务,从而快速、安全地完成作业。分布式系统中包括多台设备,该多台设备协同工作,共同对外提供数据存储或其他业务功能。分布式系统有多种类型,比如云存储系统,云存储系统中通常包含服务器、管理节点、存储节点等设备。
但是,目前的各个节点服务器,需要人工对各节点服务器记进行配置,不仅容易出现配置错误,而且效率低下。
发明内容
本申请提出了一种节点配置方法、装置、分布式系统及计算机可读介质,以改善上述缺陷。
第一方面,本申请实施例提供了一种节点配置方法,应用于分布式系统的主控设备,所述分布式系统还包括至少一个节点设备,该方法包括:检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接;若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路;基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
第二方面,本申请实施例还提供了一种节点配置装置,应用于分布式系统的主控设备,所述分布式系统还包括至少一个节点设备。所述节点配置装置包括:检测单元、连接单元和处理单元。检测单元,用于检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接。连接单元,用于若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路。处理单元,用于基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
第三方面,本申请实施例还提供了一种分布式系统,包括:主控设备和至少一个节点设备;所述主控设备用于检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接;若所述连接端口的 工作状态为可用状态,则建立与所述节点设备的通信链路,并基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的配置文件。所述节点设备用于根据所述配置文件配置用于运行所述指定程序的指定参数。
第四方面,本申请实施例还提供了一种计算机可读介质,所述可读存储介质存储有处理器可执行的程序代码,所述程序代码被所述处理器执行时使所述处理器执行上述方法。
本申请提供的方案节点配置方法、装置、分布式系统及计算机可读介质,对节点设备的配置由主控设备通过安装包的方式统一配置,即主控设备向所述节点设备发送安装包,所述安装包包括指定程序的配置文件,节点设备根据所述配置文件配置用于运行所述指定程序的指定参数,避免人工的方式对节点的配置而导致配置出错或者效率太低。另外,在主控设备向节点设备发送安装包之前,还确定节点设备的端口的状态,避免在对节点设备配置的时候,由于节点设备的端口无法使用而导致配置失败,具体地,检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接;若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路,并基于所述通信链路,向所述节点设备发送安装包。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例提供的分布式系统的示意图;
图2示出了本申请一实施例提供的节点配置方法的方法流程图;
图3示出了本申请另一实施例提供的节点配置方法的方法流程图;
图4示出了本申请又一实施例提供的节点配置方法的方法流程图;
图5示出了本申请一实施例提供的节点配置装置的模块框图;
图6示出了本申请另一实施例提供的节点配置装置的模块框图;
图7示出了本申请又一实施例提供的节点配置装置的模块框图;
图8示出了本申请实施例提供的电子设备的示意图;
图9是本申请实施例的用于保存或者携带实现根据本申请实施例的数据同步方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
分布式系统(distr ibuted system)是建立在网络之上的软件系统。通过分布式系统可以将一个作业分成多个任务,并在不同的计算机节点上同时处理多个任务,从而快速、安全地完成作业。分布式系统中包括多台设备,该多台设备协同工作,共同对外提供数据存储或其他业务功能。分布式系统有多种类型,比如云存储系统,云存储系统中通常包含服务器、管理节点、存储节点等设备。
分布式系统可以将大型计算任务部署到多台机器上运行,从而利用多台集群的计算资源提高数据的处理能力,因此得到了广泛的应用。为了实现各个服务器共同完成一个 业务任务,则需要针对该业务任务对各个服务器进行配置,以使各个服务器能够配置运行该业务对应的进程时所需要的参数。
目前,对各个服务器的参数配置的方式一般分为人工配置和基于Jenkins或者Ansible的自动化部署。其中,人工配置的方式为由配置人员手动修改各个服务器的配置参数并且手动启动各个服务器的用于实现指定业务或完成指定任务的进程。
Jenkins是一个开源的、提供友好操作界面的持续集成(CI)工具,起源于Hudson,主要用于持续、自动的构建/测试软件项目、监控外部任务的运行。Jenkins用Java语言编写,可在Tomcat等流行的servlet容器中运行,也可独立运行。当分布式系统包括多台服务器时,并且配置了tomcat或jboss集群服务,可通过jenkins的节点配置,将jenkins项目发布在不同服务器上(分布jenkins工作空间,部署项目到不同服务器的tomcat或jboss),这就形成了jenkins的分布式。节点服务器不需要安装jenkins(只需要运行一个slave节点服务),构建事件的分发由master端(jenkins主服务)来执行。
Ansible是一个开源配置管理工具,可以使用它来自动化任务,部署应用程序实现IT基础架构。Ansible可以用来自动化日常任务,比如,服务器的初始化配置、安全基线配置、更新和打补丁系统,安装软件包等。Ansible架构相对比较简单,仅需通过SSH连接客户机执行任务即可。Ansible部署简单,只需在主控端部署Ansible环境,被控端无需做任何操作,默认使用SSH协议对设备进行管理,有大量常规运维操作模块,可实现日常绝大部分操作,配置简单、功能强大、扩展性强,支持API及自定义模块,可通过Python轻松扩展,通过Playbooks来定制强大的配置、状态管理,无需在客户端安装agent,更新时,只需在操作机上进行一次更新即可,提供一个功能强大、操作性强的Web管理界面和REST API接口——AWX平台。
然而,发明人在研究中发现,通过人工方式部署各个服务器,效率低,且在修改配置文件时,易出错,因为人工方式部署各个服务器的参数,会导致不同的人在配置服务器的参数时可能由于人工操作的误差而导致参数配置不准确,容易出错。而利用Jenkins或者Ansible进行部署,需要安装Jenkins或者Ansible软件,依赖性大,且需要熟悉软件使用流程或者熟悉相应软件的语法,对部署人员的要求较高,花费的时间较长。
因此,为了改善上述缺陷,本申请实施例提供了一种节点配置方法和装置,能够由主控设备直接将配置文件发送至各个节点服务,完成对各个节点服务的配置,操作简单并且准确性高、效率高。
于本申请实施例中,所提供的节点配置方法和装置应用于分布式系统。下面先介绍本申请实施例提供的分布式系统。如图1所示,图1示出了本申请实施例提供的分布式系统。该分布式系统包括主控设备10和至少一个节点设备21。其中,至少一个节点设备21构成集群20,即在集群20内包括至少一个节点设备21,而主控设备10用于对集群20内的多个节点设备21进行参数配置以及启动各个节点设备21的指定进程,该指定进程可以对一个分布式任务。
请参阅图2,图2输出了本申请一实施例提供的节点配置方法,该方法应用于上述的分布式系统,该方法用于提高节点配置的效率,提高节点配置的准确性和降低节点配置的操作复杂度。于本申请实施例中,该方法的执行主体可以是主控设备,具体地,该方法包括:S201至S203。
S201:检测所述节点设备的连接端口的工作状态。
其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接。
其中,节点设备的连接端口可以是设置在节点设别内的用于数据和信令传输的端口,例如,该连接端口可以是I/O端口或者服务端口,具体地,于本申请实施例中,该 节点设备可以是节点服务器,则上述的集群可以是服务器集群。
作为一种实施方式,该连接端口可以是服务端口。具体地,该服务端口可以分为"TCP协议端口"和"UDP协议端口"两种。该TCP协议端口又可以包括FTP端口(默认端口号为21)、SSH端口(默认端口号为22)、SMTP端口(默认端口号为25)、HTTP端口(默认端口号为80)、UDP端口(默认端口号为138)以及HTTPS端口(默认端口号为443)等。其中,节点设备的各个不同的端口用于与其他的设备通过端口对应的协议连接,并且实现相应的功能。例如,SSH端口用于通过SSH协议与其他设备连接,并且通过命令行模式远程连接其他设备。
作为一种实施方式,该连接端口的工作状态可以包括可用状态和不可用状态。其中,可用状态用于表征该连接端口能够被主控设备连接,并且能够与主控设备之间建立通信链路。不可用状态用于表征该连接端口不能够被主控设备连接,并且不能够与主控设备之间建立通信链路。具体地,工作状态为不可用状态的连接端口可以是该连接端口被关闭或者该连接端口被其他的设备连接,而导致主控设备无法连接到该连接端口。
作为一种实施方式,该连接端口的可用或可不用状态可以取决于该连接端口是否被占用。具体地,检测所述节点设备的连接端口的工作状态的实施方式可以是,判断所述节点设备的连接端口是否被占用;若被占用,则确定所述节点设备的连接端口的工作状态为不可用状态;若未被占用,则确定所述节点设备的连接端口的工作状态为不可用状态。
在一些实施例中,主控设备用于管理和记录每个节点设备的连接端口的工作状态。作为一种实施方式,可以是每个节点设别对该节点设备的连接端口的工作状态记录,并且将所记录的工作状态反馈至主控设备,以便主控设备能够记录每个节点设备的连接端口的工作状态。例如,该连接端口是否被占用。例如,节点设备检测连接端口是否被占用,且节点设备发送端口记录信息发送至主控设备。其中,该端口记录信息包括第一信息和第二信息,该第一信息用于指示该连接端口被占用,第二信息用于指示该连接端口未被占用。作为一种实施方式,节点设备发送端口记录信息还将节点设备的设备标识发送至主控设备,从而节点设备能够将自身的设备标识以及自身的端口记录信息发送至主控设备,以便主控设备能够将每个节点设备的设备标识和设备标识对应的工作状态对应记录。如下表1所示:
设备标识 工作状态 详情
设备1 不可用状态 被占用
设备2 不可用状态 被关闭
设备3 可用状态  
因此,主控设备按照预设顺序配置每个节点设备,在配置该节点设备之前,先在该设备标识和设备标识对应的端口记录信息中,查找所要配置的节点设备的设备标识对应的工作状态,从而能够确定该设备标识对应的节点设备的连接端口的工作状态,由此,就能够确定该节点设备的连接端口的工作状态为可用状态还是不可用状态。
在一些实施例中,每个节点设备根据预设触发条件将端口记录信息上报至主控设备,具体地,该出预设触发条件是预先设定的节点设备满足一定条件下执行将该节点设备的端口记录信息上报至主控设备的条件。例如,该预设触发条件可以是预设上报周期,即按照该预设上报周期在每个周期到来的时候,执行将端口记录信息上报至主控设备的操作。另外,该预设触发条件还可以是节点设备的连接端口的端口记录信息发生变化,即连接端口的工作状态发生变化,因此,在节点设备的连接端口的工作状态发生变化的时候,将该节点设备的端口记录信息上报至主控设备。从而,主控设备能够实时记录每个节点设备的连接端口的工作状态,并且根据各节点设备的连接端口的实际工作状态实 时更新。
作为另一种实施方式,主控设备发送探测请求至节点设备,所述探测请求用于指示所述节点设备检测所述连接端口是否被占用,并将检测结果返回至所述主控设备。即节点设备在获取到探测请求之后,检测所述连接端口是否被占用,并将检测结果返回至所述主控设备。然后,主控设备根据所获取的检测结果确定所述节点设备的连接端口是否被占用。
其中,在一些实施例中,节点设备记录连接端口是否被占用的实施方式可以参考前述描述,在此不再赘述。其中,该检测结果可以包括节点设备的工作状态,即包括被占用和未被占用。从而,若检测结果为被占用,确定所述节点设备的连接端口的工作状态为不可用状态,若检测结果为未被占用,则确定所述节点设备的连接端口的工作状态为不可用状态。
因此,在为节点设备配置参数之前,先确定节点设备的连接端口的工作状态,避免因为节点设备的连接端口被占用,而导致主控设备和节点设备之间无法建立通信连接而导致无法成功对节点设备配置。
S202:若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路。
其中,通信链路是指数据传输到对端客户端所经过的网络路径。根据数据传输的途径的不同,通信链路分为直连传输和中转传输两种方式。直连传输方式为用户设备与用户设备直接进行点对点的(point to point,P2P)数据传输,传输途径中没有服务器节点。中转传输方式是在两个用户设备之间加入中转服务器,数据流需要通过服务器传输到对端。直连链路创建成功率和传输稳定性受限,而中转链路的稳定性更加可靠,所以提升中转链路的传输质量至关重要。于本申请实施例中,两个终端之间通过中转服务器实现中转链路的创建,并根据该中转连输实现数据交互。
于本申请实施例中,该通信链路可以是无线网络链路,也可以是蜂窝数据网络链路。其中,蜂窝数据网络(Cellular network),又称移动网络(mobile network)是一种移动通信硬件架构。具体地,网络服务区被划分成许多小区(cell,也就是“蜂窝”),每个小区设置一个基站,该基站负责本小区各个移动站的联络与控制。
蜂窝数据网络可以是5G(5th Generation,5G)通信系统(或称为新空口(New Radio,NR)系统)、长期演进(LTE,Long Term Evolution)网络、通用分组无线服务(GPRS,General Packet Radio Service)系统、全球移动通信(GSM,Global System for Mobile communications)网络或通用移动通信网络(UMTS,Universal Mobile Telecommunications System),当然也可以是其它蜂窝网络。
其中,无线网络可以是无线局域网(WLAN,Wireless Local Area Networks),具体可以是无线保真(WirelessFidel ity,Wi-Fi)。
于本申请实施例中,该通信链路可以是基于HTTP协议建立的,即若所述连接端口的工作状态为可用状态,则基于HTTP协议建立与所述节点设备的通信链路。
超文本传输协议(HyperText Transfer Protocol,HTTP)是一种用于分布式、协作式和超媒体信息系统的应用层协议。HTTP是万维网的数据通信的基础。HTTP是一个客户端终端(用户)和服务器端(网站)请求和应答的标准(TCP)。通过使用网页浏览器、网络爬虫或者其它的工具,客户端发起一个HTTP请求到服务器上指定端口(默认端口为80)。可以称这个客户端为用户代理程序(user agent)。应答的服务器上存储着一些资源,比如HTML文件和图像。可以称这个应答服务器为源服务器(origin server)。在用户代理和源服务器中间可能存在多个“中间层”,比如代理服务器、网关或者隧道(tunnel)。
通常,由HTTP客户端发起一个请求,创建一个到服务器指定端口(默认是80端口) 的TCP连接。HTTP服务器则在那个端口监听客户端的请求。一旦收到请求,服务器会向客户端返回一个状态,比如"HTTP/1.1 200 OK",以及返回的内容,如请求的文件、错误消息、或者其它信息。其中,该指定端口(默认是80端口)就可以是上述的节点设备的连接端口。
S203:基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
于本申请实施例中,主控设备可以同时通过无线网络链路和蜂窝数据网络链路将安装包发送至节点设备。例如,主控设备将安装包发送至节点设备,则主控设备可以将安装包的一部分子通过无线网络链路发送至节点设备数据,而将安装包的另一部分通过蜂窝数据网络链路发送至节点设备数据,从而在无线网络链路和蜂窝数据网络链路中的一个链路质量较差的时候,能够减少安装包中通过较差的链路发送至节点设备的部分,提高数据传输的稳定性,能够提高用户体验度,并且,主控设备和节点设备的多条链路采用中转传输的方式,进一步提高了数据传输的稳定性。
作为一种实施方式,主控设备能够基于安装包的重要性信息和两个网路链路的通信质量,通过无线网络链路和蜂窝数据网络链路将安装包向节点设备发送。
具体地,安装包包括至少两个子数据。作为一种实施方式,每个子数据的类型不同。作为另一种实施方式,不同子数据可以是该安装包内的不同的数据段。
安装包的重要性信息可以是每个子数据的重要程度,获取无线网络链路和蜂窝数据网络链路的通信质量,通过无线网络链路和蜂窝数据网络链路中通信质量较好的链路,将重要程度较高的子数据发送至节点设备,通过无线网络链路和蜂窝数据网络链路中通信质量较差的链路,将重要程度较低的子数据发送至节点设备。其中,重要程度较高是指重要程度大于指定重要度,重要程度较高是指重要程度小于或等于指定重要度,指定重要度可以是预先根据需求而设定的程度值。
在一些实施例中,重要程度可以通过重要值来表示,该重要值为一个数值,子数据的重要值越高,则该子数据的重要程度越高。作为一种实施方式,可以将预先设定重要值的数值范围(例如,0-10)为多个子数据设置不同的重要值,该指定重要度取自该取值范围内,例如,可以是6。假设安装包内包括子数据1、子数据2和子数据3,且子数据1、子数据2和子数据3的重要程度分别为2、5和8,且指定重要度为6,则子数据3为重要程度较高的子数据,可以被主控设备通过无线网络链路发送至节点设备,子数据1和子数据2为重要程度较低的子数据,可以被主控设备通过蜂窝数据网络链路发送至节点设备。
在另一些实施例中,重要程度较高和重要程度较低可以是子数据的重要状态,即重要状态包括重要程度较高和重要程度较低。该重要状态可以是主控设备为该子数据而配置的,具体地,可以是基于用户在主控设备的配置操作,为安装包内的多个子数据而配置的。作为一种实施方式,该配置操作可以是根据子数据的类别而配置的,将属于第一类别的子数据的重要状态配置为重要程度较高,将第二类别的子数据的重要状态配置为重要程度较低。其中,第一类别和第二类别可以根据实际使用需求而设定,例如,第一类别为视频流,第二类别为音频流。
其中,通信质量用于衡量链路的数据传输能力,具体地,该数据传输能力可以包括数据传输速率、数据传输的稳定性等。作为一种实施方式,可以是获取无线网络链路的第一信号强度值和蜂窝数据网络链路的第二信号强度值,将无线网络链路和蜂窝数据网络链路中信号强度值较高的链路作为通信质量较好的链路,将无线网络链路和蜂窝数据网络链路中信号强度值较低的链路作为通信质量较差的链路。
作为另一种实施方式,主控设备能够基于安装包内的子数据的数据大小,通过无线网络链路和蜂窝数据网络链路将所述安装包向节点设备发送。
具体地,获取每个子数据的数据大小,将数据大小大于指定大小的子数据通过无线网络链路发送至节点设备,将其他的子数据通过蜂窝数据网络链路发送至节点设备。
具体地,将数据大小大于指定大小的子数据记为第一子数据,将数据大小小于或等于指定大小的子数据记为第二子数据,将第一子数据通过无线网络链路发送至节点设备,将第二子数据通过蜂窝数据网络链路发送至节点设备。其中,指定大小可以是预先根据需求而设定的数值,在此不做限定。例如,音视频数据中,视频流的数据大小大于音频流的数据大小,则主控设备通过无线网络链路将视频流发送至节点设备,主控设备通过蜂窝数据网络链路将音频流发送至节点设备。
安装包包括指定程序的配置文件,其中,该指定程序可以是分布式系统内各个节点设备共同完成的分布式任务所需要的应用程序,该应用程序对应指定进程,不同的节点设备运行指定进程能够共同完成一个分布式的任务。
节点设备在获取到配置文件之后,能够根据该配置文件配置用于运行所述指定程序的指定参数。
其中,该指定参数可以包括与应用相关的参数。例如,该指定参数可以包括服务请求超时,线程池和队列的大小,缓存过期时间,数据库连接池的容量,日志输出级别,限流熔断阀值,服务安全黑白名单等。
另外,该指定参数还可以包括运行环境的配置参数,例如,数据库、中间件和其它服务的连接字符串配置。该指定参数还可以包括安全配置的参数,例如,用户名,密码,访问令牌,许可证书等。
具体地,该配置文件包含在安装包内的指定位置处,则主控设备可以事先与节点设备约定配置文件在安装包内的位置,节电设备在获取到安装包之后,根据预先约定的位置,即指定位置,由安装包内获取到配置文件,从而完成对指定参数的配置。具体地,该配置文件内设置有配置参数,节点设备对指定参数的配置的方式可以是将指定参数替换为配置参数,具体地,请参考后续实施例。
另外,节点设备可以为多个,每个所述节点设备接收的安装包均有所述主控设备发送。
请参阅图3,图3输出了本申请另一实施例提供的节点配置方法,该方法应用于上述的分布式系统,该方法用于提高节点配置的效率,提高节点配置的准确性和降低节点配置的操作复杂度。于本申请实施例中,该方法的执行主体可以是主控设备,具体地,该方法包括:S301至S304。
S301:检测所述节点设备的连接端口的工作状态。
于本申请实施例中,每个节点设备所能提供的服务端口包括多个,则在主控设备欲为节点设备配置的时候,需要先获取该节点设备所提供的服务端口。具体地,获取所述节点设备提供的服务端口,将所述服务端口作为所述连接端口。
其中,该服务端口的实施方式可以参考前述,则主控设备内记录有每个节点设备所提供的服务端口。具体地,可以是主控设备内部设置有集群信息,该集群信息内包括每个节点设备的设备标识和每个设备标识对应的服务端口的端口标识,该端口标识可以是端口号,具体地,不同的设备的端口号可能相同也可能不同,而相同的端口号可以通过所对应的设备标识区分。
作为一种实施方式,该集群信息可以是人工录入该主控设备内的,也可以是通过收集组件收集的各个节点设备的信息。在一些实施例中,每个节点设备内设置有数据上报组件,该数据上报组件用于收集每个节点设备的设备信息,将该设备信息上报至收集组 件,从而主控设备能够得到集群信息。作为另一种实施方式,可以同时采用人工录入和收集组件收集的方式得到集群信息,即收集组件收集每个节点设备的设备信息,人工又可以录入设备信息或者修改设备信息。
在通过集群信息得到节点设备的服务端口之后,检测所述节点设备的服务端口的工作状态,即判断该节点设备的服务端口的工作状态是否为可用状态,也即判断该节点设备的服务端口是否被占用,如果被占用,则放弃本次对该节点设备的配置,并返回执行检测所述节点设备的服务端口的工作状态的操作,直至该节点设备的服务端口工作状态为可用状态,即未被占用,则执行S302。
作为一种实施方式,在判定该节点设备的服务端口被占用时,可以选择等待该端口的释放,也可以发送切换请求至节点设备,指示节点设备更换服务端口,并将更换后的服务端口的端口标识发送至主控设备,主控设备将该更换后的服务端口作为新的服务端口并执行检测所述节点设备的服务端口的工作状态以及后续操作。具体地,主控设备和节点设备之间可以通过广播消息的方式发送该切换请求和返回该更换后的服务端口的端口标识,也可以通过其他的中间设备将该切换请求发送至节点设备,节点设备通过该中间设备将更换后的服务端口的端口标识发送至主控设备。其中,该中间设备可以是节点设备预先设定的设备,以便主控设备与节点设备之间无法建立通信连接的时候,通过该中间设备通信。但是,考虑到中间设备可能存在不稳定因素,例如,所连接的设备过多或者功耗较高等因素,该中间设备可以暂时建立起该主控设备和节点设备之间的数据传输链路,在主控设备获取到更换后的服务端口的端口标识的时候,可以直接通过该服务端口建立连接。
作为另一种实施方式,主控设备内包括节点设备的多个服务端口的端口标识,且每个端口标识对应一个使用优先级,即优先级最高的作为首选的服务端口,而其他的端口作为备选的端口,则在所确定要使用的服务端口被占用之后,由备选的端口内选择一个端口,作为新的连接端口,直至找到工作状态为可用状态的连接端口。
S302:若所述连接端口的工作状态为可用状态,则获取所述节点设备的节点网络地址,基于所述节点网路地址建立与所述节点设备的通信链路。
其中,节点网络地址可以是节点设备的IP地址或者其他的网络地址。作为一种实施方式,该集群信息还包括节点网络地址,因此,通过查找主控设备内存储的与该节点设备的设备标识对应的集群信息,能够确定该节点设备对应的节点网络地址,然后,基于该节点网路地址建立与所述节点设备的通信链路。
S303:检测所述节点设备上的所述目标服务组件是否被启动。
如果被启动,则基于所述通信链路,向所述节点设备的目标服务组件发送安装包。
其中,目标服务组件可以是一种用于接收主控设备的命令的服务,例如,该目标服务组件可以是Agent服务。
作为一种实施方式,在节点设备的目标服务组件启动,表征该节点设备允许主控设备的访问,则主控设备能够通过该目标服务组件访问节点设备,并且能够通过该目标服务组件控制节点设备执行指定操作。例如,启动某个进程,例如,启动该指定程序的进程。
于本申请实施例中,主控设备对节点设备的操作,都会将每个操作对应的命令发送至目标服务组件。例如,对节点设备的连接端口的工作状态的检测,可以指示节点设备的目标服务组件对该节点设备的连接端口检测。
S304:基于所述通信链路,向所述节点设备的目标服务组件发送安装包,所述目标服务组件用于根据所述配置文件配置所对应的节点设备用于运行所述指定程序的指定参数。
作为一种实施方式,上述的集群信息除了包括节点设备的服务端口的端口标识之后,还可以包括节点设备的设备信息,该设备信息可以包括节点设备的节点网络地址和节点参数等,该节点参数可以包括节点的内存空间等运行参数。
主控设备将集群信息发送至节点设备的目标服务组件,以便目标服务组件能够获取到节点设备的相关信息。
作为一种实施方式,主控设备处理将集群信息发送至节点设备的目标服务组件,还发送第一连接请求至节点设备的目标服务组件,该第一连接请求内包括主控设备的主控网络地址,目标服务组件根据节点设备的节点网络地址和主控设备的主控网络地址建立通信链路。具体地,节点设备的目标服务组件发送第二连接请求至主控设备,主控设备同意连接之后,反馈同意指示信息至第二连接请求,以实现通信链路的建立。
通信链路建立之后,主控设备将安装包发送至目标服务组件,该安装包内包括配置文件和配置请求,该配置请求用于指示目标服务组件执行参数配置操作,该参数配置操作可以是根据所述配置文件配置所对应的节点设备用于运行所述指定程序的指定参数。
作为一种实施方式,该安装包还包括指定程序的执行文件和安装请求,该安装请求用于指示所述节点设备根据所述执行文件安装所述指定程序以及根据所述配置文件配置用于运行所述指定程序的指定参数。具体地,主控设备将指定程序的执行文件和安装请求通过安装包发送至目标服务组件,目标服务组件运行该执行文件,以便将指定程序在节点设备内安装。
作为一种实施方式,主控设备基于所述通信链路,将所述指示信息和所述安装包发送至所述节点设备。
其中,所述指示信息包括需所述节点设备配置的参数的标识,所述指示信息用于指示所述节点设备由所述配置文件内查找与所述标识对应的配置参数,根据所述配置参数修改所述节点设备的指定参数,所述指定参数与所述标识对应。
作为一种实施方式,主控设备发送给每个节点设备的安装包内的配置文件和指定程序的执行文件可以是相同的,即将所有节点设备需要配置的参数均打包在安装包内,并且为每个节点设备设置一个指示信息,使得每个节点设备都能够根据该指示信息在安装包内查找到所需配置的参数。
作为一种实施方式,该指示信息可以包括节点设备的设备标识,则安装包内的配置文件包括多个配置参数,每个配置参数对应一个指示信息,主控设备为每个节点设备发送的安装包对应的指示信息不同,即为每个节点设备发送对应的指示信息,每个节点设备根据接收到的指示信息,在安装包内查找该指示信息对应的配置参数,将节点设备的指定参数修改为配置参数。因此,主控设备发送至每个节点设备的安装包是相同的,避免人工干预以及发送的安装包不同而导致对节点设备的配置不够准确。
作为一种实施方式,该指示信息包括需所述节点设备配置的参数的标识。其中,所述标识为占位符,所述指示信息用于指示所述节点设备将所述占位符内的参数修改为所述配置参数。
所述节点设备的指定参数对应有占位符,占位符可以自己设定,比如{xxx},或者@xxxx@,该占位符用户作为节点设备内的参数的标识,该占位符可以预先获取的节点设备的指定参数的占位符,并预先存储在集群信息内。
在一些实施方式中,主控设备主动将安装包发送至节点设备,例如,可以是在建立与节点设备的通信链路之后,将安装包发送至节点设备,也可以是在建立与节点设备的通信链路之后,且在检测所述节点设备上的所述目标服务组件被启动的时候,将安装包发送至节点设备。
在另一些实施例中,可以是节点设备主动发送获取请求至主控设备,主控设备基 于该获取请求将安装包发送至节点设备。具体地,主控设备获取所述节点设备发送的获取请求,所述获取请求对应有指定路径;由所述指定路径内获取所述安装包,并发送至所述节点设备。
作为一种实施方式,在主控设备和节点设备建立通信链路之后,主控设备将指定路径发送至节点设备的目标服务组件,该指定路径可以是一个网络地址,该网络地址可以是IP地址,也可以是URL地址,节点设备的目标服务组件通过该指定路径发送一个获取请求至主控设备,主控设备将安装包发送至节点设备。节点设备根据配置文件内的配置参数替换相应的占位符,生成该节点的配置参数,从而根据配置参数启动进程。
请参阅图4,图4输出了本申请又一实施例提供的节点配置方法,该方法应用于上述的分布式系统,该方法用于提高节点配置的效率,提高节点配置的准确性和降低节点配置的操作复杂度。于本申请实施例中,该方法的执行主体可以是主控设备,具体地,该方法包括:S401至S404。
S401:检测所述节点设备的连接端口的工作状态。
S402:若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路。
S403:基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
S404:检测所述节点设备的配置结果,并记录所述配置结果。
作为一种实施方式,主控设备还能够记录每个节点设备的配置情况,以便能够将每个节点设备是否成功被配置的结果展示。具体地,在一些实施例中,主控设备可以主动定期轮询每个节点设备的部署进度,当各节点部署完成或者部署失败时都会返回相应的信息给主控机器,从而让操作人员获取到集群的部署状态。在另一些实施例中,可以是每个节点设备在获取到安装包,根据安装包配置指定参数的时候,将配置结果主动反馈至主控设备。
作为一种实施方式,检测所述节点设备的配置结果的实施方式可以是,检测在指定时间段内是否获取到所述节点设备发送的成功配置信息,若获取到,则判定所述节点设备已成功配置;若未获取到,则判定所述节点设备未成功配置。
其中,所述成功配置信息为所述节点设备判定所述指定参数成功配置之后发送的信息。作为一种实施方式,该安装包还包括指定程序的执行文件时,成功配置信息为所述节点设备判定所述指定程序成功安装且所述指定参数成功配置之后发送的信息,即该成功配置信息为节点设备在成功配置之后发送的信息。其中,指定时间段可以是预先设定的时间长度,可以根据实际需求而设定,例如,可以是十分钟。
节点设备确定配置成功的实施方式可以是,在完成指定参数的配置之后,运行该指定程序,如果能够成功运行,在确定配置成功,从而返回成功配置信息至主控设备,而如果未能够成功运行该指定程序,在可以返回失败配置信息,也可以不返回任何信息,从而主控设备在指定时间长度内未接收到成功配置信息,就判定节点设备未成功配置,否则,判定所述节点设备已成功配置,从而将该配置结果记录,在获取到查询请求的时候,能够将该配置结果反馈给查询端。还可以是,主控设备包括显示屏,获取用户输入主控设备的查询请求,在获取到查询请求的时候,能够将该配置结果在显示屏上显示。
作为一种实施方式,还可以是主控设备主动启动该节点设备的指定程序,该节点设备根据该指定程序反馈成功配置信息。具体地,发送启动指令至所述节点设备,所述启动指令用于指示所述节点设备启动所述指定程序;检测在指定时间段内是否获取 到所述节点设备发送的成功配置信息,其中,所述指定时间段的时间起点为发送启动指令的时间点。
作为一种实施方式,主控设备将启动指令发送至目标服务组件,目标服务组件将节点设备内安装的指定程序启动,并且检测指定程序是否能够成功启动,具体地,在指定程序能够成功启动的时候,能够在节点设备的系统后台内存在指定进程,因此,如果能够查找到指定进程,就可以判定指定程序成功启动,然后,返回成功配置信息至主控设备。
因此,在节点设备接收到安装包的时刻起,如果在指定时间段内收到了成功配置信息,就可以判定该节点设备成功配置,否则,判定未成功配置。
作为另一种实施方式,主控设备定期询问节点设备的部署进度,具体地,发送询问请求至所述节点设备,所述询问请求用于请求所述节点设备返回配置结果;若所述配置结果为成功配置,则判定所述节点设备已成功配置;若所述配置结果为未成功配置,则判定所述节点设备未成功配置。
请参阅图5,其示出了本申请实施例提供的一种节点配置装置500的结构框图,该装置可以包括:检测单元501、连接单元502和处理单元503。
检测单元501,用于检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接。
连接单元502,用于若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路。
处理单元503,用于基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的执行文件和配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
请参阅图6,其示出了本申请实施例提供的一种节点配置装置600的结构框图,该装置可以包括:检测单元601、连接单元602、判断单元603和处理单元604。
检测单元601,用于检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接。
进一步地,检测单元601还用于判断所述节点设备的连接端口是否被占用;若被占用,则确定所述节点设备的连接端口的工作状态为不可用状态;若未被占用,则确定所述节点设备的连接端口的工作状态为不可用状态。
进一步地,检测单元601还用于发送探测请求至所述节点设备,所述探测请求用于指示所述节点设备检测所述连接端口是否被占用,并将检测结果返回至所述主控设备;根据所获取的检测结果确定所述节点设备的连接端口是否被占用。
连接单元602,用于若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路。
进一步地,连接单元602还用于获取所述节点设备的节点网络地址;基于所述节点网路地址建立与所述节点设备的通信链路。具体地,基于HTTP协议建立与所述节点设备的通信链路。
进一步地,连接单元602还用于获取所述节点设备提供的服务端口,将所述服务端口作为所述连接端口。
判断单元603,用于检测所述节点设备上的所述目标服务组件是否被启动;如果被启动,则跳转至处理单元604。
处理单元604,用于基于所述通信链路,向所述节点设备发送安装包,所述安装包 包括指定程序的执行文件和配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
进一步地,处理单元604还用于基于所述通信链路,向所述节点设备的目标服务组件发送安装包,所述目标服务组件用于根据所述配置文件配置所对应的节点设备用于运行所述指定程序的指定参数。
进一步地,处理单元604还用于基于所述通信链路,将所述指示信息和所述安装包发送至所述节点设备,所述指示信息包括需所述节点设备配置的参数的标识,所述指示信息用于指示所述节点设备由所述配置文件内查找与所述标识对应的配置参数,根据所述配置参数修改所述节点设备的指定参数,所述指定参数与所述标识对应。
进一步地,处理单元604还用于获取所述节点设备发送的获取请求,所述获取请求对应有指定路径;由所述指定路径内获取所述安装包,并发送至所述节点设备。
其中,所述标识为占位符,所述指示信息用于指示所述节点设备将所述占位符内的参数修改为所述配置参数。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
请参阅图7,其示出了本申请实施例提供的一种节点配置装置700的结构框图,该装置可以包括:检测单元701、连接单元702、处理单元703和统计单元704。
检测单元701,用于检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接。
连接单元702,用于若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路。
处理单元703,用于基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的执行文件和配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
统计单元704,用于检测所述节点设备的配置结果,并记录所述配置结果。
进一步地,统计单元704还用于检测在指定时间段内是否获取到所述节点设备发送的成功配置信息,所述成功配置信息为所述节点设备判定所述指定程序成功安装且所述指定参数成功配置之后发送的信息;若获取到,则判定所述节点设备已成功配置;若未获取到,则判定所述节点设备未成功配置。其中,所述成功配置信息为所述节点设备在成功运行所述指定程序时产生的。
进一步地,统计单元704还用于发送启动指令至所述节点设备,所述启动指令用于指示所述节点设备启动所述指定程序;检测在指定时间段内是否获取到所述节点设备发送的成功配置信息,其中,所述指定时间段的时间起点为发送启动指令的时间点。
进一步地,统计单元704还用于发送询问请求至所述节点设备,所述询问请求用于请求所述节点设备返回配置结果;若所述配置结果为成功配置,则判定所述节点设备已成功配置;若所述配置结果为未成功配置,则判定所述节点设备未成功配置。
其中,所述节点设备为多个,每个所述节点设备接收的安装包均有所述主控设备发送。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模 块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参考图8,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、电子书、计算机、服务器等能够运行应用程序的电子设备。于本申请实施例中,电子设备100可以是上述主控设备。
本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
请参考图9,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质900中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质900可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质900包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质900具有执行上述方法中的任何方法步骤的程序代码910的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码910可以例如以适当形式进行压缩。
综上所述,本申请提供的方案节点配置方法、装置、分布式系统及计算机可读介质,对节点设备的配置由主控设备通过安装包的方式统一配置,即主控设备向所述节点设备发送安装包,所述安装包包括指定程序的配置文件,节点设备根据所述配置文件配置用于运行所述指定程序的指定参数,避免人工的方式对节点的配置而导致配置出错或者效率太低。另外,在主控设备向节点设备发送安装包之前,还确定节点设备的端口的状态,避免在对节点设备配置的时候,由于节点设备的端口无法使用而导致配置失败,具体地,检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接;若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路,并基于所述通信链路,向所述节点设备发送安装包。
本申请实施例,可以实现分布式系统的自动化部署,节省了部署人员的精力与时间, 减少了重复工作,且该自动化部署方法使得整个部署过程变得更加准确,避免因为人工干预而产生不必要的错误。同时,对其他软件的依赖性小,对部署人员的要求较低。因为集群各服务节点的配置参数通过主控机器进行统一配置,避免人工修改配置参数,这样减少了人工干预,能一定程度上避免出错。
本申请实施例基于http协议,不需要依赖Jenkins或者Ansible软件,对部署人员的要求较低。且该方法的部署过程简单,部署结果准确,大大提高了分布式系统的部署效率。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种节点配置方法,其特征在于,应用于分布式系统的主控设备,所述分布式系统还包括至少一个节点设备,所述方法包括:
    检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接;
    若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路;
    基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
  2. 根据权利要求1所述的方法,其特征在于,所述检测所述节点设备的连接端口的工作状态,包括:
    判断所述节点设备的连接端口是否被占用;
    若被占用,则确定所述节点设备的连接端口的工作状态为不可用状态;
    若未被占用,则确定所述节点设备的连接端口的工作状态为不可用状态。
  3. 根据权利要求2所述的方法,其特征在于,所述判断所述节点设备的连接端口是否占用,包括:
    发送探测请求至所述节点设备,所述探测请求用于指示所述节点设备检测所述连接端口是否被占用,并将检测结果返回至所述主控设备;
    根据所获取的检测结果确定所述节点设备的连接端口是否被占用。
  4. 根据权利要求1所述的方法,其特征在于,所述节点设备包括目标服务组件,所述基于所述通信链路,向所述节点设备发送安装包,包括:
    基于所述通信链路,向所述节点设备的目标服务组件发送安装包,所述目标服务组件用于根据所述配置文件配置所对应的节点设备用于运行所述指定程序的指定参数。
  5. 根据权利要求4所述的方法,其特征在于,所述基于所述通信链路,向所述节点设备的目标服务组件发送安装包之前,还包括:
    检测所述节点设备上的所述目标服务组件是否被启动;
    如果被启动,则基于所述通信链路,向所述节点设备的目标服务组件发送安装包。
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述建立与所述节点设备的通信链路,包括:
    获取所述节点设备的节点网络地址;
    基于所述节点网路地址建立与所述节点设备的通信链路。
  7. 根据权利要求6所述的方法,其特征在于,所述检测所述节点设备的连接端口的工作状态之前,还包括:
    获取所述节点设备提供的服务端口,将所述服务端口作为所述连接端口。
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述基于所述通信链路,向所述节点设备发送安装包,包括:
    基于所述通信链路,将所述指示信息和所述安装包发送至所述节点设备,所述指示信息包括需所述节点设备配置的参数的标识,所述指示信息用于指示所述节点设备由所述配置文件内查找与所述标识对应的配置参数,根据所述配置参数修改所述节点设备的指定参数,所述指定参数与所述标识对应。
  9. 根据权利要求8所述的方法,其特征在于,所述标识为占位符,所述指示信息用于指示所述节点设备将所述占位符内的参数修改为所述配置参数。
  10. 根据权利要求8所述的方法,其特征在于,所述基于所述通信链路,将所述安装包发送至所述节点设备,包括:
    获取所述节点设备发送的获取请求,所述获取请求对应有指定路径;
    由所述指定路径内获取所述安装包,并发送至所述节点设备。
  11. 根据权利要求1-10任一所述的方法,其特征在于,所述基于所述通信链路,向所述节点设备发送安装包之后,还包括:
    检测所述节点设备的配置结果,并记录所述配置结果。
  12. 根据权利要求11所述的方法,其特征在于,所述检测所述节点设备的配置结果,包括:
    检测在指定时间段内是否获取到所述节点设备发送的成功配置信息,所述成功配置信息为所述节点设备判定所述指定参数成功配置之后发送的信息;
    若获取到,则判定所述节点设备已成功配置;
    若未获取到,则判定所述节点设备未成功配置。
  13. 根据权利要求12所述的方法,其特征在于,所述成功配置信息为所述节点设备在成功运行所述指定程序时产生的。
  14. 根据权利要求13所述的方法,其特征在于,检测在指定时间段内是否获取到所述节点设备发送的成功配置信息,包括:
    发送启动指令至所述节点设备,所述启动指令用于指示所述节点设备启动所述指定程序;
    检测在指定时间段内是否获取到所述节点设备发送的成功配置信息,其中,所述指定时间段的时间起点为发送启动指令的时间点。
  15. 根据权利要求11所述的方法,其特征在于,所述检测所述节点设备的配置结果,包括:
    发送询问请求至所述节点设备,所述询问请求用于请求所述节点设备返回配置结果;
    若所述配置结果为成功配置,则判定所述节点设备已成功配置;
    若所述配置结果为未成功配置,则判定所述节点设备未成功配置。
  16. 根据权利要求1-15所述的方法,其特征在于,所述节点设备为多个,每个所述节点设备接收的安装包均有所述主控设备发送。
  17. 根据权利要求1-16所述的方法,其特征在于,建立与所述节点设备的通信链路,包括:
    基于HTTP协议建立与所述节点设备的通信链路。
  18. 一种节点配置装置,其特征在于,应用于分布式系统的主控设备,所述分布式系统还包括至少一个节点设备,所述节点配置装置包括:
    检测单元,用于检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接;
    连接单元,用于若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路;
    处理单元,用于基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的执行文件和配置文件,指示所述节点设备根据所述配置文件配置用于运行所述指定程序的指定参数。
  19. 一种分布式系统,其特征在于,包括:主控设备和至少一个节点设备;
    所述主控设备用于检测所述节点设备的连接端口的工作状态,其中,所述连接端口用于实现所述主控设备与所述节点设备之间的通信连接;若所述连接端口的工作状态为可用状态,则建立与所述节点设备的通信链路,并基于所述通信链路,向所述节点设备发送安装包,所述安装包包括指定程序的配置文件;
    所述节点设备用于根据所述配置文件配置用于运行所述指定程序的指定参数。
  20. 一种计算机可读介质,其特征在于,所述计算机可读介质存储有处理器可执行的程序代码,所述程序代码被所述处理器执行时使所述处理器执行权利要求1-17任一项所述方法。
PCT/CN2020/089589 2020-05-11 2020-05-11 节点配置方法、装置、分布式系统及计算机可读介质 WO2021226784A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/089589 WO2021226784A1 (zh) 2020-05-11 2020-05-11 节点配置方法、装置、分布式系统及计算机可读介质
CN202080094856.3A CN115004650B (zh) 2020-05-11 2020-05-11 节点配置方法、装置、分布式系统及计算机可读介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/089589 WO2021226784A1 (zh) 2020-05-11 2020-05-11 节点配置方法、装置、分布式系统及计算机可读介质

Publications (1)

Publication Number Publication Date
WO2021226784A1 true WO2021226784A1 (zh) 2021-11-18

Family

ID=78526046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/089589 WO2021226784A1 (zh) 2020-05-11 2020-05-11 节点配置方法、装置、分布式系统及计算机可读介质

Country Status (2)

Country Link
CN (1) CN115004650B (zh)
WO (1) WO2021226784A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615128A (zh) * 2022-03-08 2022-06-10 网易(杭州)网络有限公司 服务管理方法及系统、计算机存储介质和电子设备
CN116628770A (zh) * 2023-07-19 2023-08-22 北京芯驰半导体科技有限公司 芯片的数据保护方法、装置、芯片、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552690A (zh) * 2008-03-31 2009-10-07 华为技术有限公司 一种节点维护功能的配置方法、系统及节点设备
CN102455915A (zh) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 一种分布式系统的自动化配置方法及服务器
CN103593322A (zh) * 2013-11-11 2014-02-19 曙光信息产业(北京)有限公司 驱动组件的配置方法和装置
US9300598B2 (en) * 2007-10-03 2016-03-29 Virtela Technology Services Incorporated Virtualized application acceleration infrastructure
CN106533753A (zh) * 2016-11-07 2017-03-22 广州视源电子科技股份有限公司 一种分布式系统的角色配置方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886434B (zh) * 2016-12-28 2020-10-23 山西大智慧水利科技有限公司 一种分布式应用安装方法与装置
CN109614120A (zh) * 2018-11-29 2019-04-12 郑州云海信息技术有限公司 一种分布式应用的安装方法、系统及节点设备
CN109660950B (zh) * 2018-11-30 2020-07-28 Oppo广东移动通信有限公司 导航控制方法及相关产品

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9300598B2 (en) * 2007-10-03 2016-03-29 Virtela Technology Services Incorporated Virtualized application acceleration infrastructure
CN101552690A (zh) * 2008-03-31 2009-10-07 华为技术有限公司 一种节点维护功能的配置方法、系统及节点设备
CN102455915A (zh) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 一种分布式系统的自动化配置方法及服务器
CN103593322A (zh) * 2013-11-11 2014-02-19 曙光信息产业(北京)有限公司 驱动组件的配置方法和装置
CN106533753A (zh) * 2016-11-07 2017-03-22 广州视源电子科技股份有限公司 一种分布式系统的角色配置方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615128A (zh) * 2022-03-08 2022-06-10 网易(杭州)网络有限公司 服务管理方法及系统、计算机存储介质和电子设备
CN114615128B (zh) * 2022-03-08 2024-02-23 网易(杭州)网络有限公司 服务管理方法及系统、计算机存储介质和电子设备
CN116628770A (zh) * 2023-07-19 2023-08-22 北京芯驰半导体科技有限公司 芯片的数据保护方法、装置、芯片、电子设备及存储介质
CN116628770B (zh) * 2023-07-19 2023-11-28 北京芯驰半导体科技有限公司 芯片的数据保护方法、装置、芯片、电子设备及存储介质

Also Published As

Publication number Publication date
CN115004650A (zh) 2022-09-02
CN115004650B (zh) 2024-01-16

Similar Documents

Publication Publication Date Title
CN111800443B (zh) 数据处理系统和方法、装置以及电子设备
CN107135279B (zh) 一种处理长连接建立请求的方法和装置
WO2022127504A1 (zh) 网元管理方法、装置及存储介质
KR20180098426A (ko) 과거 이력 데이터에 기초하는 네트워크 노드 가용성 예측
JP2010063022A (ja) アクセスゲートウェイ装置の制御方法及び通信システム
WO2021226784A1 (zh) 节点配置方法、装置、分布式系统及计算机可读介质
CN109547524B (zh) 基于物联网的用户行为存储方法、装置、设备及存储介质
US10149134B2 (en) Near field discovery method, user equipment, and storage medium
CN104283802A (zh) 邻居发现方法和设备
WO2021057605A1 (zh) 设备管理方法、装置、系统、设备及存储介质
WO2019041371A1 (zh) 物联网基于连接数量的路由器切换方法及装置
CN112764696A (zh) 一种云打印服务器、远程打印设备的智能打印方法及系统
US20170033978A1 (en) Method and device for processing communication path
CN110442506B (zh) 一种日志获取方法、装置、业务服务器、系统及存储介质
CN112423322A (zh) 型号信息发送方法、装置、存储介质及电子装置
CN112584398B (zh) 数据处理方法、装置及存储介质
CN106411574B (zh) 一种管理控制方法和装置
US11973824B2 (en) Method for data transmission of audio and video in end-to-end system
CN107333279B (zh) 最小化路测方法、基站及网络管理系统
KR20120017619A (ko) 단말 관리 패키지를 제공하는 장치, 방법 및 상기 단말 관리 패키지를 제공받는 방법
CN113595894B (zh) 服务节点间、客户端节点间通信方法、装置、设备及介质
CN106304241B (zh) 一种数据传输方法、转发器及网关
CN109274715A (zh) 车载多通道通信系统的平台资源管理系统
CN114925135A (zh) 数据导出方法、装置、系统、电子设备及存储介质
KR102273390B1 (ko) 네트워크 기능 통합방법 및 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20935945

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/04/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20935945

Country of ref document: EP

Kind code of ref document: A1