Server cluster license obtaining method and device, equipment and medium
By introducing the main server into the server cluster to record and generate the total device fingerprint, the problem of inefficient license issuance in the cluster server is solved, and more efficient license management is achieved.
Patent Information
- Application Number
- CN202411504202.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-03-25
AI Technical Summary
In the cluster server scenario, the issuance of licenses of each server is inefficient, which leads to serious time-consuming.
The device fingerprint information reported by the server node is received and recorded through the main server in the server cluster, and the total device fingerprint is generated, and sent to the authentication license server to obtain the license. When the server node needs verification, a license verification request is issued to the main server. If the device fingerprint is in the total device fingerprint, the verification will be passed.
It improves the efficiency of license issuance of server clusters and reduces the time for fingerprinting and license issuance of equipment to multiple servers.
Smart Images

Figure CN119691706A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and medium for obtaining a license for a server cluster. Background Art
[0002] In recent years, with the rapid development of science and technology, the use of applications has gradually increased, which has put higher and higher requirements on the capabilities of the back-end servers of applications. At present, most of them use cluster servers, which means that multiple servers are concentrated together to provide the same service, and it looks like there is only one server to the client.
[0003] In the process of issuing software licenses to servers, in general, the device information of each server is collected, the device fingerprint of the current server is generated, and the software license is issued based on the device fingerprint of each server. In the scenario of clustered servers, the more servers there are, the more inconvenient it is to collect device fingerprints and issue software licenses for each server, and there will be serious time-consuming problems. Therefore, how to efficiently issue licenses to clustered servers is a technical problem that needs to be solved urgently. Summary of the invention
[0004] One purpose of the present application is to provide a license acquisition method, device, equipment and medium for a server cluster, at least to solve the problem of low efficiency in issuing licenses for each server in the server cluster. The purpose of the present application is to provide a new method for obtaining licenses for a server cluster. The method receives and records the device fingerprint information reported by the server node through the main server in the server cluster to generate the total device fingerprint of the server cluster, and then sends or manually enters the total device fingerprint to the authentication and licensing server to obtain the license. When the server node needs to be verified, it can send a license verification request to the main server. If the device fingerprint information is in the total device fingerprint, it is determined that the server node has passed the verification. By implementing this solution, the efficiency of issuing licenses for server clusters can be improved.
[0005] To achieve the above objectives, some embodiments of the present application provide the following aspects:
[0006] In a first aspect, some embodiments of the present application provide a method for obtaining a license of a server cluster, wherein the server cluster is composed of a main server and at least one server node, and the method is executed by the main server in the server cluster; the method comprises:
[0007] Receive and record device fingerprint information reported by at least one server node;
[0008] Generating a total device fingerprint of the server cluster based on the recorded device fingerprint information;
[0009] Sending or manually entering the total device fingerprint to an authentication license server;
[0010] Receiving a license issued by the authentication and licensing server;
[0011] Respond to the license verification request of the server node and return the verification result of the server node.
[0012] In a second aspect, some embodiments of the present application further provide a method for obtaining a license of a server cluster, wherein the server cluster is composed of a main server and at least one server node, and the method is executed by the server node in the server cluster; the method comprises:
[0013] Reporting device fingerprint information of the server node to the main server for recording by the main server, and generating a total device fingerprint of the server cluster based on the device fingerprint information, so as to send or manually enter the total device fingerprint to the authentication and licensing server, and receive a license issued by the authentication and licensing server;
[0014] Sending a license verification request to the main server, and receiving the total device fingerprint sent by the main server;
[0015] Check whether the fingerprint information of the own device is in the total device fingerprint. If it is in the total device fingerprint, it is determined that the verification is passed.
[0016] In a third aspect, some embodiments of the present application further provide a license acquisition device for a server cluster, wherein the server cluster is composed of a main server and at least one server node, and the device is configured on the main server in the server cluster; the device comprises:
[0017] A device fingerprint information receiving module, used to receive and record device fingerprint information reported by at least one server node;
[0018] A total device fingerprint generation module, used to generate a total device fingerprint of the server cluster based on the recorded device fingerprint information;
[0019] A total device fingerprint sending or manual entry module, used for sending or manually entering the total device fingerprint to an authentication and licensing server;
[0020] A license receiving module, used to receive the license issued by the authentication and licensing server;
[0021] The verification request response module is used to respond to the license verification request of the server node and return the verification result of the server node.
[0022] In a fourth aspect, some embodiments of the present application further provide a license acquisition device for a server cluster, wherein the server cluster is composed of a main server and at least one server node, and the device is configured on the server node in the server cluster; the device comprises:
[0023] A device fingerprint information sending module, used to report the device fingerprint information of the server node to the main server for recording by the main server, and to generate a total device fingerprint of the server cluster based on the device fingerprint information, so as to send or manually enter the total device fingerprint to the authentication and licensing server, and receive a license issued by the authentication and licensing server;
[0024] A verification request sending module, used to send a license verification request to the main server and receive the total device fingerprint sent by the main server;
[0025] The verification module is used to query whether the fingerprint information of the own device is in the total device fingerprint. If it is in the total device fingerprint, it is determined to pass the verification.
[0026] In a fifth aspect, some embodiments of the present application further provide a computer device, the device comprising:
[0027] one or more processors; and
[0028] A memory storing computer program instructions, which, when executed, cause the processor to execute the license acquisition method for a server cluster as described above.
[0029] In a sixth aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the license acquisition method for a server cluster as described above.
[0030] Compared with the prior art, in the solution provided by the embodiment of the present application, the main server in the server cluster receives and records the device fingerprint information reported by the server node to generate the total device fingerprint of the server cluster, and then sends or manually enters the total device fingerprint to the authentication license server to obtain a license. When the server node needs to be verified, it can send a license verification request to the main server. If its own device fingerprint information is in the total device fingerprint, it is determined that the server node has passed the verification. By implementing this solution, the efficiency of issuing licenses to the server cluster can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flowchart of a license acquisition method for a server cluster provided in Example 1 of the present application;
[0032] Figure 2It is a flowchart of a license acquisition method for a server cluster provided in Embodiment 2 of the present application;
[0033] Figure 3 This is a schematic diagram of the license acquisition process of the server cluster provided in Example 2 of the present application;
[0034] Figure 4 It is a flowchart of a method for obtaining a license for a server cluster provided in Embodiment 3 of the present application;
[0035] Figure 5 It is a structural diagram of a license acquisition device for a server cluster provided in Embodiment 4 of the present application;
[0036] Figure 6 It is a structural diagram of a license acquisition device for a server cluster provided in Embodiment 5 of the present application;
[0037] Figure 7 It is a structural diagram of the computer device provided in Example 6 of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] The technical solution provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0040] Embodiment 1
[0041] Figure 1 FIG. 1 is a flow chart of a method for obtaining a license for a server cluster provided in Example 1 of the present application. Figure 1 As shown, the specific steps include:
[0042] Step S101, receiving and recording device fingerprint information reported by at least one server node;
[0043] Wherein, the server cluster is composed of a main server and at least one server node, and the method is executed by the main server in the server cluster;
[0044] The servers in a server cluster are connected together through a high-speed network and managed and coordinated using specific cluster software. When a client sends a request, the cluster software will distribute the request to different servers for processing based on certain algorithms. These algorithms may consider the server's load, performance indicators, or other factors to ensure that the request can be processed efficiently.
[0045] The main types of server clusters are: High-availability clusters, which aim to ensure service continuity. Even if one of the servers fails, other servers can immediately take over its work to ensure uninterrupted business. Redundant design is usually adopted, including redundant hardware components, network connections, and power supplies. Common high-availability cluster technologies include dual-machine hot standby and multi-machine redundancy. Load balancing clusters are mainly used to evenly distribute a large number of client requests to multiple servers to avoid excessive load on a single server, thereby improving the performance and throughput of the entire system. Load balancing can be implemented through hardware devices (such as load balancers) or software. Common load balancing algorithms include polling, weighted polling, and least connections. High-performance computing clusters focus on providing powerful computing power to handle complex scientific computing, engineering simulation, and data analysis tasks. Usually composed of a large number of computing nodes, which are connected by high-speed networks and work together using parallel computing technology. High-performance computing clusters require professional software and programming models to achieve efficient parallel computing.
[0046] The main server may be a server with the strongest computing power in the server cluster, for example, determined by automatic identification, obtained through election, or a pre-designated server.
[0047] Server nodes can be all servers in the server cluster except the main server, and can be called server nodes.
[0048] Among them, the main server needs to receive the device fingerprint information reported by the server node and record it. For example, the main server can send a broadcast message to inform other servers that they need to report device fingerprint information, and then receive the device fingerprint information reported by at least one server node within the agreed time period.
[0049] Among them, the device fingerprint information of the server is a set of attributes that can uniquely identify the hardware and software characteristics of the server. This information is of great significance for the management, security and performance optimization of the server. The composition of the device fingerprint information includes: Hardware information, such as server model: different server models have different performance and functional characteristics. CPU information: including model, number of cores, main frequency, etc. Memory capacity and type: the size and type of memory will affect the running speed and processing power of the server. Storage device information: hard disk capacity, type (such as mechanical hard disk or solid state hard disk), RAID configuration, etc. Network interface information: network card model, MAC address, etc. It also includes software information, such as operating system type and version: different operating systems have different security vulnerabilities and performance characteristics. Installed software list: various applications and services installed on the server. Software configuration information: such as database configuration, Web server configuration, etc. In addition, it can also include other information, such as the server serial number and asset number: used for asset registration and management. BIOS version: the version number of BIOS may affect the compatibility and stability of the server. The unique identifier of the device: such as UUID (Universally Unique Identifier).
[0050] The device fingerprint information of the server can be used for asset management, security management, and performance optimization. For example, it helps enterprises accurately identify and manage server assets, including the purchase, deployment, maintenance, and scrapping of equipment. It can quickly locate and resolve equipment failures and improve the availability and reliability of equipment. Or, it can be used for server authentication and access control. By verifying the device fingerprint information, it can ensure that only legitimate servers can access sensitive resources. It helps detect and prevent malware and network attacks. If the device fingerprint information is found to be inconsistent with expectations, it may mean that the server has been invaded or tampered with. Another example is that it can be used to understand the hardware and software configuration of the server, and performance optimization can be performed according to actual needs. For example, adjust memory allocation, optimize database configuration, etc. It can help administrators identify performance bottlenecks and take appropriate measures to improve the response speed and throughput of the server.
[0051] The method of obtaining the device fingerprint information of the server can be obtained by using operating system tools. For example, many operating systems provide command line tools or management interfaces to view the hardware and software information of the server. For example, in the Linux system, you can use commands such as lscpu, free-m, df-h, etc. to view the CPU, memory, and storage device information. Or use third-party software to obtain it. There are many third-party software that can be used to obtain the device fingerprint information of the server, such as hardware detection tools, system information tools, etc. These software usually provide more detailed and comprehensive information and can generate reports for administrators to refer to. Or obtain it through network scanning tools. Network scanning tools can obtain some device fingerprint information, such as operating system type, open ports, etc. by scanning the network ports and services of the server. However, this method may not be accurate enough and may be regarded as a security threat.
[0052] At the same time, the device fingerprint information of the server can also be updated regularly to ensure its accuracy and completeness.
[0053] Step S102, generating a total device fingerprint of the server cluster based on the recorded device fingerprint information;
[0054] The device fingerprint information may include the device fingerprint information of the main server, or may not include the device fingerprint information of the main server.
[0055] The method of generating the total device fingerprint can be implemented by using a specific algorithm, such as using a feature extraction method to extract key features from the collected device fingerprint information, because these features can represent the unique properties of the server cluster. For example, a specific hardware configuration combination, software version combination, and network architecture characteristics. Then encode and represent, and use a suitable encoding method to represent the extracted features as a total device fingerprint. Hash algorithms, unique identifier generation algorithms, etc. can be used to ensure that the generated fingerprint is unique and stable. Afterwards, the total device fingerprint can be stored in a centralized database or configuration file for subsequent management and query.
[0056] Step S103, sending or manually entering the total device fingerprint to the authentication and licensing server;
[0057] After generating the total device fingerprint, the main server may send or manually enter the total device fingerprint to the authentication and licensing server.
[0058] Among them, the authentication and licensing server is a type of server that plays a key role in the network environment. It is mainly responsible for authenticating the identity of users, devices or software and managing the corresponding license authorization. The authentication and licensing server can be used for identity authentication, authenticate users, and ensure that only legitimate users can access specific resources or services. This can be achieved in a variety of ways, such as usernames and passwords, digital certificates, biometrics, etc. For device authentication, ensure that the devices connected to the network are authorized to prevent illegal devices from accessing the network, thereby improving the security of the network. The authentication and licensing server can also be used for license management, responsible for managing the issuance, update and revocation of software licenses. For example, if an enterprise purchases a certain number of software licenses, the authentication and licensing server can ensure that only users within the scope of the license can use the software. Different types of licenses are classified and managed, such as permanent licenses, temporary licenses, concurrent licenses, etc., and are reasonably allocated according to actual needs. The working process of the authentication and licensing server includes: the user or device initiates a request. When the user tries to log in to the system or the device tries to connect to the network, it sends an authentication request to the authentication and licensing server. The request usually contains the user's identity information (such as username and password) or the device's feature information (such as MAC address, device serial number, etc.). During the authentication process, after receiving the request, the authentication license server verifies the request according to the pre-set authentication rules. This may involve operations such as querying the database, comparing passwords, and verifying digital certificates. If the authentication is successful, the server will return an authentication token or certificate, and the user or device can use this token or certificate to access protected resources within a certain period of time. Finally, the license is allocated. For software or services that require a license, the authentication license server will allocate the license based on the type and quantity of the license. If the use of the license reaches the limit, the server can reject the new request or prompt the user to purchase a new license.
[0059] Step S104, receiving a license issued by the authentication and licensing server;
[0060] After the authentication and licensing server authenticates and passes the total device fingerprint, a license may be issued to the main server or a license file may be generated for subsequent import. It is understandable that the license is issued for the entire server cluster.
[0061] Step S105, in response to the license verification request of the server node, returning the verification result of the server node.
[0062] Here, the query method can be implemented by pre-adopting an algorithm that is inverse to the algorithm for generating the total device fingerprint, so as to obtain the device fingerprint information of each server node received by the main server, so as to determine whether the device fingerprint information of the server node is included in the information. If it is included in the information, it means that the current server node has a license.
[0063] In the solution provided by the embodiment of the present application, the main server in the server cluster receives and records the device fingerprint information reported by the server node to generate the total device fingerprint of the server cluster, and then sends or manually enters the total device fingerprint to the authentication and licensing server to obtain a license. When the server node needs to be verified, it can send a license verification request to the main server. If its own device fingerprint information is in the total device fingerprint, it is determined that the server node has passed the verification. By implementing this solution, the efficiency of issuing licenses to the server cluster can be improved.
[0064] Embodiment 2
[0065] Figure 2 This is a flow chart of the license acquisition method for a server cluster provided in Example 2 of the present application. The specific optimization is: generating a total device fingerprint of the server cluster based on the recorded device fingerprint information, including: constructing a fingerprint list based on the recorded device fingerprint information; generating a total device fingerprint of the server cluster based on the recorded device fingerprint information, and associating the fingerprint list with the total device fingerprint.
[0066] like Figure 2 As shown, the specific steps include:
[0067] Step S201, receiving and recording device fingerprint information reported by at least one server node;
[0068] Step S202, constructing a fingerprint list with the recorded device fingerprint information;
[0069] The received device fingerprint information of each server node may be used to construct a fingerprint list. For example, the fingerprint list may include two columns, one column for the ID of the server node and the other column for the device fingerprint information of the server node.
[0070] Step S203, generating a total device fingerprint of the server cluster based on the recorded device fingerprint information, and associating the fingerprint list with the total device fingerprint;
[0071] After the total device fingerprint is generated, an association relationship may be established between the fingerprint list and the total device fingerprint.
[0072] Figure 3 FIG. 1 is a flow chart of the license acquisition process of the server cluster provided in the second embodiment of the present application. Figure 3 As shown, the scheme mainly includes the following steps:
[0073] Each server node reports the device fingerprint to the central server;
[0074] The central server records the collected device fingerprints;
[0075] The central server generates a total device fingerprint, i.e., a cluster device fingerprint, based on the collected device fingerprints;
[0076] Issue licenses for cluster device fingerprints;
[0077] Each server node can query the central server to see if it has been authorized.
[0078] This solution can manage multiple server authorizations through one device fingerprint, saving the time of obtaining device fingerprints and issuing licenses for multiple devices. The more servers there are, the more time is saved.
[0079] Step S204, sending or manually entering the total device fingerprint to the authentication and licensing server;
[0080] Step S205, receiving a license issued by the authentication and licensing server;
[0081] Step S206: In response to the license verification request of the server node, the verification result of the server node is returned.
[0082] For example, the total device fingerprint is sent to a server node, so that the server node can query whether its own device fingerprint information is in the total device fingerprint. If it is in the total device fingerprint, it is determined that the server node has passed the verification.
[0083] Based on the above embodiments, this embodiment provides a method of constructing a fingerprint list and associating the fingerprint list with the total device fingerprint, which can facilitate subsequent query of each server node whether it has a license and whether it can pass the license verification.
[0084] In this solution, optionally, in response to a license verification request from a server node, the total device fingerprint is sent to the server node, so that the server node can query whether its own device fingerprint information is in the total device fingerprint, and if it is in the total device fingerprint, it is determined that the server node has passed the verification, including:
[0085] In response to the license verification request of the server node, the total device fingerprint and the fingerprint list associated with the total device fingerprint are sent to the server node, so that the server node can query whether its own device fingerprint information is in the fingerprint list. If it is in the fingerprint list, it is determined that the server node has passed the verification.
[0086] This solution can send the fingerprint list to the server node, so that the server node can query whether its own device fingerprint information is in the fingerprint list. Therefore, in the process of verifying the license at the server node, there is no need to use any algorithm to process the total device fingerprint, thereby improving the verification efficiency and simplifying the verification operation.
[0087] In this solution, optionally, after receiving the license issued by the authentication and licensing server, the method further includes:
[0088] In response to the license verification request of the server node, a fingerprint list associated with the total device fingerprint is queried, and if the device fingerprint information of the server node is in the fingerprint list, verification passing information is sent to the server node.
[0089] In this solution, a main server can verify whether a server node has a license by searching through a fingerprint list stored in the main server, obtaining a verification result, and feeding the verification result back to the server node. Thus, the server node can obtain the verification result after issuing a license verification request without transmitting a large amount of data, thereby simplifying the interaction process.
[0090] Embodiment 3
[0091] Figure 4 1 is a flow chart of a method for obtaining a license of a server cluster provided in Example 3 of the present application. The server cluster is composed of a main server and at least one server node, and the method is executed by the server node in the server cluster; Figure 4 As shown, the method includes:
[0092] Step S401, reporting device fingerprint information of the server node to the main server for recording by the main server, and generating a total device fingerprint of the server cluster based on the device fingerprint information, so as to send or manually enter the total device fingerprint to the authentication and licensing server, and receive a license issued by the authentication and licensing server;
[0093] Step S402, sending a license verification request to the main server, and receiving the total device fingerprint sent by the main server;
[0094] Step S403, query whether the fingerprint information of the own device is in the total device fingerprint, and if so, determine that the verification is passed.
[0095] In this embodiment, optionally, sending a license verification request to a main server and receiving a total device fingerprint sent by the main server include:
[0096] Sending a license verification request to the main server, receiving the total device fingerprint and the fingerprint list associated with the total device fingerprint sent by the main server;
[0097] The method further comprises:
[0098] Check whether the fingerprint information of the own device is in the fingerprint list associated with the total device fingerprint. If it is in the fingerprint list, it is determined that the verification is passed.
[0099] The technical solution provided in this embodiment corresponds to the technical solutions provided in the above embodiments, and has corresponding step processes and beneficial effects, which will not be repeated here.
[0100] Embodiment 4
[0101] Figure 5 Schematic diagram of the structure of the license acquisition device of the server cluster provided in the fourth embodiment of the present application. Figure 5 As shown, specifically including the following:
[0102] The device fingerprint information receiving module 510 is used to receive and record the device fingerprint information reported by at least one server node;
[0103] A total device fingerprint generating module 520, configured to generate a total device fingerprint of the server cluster based on the recorded device fingerprint information;
[0104] A total device fingerprint sending or manual entry module 530, used to send or manually enter the total device fingerprint to an authentication permission server;
[0105] The license receiving module 540 is used to receive the license issued by the authentication and licensing server;
[0106] The verification request response module 550 is used to respond to the license verification request of the server node and send the total device fingerprint to the server node so that the server node can query whether its own device fingerprint information is in the total device fingerprint. If it is in the total device fingerprint, it is determined that the server node has passed the verification.
[0107] The license acquisition device of the server cluster in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0108] The license acquisition device of the server cluster in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0109] The license acquisition device for a server cluster provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0110] Embodiment 5
[0111] Figure 6 Schematic diagram of the structure of the license acquisition device of the server cluster provided in the fifth embodiment of the present application. The server cluster is composed of a main server and at least one server node, and the device is configured in the server node in the server cluster; Figure 6 As shown, specifically including the following:
[0112] The device fingerprint information sending module 610 is used to report the device fingerprint information of the server node to the main server for recording by the main server, and to generate the total device fingerprint of the server cluster based on the device fingerprint information, so as to send or manually enter the total device fingerprint to the authentication and licensing server, and receive the license issued by the authentication and licensing server;
[0113] A verification request sending module 620 is used to send a license verification request to the main server and receive the total device fingerprint sent by the main server;
[0114] The verification module 630 is used to query whether the fingerprint information of the own device is included in the total device fingerprint. If it is included in the total device fingerprint, it is determined that the verification is passed.
[0115] The license acquisition device of the server cluster in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0116] The license acquisition device of the server cluster in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0117] The license acquisition device for a server cluster provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0118] Embodiment 6
[0119] In addition, the embodiment of the present application also provides a computer device, Figure 7 : is a schematic diagram of the structure of a computer device provided in Example 6 of the present application. The structure of the device is as follows Figure 7 As shown, the device includes a memory 71 for storing computer-readable instructions and a processor 72 for executing the computer-readable instructions, wherein when the computer-readable instructions are executed by the processor, the processor is triggered to execute the described method.
[0120] The methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the processing unit, the above functions defined in the method of the present application are executed.
[0121] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0122] In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0123] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0124] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] As another aspect, the embodiments of the present application further provide a computer-readable medium, which may be included in the device described in the above embodiments; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions, which may be executed by a processor to implement the steps of the methods and / or technical solutions of the above multiple embodiments of the present application.
[0126] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.
[0127] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0128] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0129] In addition, an embodiment of the present application further provides a computer program, which is stored in a computer device, so that the computer device executes the method for controlling code execution.
[0130] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0131] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A method for obtaining a license for a server cluster, characterized in that: The server cluster is composed of a main server and at least one server node, and the method is executed by the main server in the server cluster; the method includes: Receive and record device fingerprint information reported by at least one server node; Generating a total device fingerprint of the server cluster based on the recorded device fingerprint information; Sending or manually entering the total device fingerprint to an authentication license server; Receiving a license issued by the authentication and licensing server; In response to the license verification request of the server node, the verification result of the server node is returned.
2. The method according to claim 1, characterized in that Generating a total device fingerprint of the server cluster based on the recorded device fingerprint information includes: Construct a fingerprint list using the recorded device fingerprint information; A total device fingerprint of the server cluster is generated based on the recorded device fingerprint information, and the fingerprint list is associated with the total device fingerprint.
3. The method according to claim 2, characterized in that In response to the license verification request of the server node, the verification result of the server node is returned, including: In response to the license verification request of the server node, the total device fingerprint and the fingerprint list associated with the total device fingerprint are sent to the server node, so that the server node can query whether its own device fingerprint information is in the fingerprint list. If it is in the fingerprint list, it is determined that the server node has passed the verification.
4. The method according to claim 2, characterized in that: After receiving the license issued by the authentication and licensing server, the method further includes: In response to the license verification request of the server node, a fingerprint list associated with the total device fingerprint is queried, and if the device fingerprint information of the server node is in the fingerprint list, verification passing information is sent to the server node.
5. A method for obtaining a license for a server cluster, characterized in that: The server cluster is composed of a main server and at least one server node, and the method is executed by the server node in the server cluster; the method includes: Reporting device fingerprint information of the server node to the main server for recording by the main server, and generating a total device fingerprint of the server cluster based on the device fingerprint information, so as to send or manually enter the total device fingerprint to the authentication and licensing server, and receive a license issued by the authentication and licensing server; Sending a license verification request to the main server, and receiving the total device fingerprint sent by the main server; Check whether the fingerprint information of the own device is in the total device fingerprint. If it is in the total device fingerprint, it is determined that the verification is passed.
6. The method according to claim 5, characterized in that Sending a license verification request to the main server and receiving the total device fingerprint sent by the main server include: Sending a license verification request to the main server, receiving the total device fingerprint and the fingerprint list associated with the total device fingerprint sent by the main server; The method further comprises: Check whether the fingerprint information of the own device is in the fingerprint list associated with the total device fingerprint. If it is in the fingerprint list, it is determined that the verification is passed.
7. A license acquisition device for a server cluster, characterized in that: The server cluster is composed of a main server and at least one server node, and the device is configured on the main server in the server cluster; the device includes: A device fingerprint information receiving module, used to receive and record device fingerprint information reported by at least one server node; A total device fingerprint generation module, used to generate a total device fingerprint of the server cluster based on the recorded device fingerprint information; A total device fingerprint sending or manual entry module, used for sending or manually entering the total device fingerprint to an authentication and licensing server; A license receiving module, used to receive the license issued by the authentication and licensing server; The verification request response module is used to respond to the license verification request of the server node and return the verification result of the server node.
8. A license acquisition device for a server cluster, characterized in that: The server cluster is composed of a main server and at least one server node, and the device is configured on the server node in the server cluster; the device includes: A device fingerprint information sending module, used to report the device fingerprint information of the server node to the main server for recording by the main server, and to generate a total device fingerprint of the server cluster based on the device fingerprint information, so as to send or manually enter the total device fingerprint to the authentication and licensing server, and receive a license issued by the authentication and licensing server; A verification request sending module, used to send a license verification request to the main server and receive the total device fingerprint sent by the main server; The verification module is used to query whether the fingerprint information of the own device is in the total device fingerprint. If it is in the total device fingerprint, it is determined to pass the verification.
9. A computer device, characterized in that: The device comprises: one or more processors; and A memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the license acquisition method for a server cluster according to any one of claims 1 to 4 or claims 5 to 6.
10. A computer-readable medium, characterized in that Computer program instructions are stored thereon, and the computer program instructions can be executed by a processor to implement the license acquisition method for a server cluster as claimed in any one of claims 1 to 4 or as claimed in any one of claims 5 to 6.
Citation Information
Patent Citations
Licensing method and system for distributed objects
CN109344572A
Application authorization method, distributed cluster system, electronic equipment and storage medium
CN113868602A
Authorization method and system of cluster system, storage medium and electronic equipment
CN117978473A
Method for license authentication, and node, system and computer-readable storage medium for the same
US20220012310A1
Cited By
Equipment upgrading method and system, computer equipment and computer program product
CN120492003A
Device upgrading method, system, computer device and computer program product
CN120492003B