Method and system for proxy gateway to access Ceph object storage, computer equipment, storage medium and computer program product
By converting S3 HTTP requests into TCP read and write requests, and configuring preset thread pools and dynamically adjusting thread pool sizes in the Nginx Ceph HTTP module, the object storage performance problem caused by the performance disadvantage of the HTTP protocol is solved, and high-performance Ceph object storage access is achieved.
Patent Information
- Application Number
- CN202411791705.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-12-06
AI Technical Summary
When using Ceph object storage, S3 request forwarding based on HTTP protocol will amplify the performance disadvantages of the HTTP protocol, resulting in the overall performance of object upload and download.
Convert S3 HTTP requests into Transmission Control Protocol (TCP)-based read and write requests through Ceph Nginx front-end, and configure preset thread pools and dynamically adjust thread pool sizes in the Nginx Ceph HTTP module to improve processing power.
It realizes high-performance access to the Ceph storage cluster without deploying the Ceph object storage gateway, reducing the delay in reading and writing Ceph object storage as a proxy gateway, and improving the overall performance of object upload and download.
Smart Images

Figure CN119652966A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of accessing Ceph object storage, and in particular to a method, system, computer device, storage medium and computer program product for a proxy gateway to access Ceph object storage. Background Art
[0002] When using Ceph (distributed storage system) object storage, Nginx gateway (Engine X) is often deployed as the entry point for S3 (Simple Storage Service) HTTP (Hypertext Transfer Protocol) requests. Multiple Ceph RGW (RADOS Gateway) object storage gateways are deployed behind the Nginx gateway to access Ceph object storage. However, the HTTP protocol has performance defects such as head-of-line blocking and high latency. Therefore, forwarding S3 requests based on the HTTP protocol will magnify the performance disadvantages of the HTTP protocol, thereby seriously affecting the overall performance of object upload and download. Summary of the invention
[0003] Based on this, it is necessary to provide a method, system, computer device, storage medium and computer program product for a proxy gateway to access Ceph object storage that can ensure the overall performance of object upload and download in response to the above technical problems.
[0004] In a first aspect, the present application provides a method for a proxy gateway to access Ceph object storage, which is applied to a system consisting of a CephNginx front end and an Nginx Ceph HTTP module, and the method includes:
[0005] The Ceph Nginx frontend receives S3 HTTP requests from the Nginx Ceph HTTP module and converts the S3 HTTP requests into read and write requests based on the Transmission Control Protocol;
[0006] The Ceph Nginx frontend obtains the execution result context based on the read and write requests;
[0007] The Ceph Nginx frontend constructs a response based on the execution result context and returns the response to the Nginx CephHTTP module, which then returns the response to the client.
[0008] In one embodiment, the Nginx Ceph HTTP module is configured with a preset thread pool, and the method further includes:
[0009] The Nginx Ceph HTTP module sends time-consuming operations to the preset thread pool for execution.
[0010] In one embodiment, the method further comprises:
[0011] The Nginx Ceph HTTP module adjusts the number of active threads in the preset thread pool according to the number of real-time requests from clients.
[0012] In one embodiment, the method further comprises:
[0013] The Nginx Ceph HTTP module responds to the Nginx worker process initialization instructions, creates the Ceph Nginx frontend, and performs Ceph storage cluster connection initialization.
[0014] In one embodiment, the method further comprises:
[0015] The Nginx Ceph HTTP module responds to the Nginx worker process shutdown instruction, closes the Ceph storage cluster connection, and destroys the Ceph Nginx frontend.
[0016] In a second aspect, the present application also provides a system, including: an Nginx Ceph HTTP module and a Ceph Nginx front end;
[0017] Among them, Ceph Nginx frontend is used to perform the following steps:
[0018] Receive S3 HTTP requests and convert them into read and write requests based on the Transmission Control Protocol;
[0019] Obtain the execution result context based on the read and write request;
[0020] A response is constructed according to the execution result context and returned to the Nginx Ceph HTTP module, so that the Nginx Ceph HTTP module returns the response to the client.
[0021] In one embodiment, the Nginx Ceph HTTP module includes an S3 HTTP request processing unit;
[0022] Ceph Nginx front-end includes: protocol conversion unit and read-write unit;
[0023] The protocol conversion unit communicates with the client through the S3 HTTP request processing unit to receive the S3 HTTP request and convert the S3 HTTP request into a read / write request based on the transmission control protocol;
[0024] The read / write unit is connected to the protocol conversion unit to obtain the execution result context according to the read / write request, construct a response according to the execution result context, and return the response to the Nginx Ceph HTTP module.
[0025] In a third aspect, the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements any step in the above-mentioned method of proxy gateway accessing Ceph object storage.
[0026] In a fourth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any step in the above-mentioned method of proxy gateway accessing Ceph object storage.
[0027] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any step in the above-mentioned method of proxy gateway accessing Ceph object storage.
[0028] The method, system, computer device, storage medium and computer program product for the above-mentioned proxy gateway to access Ceph object storage, the Ceph Nginx front end receives the S3 HTTP request and converts the S3 HTTP request based on the HTTP protocol into a read and write request based on the transmission control protocol; the Ceph Nginx front end obtains the corresponding execution result context according to the generated read and write request; and constructs the response corresponding to the S3 HTTP request according to the execution result context, and then returns the response to the Nginx CephHTTP module, so that the Nginx Ceph HTTP module returns the response to the client to realize the client response. The method for the proxy gateway to access the Ceph object storage can access the Ceph storage cluster without deploying the Ceph object storage gateway, and has the advantages of high performance, low overhead and low latency, which greatly reduces the latency of Nginx as a proxy gateway to read and write Ceph object storage, and improves the overall performance of object upload and download. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0030] Figure 1 An application environment diagram of a method for a proxy gateway to access Ceph object storage in one embodiment;
[0031] Figure 2 A flowchart of a method for a proxy gateway to access Ceph object storage in one embodiment;
[0032] Figure 3 A multi-line communication structure block diagram of a system consisting of a Ceph Nginx front-end and an Nginx Ceph HTTP module in one embodiment;
[0033] Figure 4 A structural block diagram of a system for applying a method for a proxy gateway to access Ceph object storage in one embodiment;
[0034] Figure 5 A structural block diagram of a device for a proxy gateway to access Ceph object storage in an embodiment;
[0035] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0037] The method for accessing Ceph object storage by a proxy gateway provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in the figure, the Ceph Nginx front end receives the S3 HTTP request from the Nginx Ceph HTTP module, and converts the S3 HTTP request based on the HTTP protocol into a read and write request based on the Transmission Control Protocol (TCP); the Ceph Nginx front end obtains the corresponding execution result context according to the generated read and write request; and constructs the response corresponding to the S3 HTTP request according to the execution result context, and then returns the response to the Nginx CephHTTP module, so that the Nginx Ceph HTTP module returns the response to the client to realize the client response.
[0038] In traditional technology, after receiving an S3 HTTP request, the Nginx service needs to forward the S3 HTTP request to the Ceph object storage gateway, and then the Ceph object storage gateway accesses the Ceph object storage based on the S3 HTTP request, which results in low performance and high latency.
[0039] In an exemplary embodiment, Figure 2As shown, a method for a proxy gateway to access Ceph object storage is provided, which is applied to a system consisting of a Ceph Nginx front end and an Nginx Ceph HTTP module. The method includes:
[0040] S202, the Ceph Nginx front end receives the S3 HTTP request and converts the S3 HTTP request into a read and write request based on the transmission control protocol.
[0041] S204, Ceph Nginx front end obtains the execution result context according to the read and write request.
[0042] S206, the Ceph Nginx front end constructs a response according to the execution result context, and returns the response to the NginxCeph HTTP module, so that the Nginx Ceph HTTP module returns the response to the client.
[0043] Among them, the Ceph Nginx front end can be transformed and developed based on the Ceph librgw library, thereby providing necessary functional interfaces for the Nginx Ceph HTTP module to use, so as to establish data transmission between the Nginx Ceph HTTP module and the Ceph storage cluster. Therefore, the Nginx Ceph HTTP module is an Nginx HTTP module that can directly access the Ceph storage cluster based on the transmission control protocol.
[0044] Thus, the Nginx Ceph HTTP module receives the S3 HTTP request sent by the client, and sends the S3 HTTP request to the Ceph Nginx front end through the above-mentioned functional interface to complete the reception and reading of the S3 HTTP request.
[0045] The Ceph Nginx front-end parses the S3 HTTP request, and then converts the S3 HTTP request into a read / write request based on the transmission control protocol, and obtains the corresponding execution result according to the read / write request. After setting the result context, the execution result context can be determined accordingly. According to the execution result context, a response corresponding to the S3 HTTP request can be obtained, and the response is returned to the Nginx Ceph HTTP module, so that the Nginx Ceph HTTP module returns the response to the client, thereby completing a complete client response.
[0046] Therefore, by directly establishing a communication relationship between the Ceph storage cluster and the Nginx service equipped with the Nginx Ceph HTTP module and the Ceph Nginx front end through the transmission control protocol, the Nginx Ceph HTTP module can directly send the received S3 HTTP request to the Ceph Nginx front end, so that the Ceph Nginx front end can directly access the Ceph storage cluster after protocol conversion. Compared with traditional technologies, this method of directly accessing the Ceph storage cluster based on the transmission control protocol has the advantages of high performance, low overhead, and low latency, which greatly reduces the latency of Nginx as a proxy gateway to read and write Ceph object storage, and improves the overall performance of object upload and download.
[0047] Furthermore, data interaction between the Nginx Ceph HTTP module and the Ceph storage cluster is completed based on the transmission control protocol, and there is no need to deploy a Ceph object storage gateway, thereby further reducing service management costs and hardware costs.
[0048] Further, such as Figure 3 As shown, the Nginx service equipped with the Nginx Ceph HTTP module and the Ceph Nginx front-end can establish a transmission control protocol communication connection with multiple Ceph storage clusters, thereby being able to perform reverse proxy for multiple Ceph storage clusters at the same time and improving the client's response efficiency.
[0049] In the above-mentioned method for proxy gateway to access Ceph object storage, the Ceph Nginx front end receives S3 HTTP request and converts the S3 HTTP request based on HTTP protocol into a read / write request based on transmission control protocol; the Ceph Nginx front end obtains the corresponding execution result context according to the generated read / write request; and constructs the response corresponding to the S3 HTTP request according to the execution result context, and then returns the response to the Nginx Ceph HTTP module, so that the Nginx Ceph HTTP module returns the response to the client to realize the client response. The method for proxy gateway to access Ceph object storage can access Ceph storage cluster without deploying Ceph object storage gateway, and has the advantages of high performance, low overhead and low latency, which greatly reduces the delay of reading and writing Ceph object storage when Nginx is used as proxy gateway, and improves the overall performance of object upload and download.
[0050] In an exemplary embodiment, the Nginx Ceph HTTP module is configured with a preset thread pool, and the method further includes:
[0051] The Nginx Ceph HTTP module sends time-consuming operations to the preset thread pool for execution.
[0052] Time-consuming operations include uploading objects, downloading objects, traversing objects in buckets, and other operations that take a long time. The Nginx Ceph HTTP module sends time-consuming operations to the preset thread pool for execution, which can execute multiple requests at the same time, improving the response efficiency of concurrency and response.
[0053] Furthermore, when the Nginx worker process is initialized, the Nginx thread pool mechanism can be enabled so that one Nginx worker process is configured with a plurality of threads, for example, one Nginx worker process is configured with 10 threads.
[0054] In an exemplary embodiment, the method further includes:
[0055] The Nginx Ceph HTTP module adjusts the number of active threads in the preset thread pool according to the number of real-time requests from clients.
[0056] When the Nginx work process is initialized, the Nginx work process can be dynamically configured so that the Nginx Ceph HTTP module can increase or decrease the number of active threads in the preset thread pool according to the number of real-time requests from the client. Specifically, when the number of real-time requests from the client is large, the number of active threads in the preset thread pool is increased, and when the number of real-time requests from the client is small, the number of active threads in the preset thread pool is reduced, thereby realizing flexible configuration of the preset thread pool and taking into account the response efficiency and overhead of the client.
[0057] In an exemplary embodiment, the method further includes:
[0058] The Nginx Ceph HTTP module responds to the Nginx worker process initialization instructions, creates the Ceph Nginx frontend, and performs Ceph storage cluster connection initialization.
[0059] When the Nginx service is started, the Nginx worker process initialization instruction is initiated to load the Nginx Ceph HTTP module. After the Nginx Ceph HTTP module is enabled, the Nginx Ceph HTTP module will be initialized. During the initialization process, the Ceph storage cluster connection initialization will be performed, the loading configuration of the Ceph Nginx front end will be driven, and the Ceph Nginx front end will be driven to perform the corresponding initialization work, thereby establishing a communication connection between the Nginx service and the Ceph storage cluster based on the transmission control protocol.
[0060] In an exemplary embodiment, the method further includes:
[0061] The Nginx Ceph HTTP module responds to the Nginx worker process shutdown instruction, closes the Ceph storage cluster connection, and destroys the Ceph Nginx frontend.
[0062] When the system consisting of Ceph Nginx front-end and Nginx Ceph HTTP module needs to upgrade the gateway or overhaul the machine, the staff can initiate the Nginx service stop command to close the communication connection based on the transmission control protocol in the system consisting of Ceph Nginx front-end and Nginx CephHTTP module to release related resources.
[0063] In an exemplary embodiment, Figure 4 As shown, a system 400 is provided.
[0064] Among them, Ceph Nginx frontend 402 is used to perform the following steps:
[0065] Receives S3 HTTP requests and converts them into read and write requests based on the Transmission Control Protocol.
[0066] Get the execution result context based on the read and write request.
[0067] A response is constructed according to the execution result context, and the response is returned to the Nginx Ceph HTTP module 404, so that the Nginx Ceph HTTP module 404 returns the response to the client.
[0068] Based on the transmission control protocol, the system 400 can directly access the Ceph storage cluster, reduce the delay of reading and writing the Ceph storage cluster, and improve the overall performance of object uploading and downloading.
[0069] In an exemplary embodiment, the Nginx Ceph HTTP module 404 includes an S3 HTTP request processing unit 4042.
[0070] The Ceph Nginx front end 402 includes: a protocol conversion unit 4022 and a read-write unit 4024.
[0071] The protocol conversion unit 4022 communicates with the client through the S3 HTTP request processing unit 4042 to receive the S3 HTTP request and convert the S3 HTTP request into a read / write request based on the transmission control protocol.
[0072] The read / write unit 4024 is connected to the protocol conversion unit 4022 to obtain the execution result context according to the read / write request, construct a response according to the execution result context, and return the response to the Nginx Ceph HTTP module 404.
[0073] When the Nginx Ceph HTTP module 404 receives the S3 HTTP request sent by the client, the Nginx Ceph HTTP module 404 transmits the S3 HTTP request to the protocol conversion unit 4022 to convert it into a read / write request based on the transmission control protocol, and transmits the read / write request to the read / write unit 4024 to obtain a corresponding response. After closing the Nginx Ceph HTTP module 404, the Ceph storage cluster connection closing function carried in the Nginx Ceph HTTP module 404 closes the communication connection based on the transmission control protocol between the system composed of the CephNginx front end 402 and the Nginx Ceph HTTP module 404 and the Ceph storage cluster to release related resources.
[0074] Furthermore, after enabling the Nginx Ceph HTTP module 404, the Ceph storage cluster connection initialization function in the Nginx Ceph HTTP module 404 drives the loading configuration of the Ceph Nginx front end 402, and can also drive the CephNginx front end 402 to perform corresponding initialization work, thereby establishing a communication connection between the Nginx service and the Ceph storage cluster based on the transmission control protocol.
[0075] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0076] Based on the same inventive concept, the embodiment of the present application also provides a device for a proxy gateway to access Ceph object storage for implementing the method for a proxy gateway to access Ceph object storage involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of the device embodiments for one or more proxy gateways to access Ceph object storage provided below can be found in the above limitations on the method for a proxy gateway to access Ceph object storage, and will not be repeated here.
[0077] In an exemplary embodiment, Figure 5 As shown, a device 500 for a proxy gateway to access Ceph object storage is provided, comprising: a protocol conversion module 502, an execution result context acquisition module 504 and a response module 506, wherein:
[0078] The protocol conversion module 502 is used to receive an S3 HTTP request and convert the S3 HTTP request into a read / write request based on the transmission control protocol.
[0079] The execution result context acquisition module 504 is used to acquire the execution result context according to the read and write request.
[0080] The response module 506 is used to construct a response according to the execution result context, and return the response to the Nginx Ceph HTTP module, so that the Nginx Ceph HTTP module returns the response to the client.
[0081] In an exemplary embodiment, the Nginx Ceph HTTP module is configured with a preset thread pool, and the above-mentioned device 500 for accessing Ceph object storage through a proxy gateway further includes: a branch processing module.
[0082] The branch processing module is used by the Nginx Ceph HTTP module to send time-consuming operations to the preset thread pool for execution.
[0083] In an exemplary embodiment, the above-mentioned device 500 for proxy gateway accessing Ceph object storage also includes: a preset thread pool configuration module.
[0084] The preset thread pool configuration module is used by the Nginx Ceph HTTP module to adjust the number of active threads in the preset thread pool according to the number of real-time requests from clients.
[0085] In an exemplary embodiment, the apparatus 500 for the proxy gateway to access Ceph object storage further includes: an initialization module.
[0086] The initialization module is used to respond to the Nginx worker process initialization instruction. The Nginx Ceph HTTP module creates the Ceph Nginx front end and performs Ceph storage cluster connection initialization.
[0087] In an exemplary embodiment, the above-mentioned device 500 for proxy gateway accessing Ceph object storage further includes: an exit module.
[0088] The exit module is used to respond to the Nginx worker process shutdown instruction, the Nginx Ceph HTTP module closes the Ceph storage cluster connection, and destroys the Ceph Nginx front end.
[0089] Each module in the above-mentioned proxy gateway access Ceph object storage device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0090] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for a proxy gateway to access Ceph object storage is implemented.
[0091] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0092] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the steps of any method of the above-mentioned method of proxy gateway accessing Ceph object storage.
[0093] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method of the above-mentioned method of proxy gateway accessing Ceph object storage are implemented.
[0094] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for a proxy gateway to access Ceph object storage.
[0095] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0096] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present application.
[0097] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for accessing Ceph object storage through a proxy gateway, characterized in that: Applied to a system consisting of a Ceph Nginx front end and an Nginx Ceph HTTP module, the method includes: The Ceph Nginx front end receives the S3 HTTP request from the Nginx Ceph HTTP module and converts the S3HTTP request into a read and write request based on the transmission control protocol; The Ceph Nginx front end obtains the execution result context according to the read and write request; The Ceph Nginx front end constructs a response according to the execution result context, and returns the response to the Nginx Ceph HTTP module, so that the Nginx Ceph HTTP module returns the response to the client.
2. The method according to claim 1, characterized in that The Nginx Ceph HTTP module is configured with a preset thread pool, and the method further comprises: The Nginx Ceph HTTP module sends the time-consuming operations to the preset thread pool for execution.
3. The method according to claim 2, characterized in that The method further comprises: The Nginx Ceph HTTP module adjusts the number of active threads in the preset thread pool according to the number of real-time requests from the client.
4. The method according to claim 1, characterized in that: The method further comprises: The Nginx Ceph HTTP module responds to the Nginx working process initialization instruction, creates the Ceph Nginx front end, and performs Ceph storage cluster connection initialization.
5. The method according to claim 1, characterized in that The method further comprises: The Nginx Ceph HTTP module responds to the Nginx worker process shutdown instruction, closes the Ceph storage cluster connection, and destroys the Ceph Nginx front end.
6. A system, characterized in that: include: Nginx Ceph HTTP module and Ceph Nginx frontend; The Ceph Nginx front-end is used to perform the following steps: Receive an S3 HTTP request, and convert the S3 HTTP request into a read / write request based on a transmission control protocol; According to the read / write request, obtain the execution result context; A response is constructed according to the execution result context, and the response is returned to the Nginx Ceph HTTP module, so that the Nginx Ceph HTTP module returns the response to the client.
7. The system according to claim 6, characterized in that The Nginx Ceph HTTP module includes an S3 HTTP request processing unit; The Ceph Nginx front end includes: a protocol conversion unit and a read-write unit; Wherein, the protocol conversion unit communicates with the client through the S3 HTTP request processing unit to receive the S3 HTTP request, and converts the S3 HTTP request into a read and write request based on the transmission control protocol; The read / write unit is connected to the protocol conversion unit to obtain an execution result context according to the read / write request, construct a response according to the execution result context, and return the response to the Nginx Ceph HTTP module.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Cross-partition mirror image document synchronization method and device
CN108536729A
Resource management method and device
CN113329242A
Data processing method, system and device, storage medium and electronic equipment
CN114895852A
Intranet access method, device and equipment and computer readable storage medium
CN115225292A
Method and system for processing read-write request based on distributed storage cluster
CN117938937A