System and method for realizing server cluster application deployment based on P2P file distribution

Through the P2P file distribution system and methods, the problem of inefficient application deployment in traditional hard disk cloning methods in large server clusters is solved, fast file distribution and unified management are realized, and cluster deployment efficiency and flexibility are improved.

CN119254766APending Publication Date: 2025-01-03SHANDONG ARTAPLAY INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411336214.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Traditional hard disk cloning methods are inefficient when applied and deployed in large server clusters, cannot adapt to complex configuration changes and customization needs, and are also costly to consume a lot of resources, affecting network performance.

Method used

Using the system and method based on P2P file distribution, the P2P client and proxy scripts between the management and control server and the application server are used to distribute and deploy files quickly and manage application files, and support application configuration, uninstallation, and installation. and start.

Benefits of technology

It greatly improves file distribution efficiency and reduces the operational workload of cluster deployment. It has reliable design principles and simple structures, and is suitable for flexible deployment of large server clusters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254766A_ABST
    Figure CN119254766A_ABST
Patent Text Reader

Abstract

The invention provides a system and method for achieving server cluster application deployment based on P2P file distribution, and belongs to the technical field of application deployment. The system comprises a management control server and a plurality of application servers; the management control server is configured with a management control end, a P2P client and a Tracker server; each application server is configured with a proxy script, a P2P client and a Tracker client; the management control end responds to the control of an administrator to send a file distribution request and an application deployment request to each application server in the server cluster, and the P2P client distributes application files to each application server; the management control end calls all proxy scripts to control the P2P client to execute application file distribution operation and application deployment operation; and tracking an application file distribution process through a Tracker service. According to the invention, files of large-scale applications can be quickly distributed, and the file distribution efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of application deployment, and in particular relates to a system and method for implementing server cluster application deployment based on P2P file distribution. Background Art

[0002] Traditional server cluster architecture often relies on physical machines or virtual machines, with low resource utilization and poor scalability. With the development of cloud-native technology, cloud-native architecture has begun to be applied to server clusters. This architecture requires applications and infrastructure to be deployed as microservices in a containerized environment to achieve dynamic management and efficient utilization of resources.

[0003] For the deployment, upgrade and maintenance of TB-level data and large applications in large server clusters, the traditional hard disk cloning method is used. The hard disk cloning method can completely copy the data of one hard disk, including the operating system, applications, configuration files and user data, to another hard disk, so that the new hard disk can replace the work of the original hard disk. Although the hard disk cloning method can achieve rapid deployment to a certain extent, it still has the following problems: First, as the application version is iterated and the functions are improved, simple cloning may not be able to adapt to complex configuration changes and customization requirements. Each update requires re-making the clone image, which is inefficient. Second, for large clusters, hard disk cloning requires a lot of storage space to store the image copy, and it may consume a lot of bandwidth during network transmission, affecting the operation of other businesses.

[0004] This is a shortcoming of the prior art. Therefore, in view of the above-mentioned defects in the prior art, it is very necessary to provide a system and method for implementing server cluster application deployment based on P2P file distribution. Summary of the invention

[0005] In view of the shortcomings of poor flexibility and high resource consumption in application deployment of large server clusters through hard disk cloning, the present invention provides a system and method for implementing server cluster application deployment based on P2P file distribution to solve the above technical problems.

[0006] In a first aspect, the present invention provides a system for implementing server cluster application deployment based on P2P file distribution, including a management control server and a plurality of application servers; The management control server is configured with a management control terminal, a first P2P client and a Tracker server; Each application server is configured with a proxy script, a second P2P client, and a Tracker client; The management control end responds to the administrator's control by sending a file distribution request and an application deployment request to each application server in the server cluster, and the first P2P client distributes application files to each application server; The management control end calls all proxy scripts to control the second P2P client to perform application file distribution operations and application deployment operations; The Tracker server interacts with the Tracker client to track the application file distribution process. Furthermore, the application deployment request includes application configuration, application uninstallation, application installation and application startup.

[0007] Furthermore, the Tracker server interacts with the Tracker client to collect statistics on the index of the distributed application files, the file resource list, and the traffic of the corresponding P2P client.

[0008] Furthermore, the management control end communicates with the proxy script of each application program through the TCP protocol to transmit application deployment instructions and application running status.

[0009] In a second aspect, the present invention provides a method for implementing server cluster application deployment based on P2P file distribution, comprising the following steps: S1. The management control terminal responds to the administrator's control and sends a file distribution request to each application server in the server cluster. The first P2P client distributes application files to each application server; S2. The application server controls the second P2P client through a proxy script to perform application file distribution operations; S3. The management control terminal responds to the administrator's control and sends an application deployment request to the proxy script of each application server in the server cluster; S4. The application server executes the application deployment operation through the proxy script.

