A metadata service business processing method, device, equipment and medium
By presetting multiple business processing unit threads and setting mutex locks in the single-node metadata service, the performance bottleneck problem of the single-node metadata service under high load is solved, significantly improving processing efficiency and reducing client latency.
Patent Information
- Application Number
- CN202210469690.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-04-30
AI Technical Summary
When a single-node metadata service loads a large number of business requests, the internal business logic processing cannot be processed concurrently due to the metadata service lock mechanism, resulting in a performance bottleneck, resulting in high client business delays and low processing efficiency.
Preset multiple business processing unit threads in the single-node metadata service, and set mutex locks in the business processing unit threads to prohibit other business requests from entering, reduce the granularity of the lock, improve concurrent processing capabilities, and allocate a large number of Business requests are processed by different business processing unit threads.
It significantly improves the performance of the metadata service in processing business requests, reduces client business delays, improves business processing efficiency, and solves the performance bottleneck problem of single-node metadata services under high load.
Smart Images

Figure CN115086328B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a metadata service business processing method, device, equipment and medium. Background Art
[0002] Distributed file systems are highly dependent on metadata. Any write or query initiated by a client to a data storage node needs to obtain metadata such as access rights and paths from the metadata in order to find the corresponding data storage location and whether the data can be operated. MDS (Metadata Data Server) is a daemon process that provides metadata access for distributed file systems. The ability of MDS to access metadata has become a key factor in the performance of distributed file systems. In order to solve the performance bottleneck of single-node metadata, the open source community currently supports the deployment of metadata service clusters (i.e. Multi-MDS). The metadata service cluster not only solves the risk of single point failures, but also increases the ability of metadata multi-process concurrency. By distributing client requests to different MDSs for business request processing through MDS load balancing, the number of requests loaded on a single-point MDS will be reduced, thereby reducing the request latency of MDS.
[0003] However, when a single-node MDS is loaded with a large number of business requests, the metadata service lock mechanism makes it impossible to implement concurrent processing of internal business logic processing, making it possible for the single-node MDS to become a performance bottleneck. In summary, how to reduce client business delays and improve business processing efficiency when the metadata service is loaded with a large number of business requests needs to be further solved. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a metadata service business processing method, device, equipment and medium, which can reduce the service delay of the client when the metadata service is loaded with a large number of service requests, thereby improving the service processing efficiency. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a metadata service business processing method, comprising:
[0006] Obtaining a target service request sent by a client, and determining a metadata service and a corresponding target service processing unit thread for processing the target service request; the metadata service includes a preset number of service processing unit threads;
[0007] Inputting the target service request into the target service processing unit thread and opening the mutex lock of the target service processing unit thread to prohibit other service requests from entering the target service processing unit thread;
[0008] When the target service request is processed, the mutex lock of the target service processing unit thread is released, and the processing of subsequent target service requests is awaited.
[0009] Optionally, before obtaining the target service request sent by the client and determining the metadata service for processing the target service request and the corresponding target service processing unit thread, the method further includes:
[0010] Initialize the metadata service and synchronously create a preset number of business processing unit threads;
[0011] The preset number of service processing unit threads are added to a set of service processing unit management layers.
[0012] Optionally, also include:
[0013] A state set of the business processing unit thread is constructed at the business processing unit management layer, and the states of the business processing unit thread are collected to interact with the supervision system of the metadata service.
[0014] Optionally, the initializing the metadata service and synchronously creating a preset number of the business processing unit threads includes:
[0015] The function modules in the metadata service that are not related to the business process are placed in a public processing area, and the function modules related to the business process are placed in the business processing unit thread to create a preset number of the business processing unit threads.
[0016] Optionally, also include:
[0017] When an external input command is received, the business processing unit management layer is used to collect information corresponding to each of the business processing unit threads and display them in a unified manner.
[0018] Optionally, also include:
[0019] The mutex restriction in the metadata service is cancelled and a corresponding mutex is added to each of the business processing threads to control the input of the business request.
[0020] Optionally, the acquiring the target service request sent by the client and determining the metadata service for processing the target service request and the corresponding target service processing unit thread includes:
[0021] Obtaining a target service request sent by a client, and determining a metadata service to be accessed based on a hash algorithm according to the target service request;
[0022] The target business processing unit thread corresponding to the metadata service is determined based on a hash algorithm according to the slice of the operation file or directory corresponding to the target business request.
[0023] In a second aspect, the present application discloses a metadata service business processing device, including:
[0024] A service request acquisition module, used to acquire a target service request sent by a client, and determine a metadata service and a corresponding target service processing unit thread for processing the target service request; the metadata service includes a preset number of service processing unit threads;
[0025] A service request processing module, used for inputting the target service request into the target service processing unit thread and opening the mutex lock of the target service processing unit thread to prohibit other service requests from entering the target service processing unit thread;
[0026] The mutex lock releasing module is used to release the mutex lock of the target service processing unit thread after the target service request is processed, and wait for processing of subsequent target service requests.
[0027] In a third aspect, the present application discloses an electronic device, comprising:
[0028] Memory, used to store computer programs;
[0029] The processor is used to execute the computer program to implement the steps of the metadata service business processing method disclosed above.
[0030] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the metadata service business processing method disclosed above are implemented.
[0031] When performing metadata service business processing, the present application first obtains the target business request sent by the client, and determines the metadata service and the corresponding target business processing unit thread that process the target business request; the metadata service contains a preset number of business processing unit threads; the target business request is input into the target business processing unit thread and the mutex lock of the target business processing unit thread is opened to prohibit other business requests from entering the target business processing unit thread; when the target business request is processed, the mutex lock of the target business processing unit thread is released, and the subsequent target business request is waited for. It can be seen that when performing metadata service business processing, the present application first determines the metadata service and the target business processing unit thread that execute the target business request by obtaining the target business request, opens the mutex lock after the target business request enters the target business processing unit thread, and releases the mutex lock after the target business processing unit thread completes the processing of the target business. Therefore, when performing metadata service business processing, by presetting multiple business processing unit threads in the metadata service, and setting the mutex lock in the business processing unit thread, that is, presetting multiple threads under a single process of a single-node metadata service, multiple business processing unit threads can perform business processing operations at the same time without interfering with each other, so that when the single-node metadata service is loaded with a large number of business requests, a large number of business requests can be allocated to different business processing unit threads for processing, which significantly improves the performance of the metadata service in processing business requests; at the same time, compared with the current setting of mutex locks in metadata services, this application sets the mutex lock in the business processing unit thread, thereby reducing the granularity of the lock, improving the concurrent processing capability of the business processing unit thread and reducing client delay. In summary, this application can reduce the client's business delay when the metadata service is loaded with a large number of business requests, thereby improving business processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] 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, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0033] Figure 1 A flowchart of a metadata service business processing method is provided for this application;
[0034] Figure 2 A flowchart of a specific metadata service business processing method provided for this application;
[0035] Figure 3A schematic diagram of the structure of a metadata service business processing device provided by this application;
[0036] Figure 4 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION
[0037] 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 are within the scope of protection of the present invention.
[0038] In order to solve the performance bottleneck of single-node metadata, the open source community currently supports the deployment of metadata service clusters (i.e., Multi-MDS). The metadata service cluster not only solves the risk of single point failures, but also increases the ability of metadata multi-process concurrency. By distributing client requests to different MDSs through MDS load balancing to process business requests, the number of requests loaded on a single-point MDS will be reduced, thereby reducing the request latency of the MDS. For a single-node MDS, when it is loaded with a large number of business requests, the internal business logic processing cannot be processed concurrently due to the metadata service lock mechanism, making it possible for the single-node MDS to become a performance bottleneck. To this end, the present application provides a metadata service business processing method that can reduce the client's business latency when the metadata service is loaded with a large number of business requests, thereby improving business processing efficiency.
[0039] The embodiment of the present invention discloses a metadata service business processing method, see Figure 1 Said method comprises:
[0040] Step S11: obtaining a target service request sent by a client, and determining a metadata service for processing the target service request and a corresponding target service processing unit thread; the metadata service includes a preset number of service processing unit threads.
[0041] In this embodiment, obtaining the target service request sent by the client, and determining the metadata service and the corresponding target service processing unit thread for processing the target service request include: obtaining the target service request sent by the client, and determining the metadata service to be accessed based on the target service request based on the hash algorithm; determining the corresponding target service processing unit thread in the metadata service based on the hash algorithm according to the fragmentation of the operation file or directory corresponding to the target service request. That is, first determine the metadata service to be accessed through the target service request, and determine the target service processing unit thread for processing the target service request based on the information in the target service request. Through the above technical solution, compared with the current method of directly processing the service request using the process of the metadata service, this embodiment inputs the target service request into a more sophisticated operation module, namely, the target service processing unit thread, to process the target service request, so that when a single-node metadata service is loaded with a large number of service requests, a large number of service requests can be allocated to different service processing unit threads for processing, which significantly improves the performance of the metadata service in processing service requests.
[0042] Step S12: input the target service request into the target service processing unit thread and open the mutex lock of the target service processing unit thread to prohibit other service requests from entering the target service processing unit thread.
[0043] It should be pointed out that before the business processing starts, it also includes: canceling the mutex lock restriction in the metadata service and adding a corresponding mutex lock to each of the business processing threads to control the input of the business request. That is, cancel the existing mutex lock in the metadata service and delegate the mutex lock to the business processing unit thread. Furthermore, when the metadata service receives the target business request and inputs the target business request into the target business processing unit thread, the target business processing unit thread opens the corresponding mutex lock to prohibit other business requests from entering the target business processing unit thread and starting to process the target business request. Through the above technical solution, the mutex lock in the metadata service is delegated to the business processing unit thread, so that the same metadata service process can process multiple business requests simultaneously through multiple metadata processing unit threads. By reducing the granularity of the lock, the concurrent processing capability of the business processing unit thread is improved and the client delay is reduced.
[0044] Step S13: After the target service request is processed, the mutex lock of the target service processing unit thread is released, and the target service request is waited for to be processed.
[0045] In this embodiment, when the target service request has been processed in the target service processing unit thread, the mutex lock corresponding to the target service processing unit thread is released, and the subsequent target service request is waited for. Through the above technical solution, when the target service request is completed, the mutex lock corresponding to the target service processing unit thread is released, so that the target service processing unit thread can further process the subsequent target service request.
[0046] It can be seen that when performing metadata service business processing, this embodiment first determines the metadata service and the target business processing unit thread that execute the target business request by obtaining the target business request, and opens the mutex lock after the target business request enters the target business processing unit thread, and releases the mutex lock when the target business processing unit thread completes the target business processing. Therefore, when performing metadata service business processing, by presetting multiple business processing unit threads in the metadata service and setting the mutex lock in the business processing unit thread, that is, presetting multiple threads under a single process of a single-node metadata service, multiple business processing unit threads can perform business processing operations at the same time without interfering with each other, so that when a single-node metadata service is loaded with a large number of business requests, a large number of business requests can be allocated to different business processing unit threads for processing, which significantly improves the performance of the metadata service in processing business requests; at the same time, compared with the current setting of the mutex lock in the metadata service, this application sets the mutex lock in the business processing unit thread, thereby reducing the granularity of the lock, improving the concurrent processing capability of the business processing unit thread and reducing client latency. In summary, this application can reduce the client's service delay and thus improve service processing efficiency when the metadata service is loaded with a large number of service requests.
[0047] See also Figure 2 As shown, the embodiment of the present invention discloses a specific metadata service business processing method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.
[0048] Step S21: Initialize the metadata service and synchronously create a preset number of the business processing unit threads, and then add the preset number of business processing unit threads to a set of business processing unit management layers.
[0049] In this embodiment, the metadata service is first initialized and a preset number of business processing unit threads are created. It can be understood that the preset number can be configured according to the actual application scenario. In some specific implementations, the preset number is 2. nThe business processing unit threads can all process business requests, and the preset number of business processing unit threads are added to a set of business processing management layers, so that the preset number of business processing unit threads can be managed uniformly through the business processing management layer.
[0050] In some specific implementations, the function modules in the metadata service that are not related to the business process are placed in the public processing area, and the function modules that are related to the business process are placed in the business processing unit thread to create a preset number of the business processing unit threads. The function modules that are not related to the business process include but are not limited to the management thread module, the heartbeat mechanism module and the information interaction module; the function modules that are related to the business process include but are not limited to the cache memory, the business processing core module, and the log recording module. Through the above technical solution, the function modules that are not related to the business process are placed in the public processing area, so that the function modules in the public area can be directly used when processing business requests that are not related to the business process, thereby improving the efficiency of business request processing.
[0051] In some specific implementations, the business processing unit management layer constructs a state set of the business processing unit threads and collects the states of the business processing unit threads to interact with the supervision system of the metadata service. The states of the business processing unit threads include but are not limited to active (i.e., providing service state) and standby (i.e., dormant state); when a fault occurs and the fault is recovered, the business processing unit management layer needs to coordinate the process of enabling the recovery of all business processing unit threads, so that each business processing unit thread can rebuild the cache content, and after completion, the business processing unit management layer is notified, and the business processing unit management layer and the supervision module interact to switch the state.
[0052] In some specific implementations, when an external input command is received, the business processing unit management layer is used to collect information corresponding to each of the business processing unit threads and display them uniformly. That is, when an external command is input, the business processing unit management layer counts the information of each business processing unit thread, and performs unified feedback and display. Through the above technical solution, the business processing unit threads are uniformly managed using the business processing unit management layer, so that the work of each business processing unit thread and the interaction with other functional modules can be coordinated through the business processing unit management layer.
[0053] Step S22: Acquire the target service request sent by the client, and determine the metadata service and the corresponding target service processing unit thread for processing the target service request; the metadata service includes a preset number of service processing unit threads.
[0054] Step S23: input the target service request into the target service processing unit thread and open the mutex lock of the target service processing unit thread to prohibit other service requests from entering the target service processing unit thread.
[0055] Step S24: when the target service request is processed, the mutex lock of the target service processing unit thread is released, and the target service request is waited for to be processed.
[0056] In this embodiment, by creating a configurable preset number of the business processing unit threads, the metadata service can simultaneously process multiple business requests, and the number of business requests that can be processed simultaneously in the metadata server can be changed by configuring the preset number to meet the needs of different scenarios; on the other hand, the functional modules unrelated to the business process are placed in the public processing area, so that the functional modules in the public area can be directly used when processing business requests unrelated to the business process, thereby improving the efficiency of business request processing; at the same time, the business processing unit threads are uniformly managed using the business processing unit management layer, and when the state changes, the business processing unit management layer and the supervision module can interact to switch the state, and the work of each business processing unit thread and the interaction with other functional modules can be coordinated through the business processing unit management layer.
[0057] See also Figure 3 The embodiment of the present application discloses a metadata service business processing device, including:
[0058] The service request acquisition module 11 is used to acquire the target service request sent by the client, and determine the metadata service and the corresponding target service processing unit thread for processing the target service request; the metadata service includes a preset number of service processing unit threads;
[0059] A service request processing module 12, configured to input the target service request into the target service processing unit thread and open the mutex lock of the target service processing unit thread to prohibit other service requests from entering the target service processing unit thread;
[0060] The mutex lock releasing module 13 is used to release the mutex lock of the target service processing unit thread after the target service request is processed, and wait for processing of subsequent target service requests.
[0061] It can be seen that when performing metadata service business processing, this embodiment first determines the metadata service and the target business processing unit thread that execute the target business request by obtaining the target business request, and opens the mutex lock after the target business request enters the target business processing unit thread, and releases the mutex lock when the target business processing unit thread completes the target business processing. Therefore, when performing metadata service business processing, by presetting multiple business processing unit threads in the metadata service and setting the mutex lock in the business processing unit thread, that is, presetting multiple threads under a single process of a single-node metadata service, multiple business processing unit threads can perform business processing operations at the same time without interfering with each other, so that when a single-node metadata service is loaded with a large number of business requests, a large number of business requests can be allocated to different business processing unit threads for processing, which significantly improves the performance of the metadata service in processing business requests; at the same time, compared with the current setting of the mutex lock in the metadata service, this application sets the mutex lock in the business processing unit thread, thereby reducing the granularity of the lock, improving the concurrent processing capability of the business processing unit thread and reducing client latency. In summary, this application can reduce the client's service delay and thus improve service processing efficiency when the metadata service is loaded with a large number of service requests.
[0062] In some specific embodiments, the metadata service business processing module further includes:
[0063] A thread creation module, used to initialize the metadata service and synchronously create a preset number of business processing unit threads;
[0064] The management layer configuration module is used to add the preset number of business processing unit threads to the set of business processing unit management layers.
[0065] In some specific embodiments, the metadata service business processing module further includes:
[0066] The state interaction module is used to construct a state set of the business processing unit thread at the business processing unit management layer and collect the state of the business processing unit thread to interact with the supervision system of the metadata service.
[0067] In some specific embodiments, the thread creation module is specifically used to: place functional modules in the metadata service that are not related to the business process into a public processing area and place functional modules related to the business process into the business processing unit thread to create a preset number of business processing unit threads.
[0068] In some specific embodiments, the metadata service business processing module further includes:
[0069] The information display module is used to collect information corresponding to each of the business processing unit threads using the business processing unit management layer and display it uniformly when receiving an external input command.
[0070] In some specific embodiments, the metadata service business processing module further includes:
[0071] The mutex lock decentralization module is used to cancel the mutex lock restriction in the metadata service and add a corresponding mutex lock to each of the business processing threads to control the input of the business request.
[0072] In some specific embodiments, the service request acquisition module 11 specifically includes:
[0073] A metadata service determination unit, used to obtain a target service request sent by a client, and determine a metadata service to be accessed based on a hash algorithm according to the target service request;
[0074] A thread determination unit is used to determine the corresponding target business processing unit thread in the metadata service based on a hash algorithm according to the fragmentation of the operation file or directory corresponding to the target business request.
[0075] Figure 4 An electronic device 20 provided in an embodiment of the present application is shown. The electronic device 20 may further include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the metadata service business processing method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may be specifically an electronic computer.
[0076] In this embodiment, the power supply 23 is used to provide voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0077] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0078] The operating system 221 is used to manage and control the hardware devices on the electronic device 20, and the computer program 222 may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the metadata service business processing method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include a computer program that can be used to complete other specific tasks.
[0079] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the metadata service business processing method disclosed above. The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, and will not be repeated here.
[0080] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0081] The metadata service business processing method, device, equipment and medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A metadata service business processing method, characterized in that: include: Obtaining a target service request sent by a client, and determining a metadata service for processing the target service request and a corresponding target service processing unit thread; The metadata service includes a preset number of business processing unit threads; Inputting the target service request into the target service processing unit thread and opening the mutex lock of the target service processing unit thread to prohibit other service requests from entering the target service processing unit thread; When the target service request is processed, the mutex lock of the target service processing unit thread is released, and the subsequent target service request is waited for to be processed; The step of obtaining a target service request sent by a client and determining a metadata service for processing the target service request and a corresponding target service processing unit thread includes: Obtaining a target service request sent by a client, and determining a metadata service to be accessed based on a hash algorithm according to the target service request; Determine the target business processing unit thread corresponding to the metadata service based on the hash algorithm according to the slice of the operation file or directory corresponding to the target business request; Wherein, before obtaining the target service request sent by the client and determining the metadata service for processing the target service request and the corresponding target service processing unit thread, the method further includes: Initializing the metadata service and synchronously creating a preset number of the business processing unit threads; the initializing the metadata service and synchronously creating a preset number of the business processing unit threads includes: placing the function modules in the metadata service that are not related to the business process into the public processing area and placing the function modules related to the business process into the business processing unit threads to create a preset number of the business processing unit threads; Adding the preset number of business processing unit threads to a set of business processing unit management layers; Constructing a state set of the business processing unit thread at the business processing unit management layer and collecting the state of the business processing unit thread to interact with the supervision system of the metadata service; When receiving an external input command, the business processing unit management layer is used to collect information corresponding to each of the business processing unit threads and display them uniformly; Among them, the status of the business processing unit thread includes providing service status and sleeping status; when the fault is recovered after a fault occurs, the business processing unit management layer coordinates the recovery process of all the business processing unit threads, so that each business processing unit thread rebuilds the cache content, and after completion, notifies the business processing unit management layer, and the business processing unit management layer and the supervision module interact to perform state switching.
2. The metadata service business processing method according to claim 1, characterized in that: Also includes: The mutex restriction in the metadata service is cancelled and a corresponding mutex is added to each of the business processing threads to control the input of the business request.
3. A metadata service business processing device, characterized in that: include: A service request acquisition module, used to acquire a target service request sent by a client, and determine a metadata service for processing the target service request and a corresponding target service processing unit thread; The metadata service includes a preset number of business processing unit threads; A service request processing module, used for inputting the target service request into the target service processing unit thread and opening the mutex lock of the target service processing unit thread to prohibit other service requests from entering the target service processing unit thread; A mutex lock release module, used to release the mutex lock of the target service processing unit thread after the target service request is processed, and wait for processing of subsequent target service requests; The service request acquisition module specifically includes: A metadata service determination unit, used to obtain a target service request sent by a client, and determine a metadata service to be accessed based on a hash algorithm according to the target service request; A thread determination unit, configured to determine a target business processing unit thread corresponding to the metadata service based on a hash algorithm according to a slice of an operation file or directory corresponding to the target business request; The metadata service business processing module further includes: A thread creation module, used to initialize the metadata service and synchronously create a preset number of the business processing unit threads; wherein the thread creation module is specifically used to place the function modules in the metadata service that are not related to the business process into the public processing area and place the function modules related to the business process into the business processing unit threads to create a preset number of the business processing unit threads; A management layer configuration module, used to add the preset number of business processing unit threads to a set of business processing unit management layers; A state interaction module, used to construct a state set of the business processing unit thread at the business processing unit management layer and collect the state of the business processing unit thread to interact with the supervision system of the metadata service; An information display module is used to collect information corresponding to each of the business processing unit threads using the business processing unit management layer and display it uniformly when receiving an external input command; wherein the status of the business processing unit thread includes providing service status and sleeping status; when recovering from a fault, the business processing unit management layer coordinates the recovery process of all the business processing unit threads, so that each of the business processing unit threads rebuilds the cache content, and after completion, notifies the business processing unit management layer, and the business processing unit management layer and the supervision module interact to switch the status.
4. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the metadata service business processing method as described in claim 1 or 2.
5. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the metadata service business processing method as claimed in claim 1 or 2 are implemented.