[0010] Furthermore, the specific steps of step S1 are as follows: S11. The management control terminal responds to the administrator's login operation; S12. The management control terminal responds to the application file distribution operation initiated by the administrator and divides the application file into several file blocks; S13. The management control end calls the proxy scripts of all application servers to execute file distribution.

[0011] Furthermore, the specific steps of step S2 are as follows: S21. The proxy script of the application server responds to the call of the management control terminal, and the control file block is distributed to the application server through the transmission between the P2P clients in accordance with the setting mode; S22. Interact with the Tracker client through the Tracker server to collect statistics on the index of the distributed application files, the file resource list, and the traffic of the corresponding P2P client; S23. After receiving the application file distribution, the proxy script of the application server returns the execution result to the management control end.

[0012] Furthermore, the specific steps of step S3 are as follows: S31. The management control terminal responds to the administrator's remote application configuration request and calls the proxy script of all application servers to perform batch application configuration; S32. The management control terminal responds to the administrator's remote application management request and calls the proxy scripts of all application servers to perform batch application management.

[0013] Furthermore, the specific steps of step S4 are as follows: S41. After the application configuration is completed, the proxy script of the application server returns the execution result to the management control terminal; S42. After the application management is completed, the proxy script of the application server returns the execution result to the management control end and displays it to the administrator.

[0014] Furthermore, in step S31, the remote application configuration request batch modifies the application configuration files through the Nacos configuration center; The remote application management request in step S32 includes a remote application uninstallation request, a remote application installation request and a remote application startup request; The management control end manages applications in batches through the SSH protocol.

[0015] The beneficial effects of the present invention are: The system and method for implementing server cluster application deployment based on P2P file distribution provided by the present invention realizes rapid distribution of files for large applications through P2P file distribution, and performs unified deployment operations through a management control terminal, thereby greatly improving the file distribution efficiency; the present invention also uses remote call execution technology to uniformly perform application configuration, uninstallation, installation, startup, and status reporting operations on application servers, thereby reducing the operational workload of cluster deployment.

[0016] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.

[0017] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 It is a system schematic diagram of the present invention for implementing server cluster application deployment based on P2P file distribution.

[0020] Figure 2 It is a flow chart of a method for implementing server cluster application deployment based on P2P file distribution according to the present invention.

[0021] Figure 3 It is a flow chart of the present invention for deploying applications to a server cluster through P2P file distribution. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0023] See also Figure 1 The figure shows a system for implementing server cluster application deployment based on P2P file distribution in a specific implementation, including a management control server and several application servers; The management control server is configured with a management control terminal, a first P2P client and a Tracker server; Each application server is configured with a proxy script, a second P2P client, and a Tracker client; The management control end responds to the administrator's control by sending a file distribution request and an application deployment request to each application server in the server cluster, and the first P2P client distributes application files to each application server; The management control end calls all proxy scripts to control the second P2P client to perform application file distribution operations and application deployment operations; The Tracker server interacts with the Tracker client to track the application file distribution process.

[0024] In this embodiment, the application deployment request includes application configuration, application uninstallation, application installation and application startup; The Tracker server interacts with the Tracker client to collect statistics on the index of distributed application files, the file resource list, and the traffic of the corresponding P2P client; The management control end communicates with the proxy scripts of each application through the TCP protocol to transmit application deployment instructions and application running status.

[0025] The following is an embodiment of a method for implementing server cluster application deployment based on P2P file distribution provided by an embodiment of the present disclosure. This method and the system for implementing server cluster application deployment based on P2P file distribution in the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the method for implementing server cluster application deployment based on P2P file distribution, please refer to the embodiment of the system for implementing server cluster application deployment based on P2P file distribution above.

[0026] like Figure 2 As shown, the method comprises the following steps: S1. The management control terminal responds to the administrator's control and sends a file distribution request to each application server in the server cluster. The first P2P client distributes application files to each application server; S2. The application server controls the second P2P client through a proxy script to perform application file distribution operations; S3. The management control terminal responds to the administrator's control and sends an application deployment request to the proxy script of each application server in the server cluster; S4. The application server executes the application deployment operation through the proxy script.

[0027] In this embodiment, Figure 3 As shown, the specific steps of step S1 are as follows: S11. The management control terminal responds to the administrator's login operation; S12. The management control terminal responds to the application file distribution operation initiated by the administrator and divides the application file into several file blocks; S13. The management control terminal calls the proxy script of all application servers to execute file distribution; The specific steps of step S2 are as follows: S21. The proxy script of the application server responds to the call of the management control terminal, and the control file block is distributed to the application server through the transmission between the P2P clients in accordance with the setting mode; S22. Interact with the Tracker client through the Tracker server to collect statistics on the index of the distributed application files, the file resource list, and the traffic of the corresponding P2P client; S23. The application server's proxy script returns the execution result to the management control terminal after receiving the application file distribution; The specific steps of step S3 are as follows: S31. The management control terminal responds to the administrator's remote application configuration request and calls the proxy script of all application servers to perform batch application configuration; the remote application configuration request batch modifies the application configuration file through the Nacos configuration center; S32. The management control terminal responds to the administrator's remote application management request and calls the proxy script of all application servers to perform batch application management; remote application management requests include remote application uninstall requests, remote application installation requests and remote application start requests; The management control end manages applications in batches through the SSH protocol; performs batch remote transmission operations through SSH commands or scripts; The specific steps of step S4 are as follows: S41. After the application configuration is completed, the proxy script of the application server returns the execution result to the management control terminal; S42. After the application management is completed, the proxy script of the application server returns the execution result to the management control end and displays it to the administrator.

[0028] It should be understood that the order of execution of the steps in the above embodiment does not mean that the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0029] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.

Claims

1. A system for implementing server cluster application deployment based on P2P file distribution, characterized in that: Includes management control server and several application servers; The management control server is configured with a management control terminal, a first P2P client and a Tracker server; Each application server is configured with a proxy script, a second P2P client, and a Tracker client; The management control end responds to the administrator's control by sending a file distribution request and an application deployment request to each application server in the server cluster, and the first P2P client distributes application files to each application server; The management control end calls all proxy scripts to control the second P2P client to perform application file distribution operations and application deployment operations; The Tracker server interacts with the Tracker client to track the application file distribution process.

2. The system for implementing server cluster application deployment based on P2P file distribution as claimed in claim 1, characterized in that: The application deployment request includes application configuration, application uninstallation, application installation and application startup.

3. The system for implementing server cluster application deployment based on P2P file distribution as claimed in claim 1, characterized in that: The Tracker server interacts with the Tracker client to collect statistics on the index of distributed application files, the file resource list, and the traffic of the corresponding P2P client.

4. The system for implementing server cluster application deployment based on P2P file distribution as claimed in claim 1, characterized in that: The management control end communicates with the proxy scripts of each application through the TCP protocol to transmit application deployment instructions and application running status.

5. A method for implementing server cluster application deployment based on P2P file distribution, characterized in that: The steps include: S1. The management control terminal responds to the administrator's control and sends a file distribution request to each application server in the server cluster. The first P2P client distributes application files to each application server; S2. The application server controls the second P2P client through a proxy script to perform application file distribution operations; S3. The management control terminal responds to the administrator's control and sends an application deployment request to the proxy script of each application server in the server cluster; S4. The application server executes the application deployment operation through the proxy script.

6. The method for implementing server cluster application deployment based on P2P file distribution as claimed in claim 5, characterized in that: The specific steps of step S1 are as follows: S11. The management control terminal responds to the administrator's login operation; S12. The management control terminal responds to the application file distribution operation initiated by the administrator and divides the application file into several file blocks; S13. The management control end calls the proxy scripts of all application servers to execute file distribution.

7. The method for implementing server cluster application deployment based on P2P file distribution as claimed in claim 6, characterized in that: The specific steps of step S2 are as follows: S21. The proxy script of the application server responds to the call of the management control terminal, and the control file block is distributed to the application server through the transmission between the P2P clients in accordance with the setting mode; S22. Interact with the Tracker client through the Tracker server to collect statistics on the index of the distributed application files, the file resource list, and the traffic of the corresponding P2P client; S23. After receiving the application file distribution, the proxy script of the application server returns the execution result to the management control end.

8. The method for implementing server cluster application deployment based on P2P file distribution as claimed in claim 7, characterized in that: The specific steps of step S3 are as follows: S31. The management control terminal responds to the administrator's remote application configuration request and calls the proxy script of all application servers to perform batch application configuration; S32. The management control terminal responds to the administrator's remote application management request and calls the proxy scripts of all application servers to perform batch application management.

9. The method for implementing server cluster application deployment based on P2P file distribution as claimed in claim 8, characterized in that: The specific steps of step S4 are as follows: S41. After the application configuration is completed, the proxy script of the application server returns the execution result to the management control terminal; S42. After the application management is completed, the proxy script of the application server returns the execution result to the management control end and displays it to the administrator.

10. The method for implementing server cluster application deployment based on P2P file distribution according to claim 8, characterized in that: In step S31, the remote application configuration request batch modifies the application configuration files through the Nacos configuration center; The remote application management request in step S32 includes a remote application uninstallation request, a remote application installation request, and a remote application startup request; The management control end manages applications in batches through the SSH protocol.