Multi-task parallel processing system for digital business hall equipment terminals
By introducing task scheduling, resource management, security protection, user experience and intelligent operation and maintenance modules into digital business hall terminal equipment, the problems of uneven system resource allocation and insufficient load balancing are solved, and efficient task execution and high-quality user experience are achieved. Improved system performance and user satisfaction.
Patent Information
- Application Number
- CN202410874903.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing digital business hall terminal equipment suffers from uneven system resource allocation and insufficient load balancing when processing multitasking, resulting in long queue waiting times for urgently needed requests and reducing the overall throughput of the service.
It adopts task scheduling module, resource management module, security protection module, user experience module and intelligent operation and maintenance module to improve processing by intelligently allocating user requests, optimizing resource utilization, providing smooth interface and personalized recommendations, real-time monitoring of system status and predicting faults. Speed and responsiveness.
It ensures that urgently needed requests can be processed first, improves system response speed and overall performance, reduces request processing delays or freezes caused by system overload, and significantly improves user satisfaction.
Smart Images

Figure CN118409847B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology, and in particular relates to a multi-task parallel processing system for digital business hall equipment terminals. Background Art
[0002] As an interactive interface directly facing users, digital business hall terminal equipment undertakes multiple functions such as business consultation, self-service, product display, and transaction processing. In order to ensure rapid response and processing of a large number of concurrent user requests and improve service quality and efficiency, multi-task parallel processing systems have become the core technical requirements of such terminals; however, existing digital business hall terminal equipment faces a series of challenges when processing multiple tasks; first, the uneven distribution of system resources, especially when processing complex or resource-intensive tasks, may cause system bottlenecks and affect the normal execution of other tasks; secondly, the lack of an effective load balancing mechanism makes some requests that need to be processed urgently wait in line for too long, reducing the overall throughput of the service.
[0003] For example, a Chinese patent with authorization announcement number CN109144703B discloses a multi-task processing method and a terminal device thereof, the method comprising: obtaining a multi-task list for parallel processing from a terminal device; obtaining at least one connectable device that can establish a connection with the terminal device within a preset range of the terminal device; matching the tasks in the multi-task list with the at least one connectable device based on the task features in the multi-task list and the device features of the at least one connectable device; and distributing the successfully matched tasks in the multi-task list to the matching connectable devices based on the matching results.
[0004] For example, the patent application with the publication number CN110188102A discloses a system and method for parallel processing of multi-source energy consumption data in a factory, including a multi-source energy consumption data acquisition topology model, a multi-source real-time energy consumption data parallel processor and a multi-source energy consumption data storage device. The multi-source energy consumption data acquisition topology model adopts a multi-level tree topology network. The multi-source energy consumption data acquisition intelligent terminal with multiple data acquisition protocols is directly connected to the intelligent instrument or PLC. The factory public auxiliary equipment is equipped with RTU to obtain data and transmit it wirelessly. The multi-source real-time energy consumption data parallel processor regards the energy consumption data acquisition terminal, RTU and intelligent instrument as distributed data source nodes. The processor has a built-in real-time multi-task scheduling model algorithm to optimize the multi-source data acquisition processing efficiency. The multi-source energy consumption data storage device stores data in real-time and historical data dual modes. The real-time database transmits to the historical database in one direction. The historical database stores processed real-time energy consumption data and energy consumption cumulative statistical data, energy consumption status evaluation simulation data, etc.
[0005] The above existing technologies have the following problems: the existing technologies cannot accurately understand user request behavior. After resources and memory are loaded, system resources are unevenly distributed, resulting in the inability to process requests that need to be processed in a timely manner. In addition, some technologies only consider the urgency of the request and ignore system resources and loads, resulting in delays in the request processing process. In order to solve the above problems, the present invention provides a multi-task parallel processing system for digital business hall equipment terminals. Summary of the invention
[0006] In view of the shortcomings of the prior art, the present invention proposes a multi-task parallel processing system for digital business hall equipment terminals, which aims to achieve efficient task execution and high-quality user experience through task scheduling, resource management, security protection, user experience and intelligent operation and maintenance modules. Specifically, the task scheduling module is used to intelligently allocate user requests, the resource management module is used to optimize resource utilization, the security protection module is used to ensure system security, the user experience module is used to provide a smooth interface and personalized recommendations to enhance user satisfaction, and the intelligent operation and maintenance module is used to monitor the system status in real time, predict and repair faults. The system in the present invention not only improves the processing speed and response efficiency of the digital business hall equipment terminals, but also significantly improves the overall performance and user satisfaction through comprehensive security protection and user experience optimization.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A multi-task parallel processing system for digital business hall equipment terminals, including: a task scheduling module and a resource management module;
[0009] The task scheduling module is used to receive and analyze the attributes of user requests from the front end, assign the requests to the corresponding priority queues and execute them according to the request attributes, and predict user behavior and preload resources during the request execution interval; task queue management unit, parallel processing unit and intelligent preloading unit;
[0010] An intelligent preloading unit is used to predict the service request that the user is about to initiate based on the configured behavior prediction model, obtain the corresponding preloading time based on the predicted request, and configure the obtained preloading time in the task queue management unit to preload the resources and data required by the user request;
[0011] The task queue management unit is used to receive and analyze the attributes of user requests, and to mark the priority attributes of user requests through the configured automatic marking algorithm, and to dynamically allocate user requests to the corresponding execution queue through the configured adaptive matching strategy;
[0012] A parallel processing unit is used to execute user requests in the corresponding queues in parallel through a configured priority hierarchical execution strategy according to multi-core CPU resource attributes and user request priorities in the corresponding queues, GPU resource attributes and user request priorities in the corresponding queues and preloaded resources and data;
[0013] Resource management module, used to dynamically monitor, allocate, recycle and optimize the memory, cache, CPU and GPU resources in the system; the resource management module includes a memory management unit and a resource allocation unit;
[0014] The memory management unit is used to monitor the memory usage data of the multi-core CPU or GPU in real time, and use the cache optimization strategy according to the monitored data to dynamically allocate memory to the queue that executes the user request; the resource allocation unit is used to evaluate the CPU or GPU resources required for the parallel execution of the corresponding queue according to the user request attributes corresponding to the current execution queue, and dynamically adjust the resource allocation of the current execution queue on the CPU and GPU according to the evaluation results, and monitor the resource utilization efficiency in real time.
[0015] The specific execution steps of the task queue management unit include:
[0016] A1. Receive user requests from the front end, analyze the attributes of each user request, and use the automatic labeling algorithm to label the user request with a numerical priority based on the analysis results;
[0017] A2. Real-time monitoring of system status data and queue usage status data, and pre-loading of the system status data and the queue usage status data through the configured pre-loading time, and at the same time, evaluating the load and idleness comprehensive score of each corresponding queue at the current moment according to the configured queue evaluation algorithm, taking the comprehensive score as the priority of the corresponding queue, and arranging the queues in descending order of priority; the system status data includes CPU or GPU usage, memory occupancy, and disk I / O rate;
[0018] A3. According to the obtained user request priority and queue execution priority, the user request is assigned to the corresponding queue through the configured adaptive matching strategy, and the assignment process is adjusted according to the status and performance indicator data monitored in real time by the system;
[0019] The specific steps of the adaptive matching strategy in the task queue management unit include:
[0020] A31. Build a matching model based on the rule matching algorithm, input the obtained user request priority and queue execution priority into the matching model to perform initial matching of user request and queue, and execute the initial matching user request and queue to obtain the response time, throughput and resource utilization during the execution process;
[0021] A32, collects the response time, throughput and resource utilization of the user request-queue execution process after the historical initial matching to build a comprehensive matching adjustment threshold, and uses the response time, throughput and resource utilization obtained in real time by A31 to calculate the comprehensive matching adjustment amount. If the comprehensive matching adjustment amount exceeds the comprehensive matching adjustment threshold, the initial matching is adjusted and the secondary optimal matching is obtained. If not, no adjustment is made;
[0022] In the parallel processing unit, the specific steps of executing the priority hierarchical execution strategy include:
[0023] B1. According to the maximum allocatable resources that the CPU or GPU in the resource allocation unit can currently provide, the CPU or GPU resources required for parallel execution of the corresponding queue of the user request, and the memory allocated by the memory management unit, a first-layer priority execution number threshold is set;
[0024] B2. According to the obtained first-layer priority execution number threshold, A3 is adaptively matched to the user request priorities in the corresponding queues, and the resources required by the corresponding user requests are compared with the maximum allocatable resources of the system, and the user requests that meet the priority and resource conditions are extracted, and the number of the extracted user request queues does not exceed the first-layer priority execution number threshold, and the extracted user request queues are put into the CPU or GPU for execution as the first current executable layer, and the completion status of the execution queue is monitored in real time;
[0025] The user requests in the corresponding queues that are adaptively matched by A3 are sorted by priority, and the resources required by the corresponding user requests are compared with the maximum allocatable resources of the system. The specific steps of extracting user requests that meet the priority and resource conditions include:
[0026] Get the current maximum available resources, sort the user requests in the current queue by priority, and allocate resources to the user requests in order of priority. If the current resources cannot meet the user requests of the current priority, determine whether resources can be allocated to user requests of other priorities in the order of priority, until all user requests of all priorities have been determined.
[0027] B3, monitoring the completion status of the execution queue, obtaining the maximum allocatable resource at the current moment, and using the obtained maximum allocatable resource to set the second layer priority execution number threshold, extracting the second current executable layer through the execution queue extraction process in B2, and placing the extracted second current executable layer on the CPU or GPU for parallel execution;
[0028] B4. Repeat the above B2-B3 process until all user requests in the queue are executed;
[0029] The calculation process of the preloading time in the intelligent preloading unit includes:
[0030] K1. Use the configured behavior prediction model to input partial search behavior feature information of the current user and obtain the probability distribution of the complete request behavior taken by the user. ,in Indicates i The probability of a complete request behavior occurring;
[0031] K2: For each complete request behavior, use the configured evaluation algorithm to evaluate the required resources for the complete request behavior. ; Indicates the corresponding i The total amount of resources required for a complete request behavior to occur; wherein the evaluation algorithm includes a comprehensive fuzzy evaluation algorithm;
[0032] K3, real-time monitoring or preset user's current network environment, and use the statistical method configured in combination with historical data to estimate the i The average loading time of the corresponding resource for the complete request behavior , the network environment includes network bandwidth and network latency ;
[0033] K4, based on K1-K3, calculate the i The expected resource loading time for a complete request behavior to occur , the specific formula is: ,in Indicates the digital business hall equipment terminal server response time and resolution time;
[0034] K5. According to i The probability of a complete request behavior occurring , weighted calculation to obtain the probability distribution of complete request behavior corresponding to the total pre-loading time The specific formula is ,in n Indicates the number of probabilities in the probability distribution corresponding to the complete request behavior taken by the user.
[0035] Specifically, A2 evaluates the load and idleness comprehensive score of each corresponding queue at the current moment according to the configured queue evaluation algorithm, including the following specific steps:
[0036] A21. Based on the real-time monitoring system status data, the idleness index score is calculated. The specific formula is:
[0037] ,
[0038] in Indicates the CPU or GPU usage of the server corresponding to the digital business hall equipment terminal. Indicates the memory usage of the server corresponding to the digital business hall equipment terminal. Indicates the disk I / O rate of the digital business hall equipment terminal corresponding to the server. Indicates that over time t Changing disk I / O weight coefficients;
[0039] A22. Calculate the load index score based on the real-time monitoring queue usage status data. The specific formula includes:
[0040] ,
[0041] in Indicates the load indicator score of the corresponding queue. Indicates the number of user requests initiated at the same time. Indicates the type indicator of each user request, Indicates the resource demand indicator for each user request; The corresponding indicator over time t Dynamically changing weighting coefficients;
[0042] A23. Calculate the load and idleness comprehensive scores of each corresponding queue based on the load index score and idleness index score calculated above. ,in Indicates that over time t The weight coefficient of the change.
[0043] Specifically, the specific steps of A2 evaluating the load and idleness comprehensive score of each corresponding queue at the current moment according to the configured queue evaluation algorithm also include:
[0044] A24. Collect disk I / O rates and their corresponding weight coefficients in historical system status data , the number of user requests initiated at the same time in the queue usage status data, the type indicator of each user request, the resource demand indicator of each user request and their corresponding weight coefficients The load index score of the corresponding queue in the queue processing data and its corresponding weight coefficient , and normalize the acquired data;
[0045] A25. Build a dynamic weight adjustment model based on the online machine learning model, input the preprocessed system status data, queue usage status data, and queue processing data into the dynamic weight adjustment model, set the model training loss based on minimizing processing delay and maximizing throughput, and obtain the trained dynamic weight adjustment model;
[0046] A26. Collect real-time system status data, queue usage status data, and queue processing data, and input the collected data into the dynamic weight adjustment model to output the corresponding time point t The weight adjustment amount for , and The weights are adjusted dynamically.
[0047] Specifically, the processing system further includes a user experience module, and the user experience module includes a personalized recommendation unit. The specific steps of the personalized recommendation unit corresponding to the workflow include:
[0048] G1. Monitor and obtain user behavior data, and pre-process the monitored user behavior data to obtain user behavior data in a unified data format;
[0049] G2. Set the contribution rate threshold to 0.8, use the principal component analysis algorithm to reduce the dimension of the preprocessed user behavior data, obtain the contribution rate of the corresponding variable in the user behavior data, and compare the calculated contribution rate with the contribution rate threshold to obtain effective behavior analysis features.
[0050] Specifically, the specific steps of the workflow corresponding to the personalized recommendation unit also include:
[0051] G3. Use a deep learning algorithm to build a behavior prediction model, and input the acquired effective behavior analysis features into the constructed behavior prediction model for training, to obtain a trained behavior prediction model;
[0052] G4. Deploy the obtained behavior prediction model to the personalized recommendation unit and the intelligent preloading unit, and analyze and obtain the complete search behavior feature information of the user based on the partial search behavior feature information input by the user in real time by using the personalized recommendation unit;
[0053] G5. Recommend the user's complete search behavior characteristic information corresponding to the partial search behavior characteristic information to the user using a recommendation algorithm, and feed back the user request corresponding to the recommended user's complete search behavior characteristic information to the intelligent preloading unit, and use the acquired preloading time to preload the resources and data corresponding to the user's complete search behavior characteristic information.
[0054] Compared with the prior art, the present invention has the following beneficial effects:
[0055] 1. In view of the deficiencies in the prior art, the present invention firstly configures an adaptive matching strategy to intelligently allocate requests and queues according to the obtained request priority and queue comprehensive score, thereby ensuring that requests that need to be processed urgently are processed first; secondly, the user's behavior is predicted according to the configured behavior prediction model, and the corresponding request is predicted based on the prediction structure, and the pre-loading time is calculated, and the obtained pre-loading time is used to pre-load resources and data, thereby reducing the user waiting time and improving the system response speed.
[0056] 2. In view of the deficiencies of the prior art, the present invention performs dynamic hierarchical extraction on the queue to which the assigned requests have been completed by configuring a priority hierarchical execution strategy. It not only takes into account the priority of the corresponding request, but also compares the maximum resources and memory that the system can currently provide with the request attributes. Under the premise of ensuring that high-priority requests are executed first, the system load is kept in a balanced state in real time, thereby reducing the problem of request processing delays or freezes caused by system overload. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 This is a module structure diagram of a multi-task parallel processing system for a digital business hall equipment terminal according to Embodiment 1 of the present invention;
[0058] Figure 2 This is a flowchart of the personalized recommendation unit according to Embodiment 1 of the present invention;
[0059] Figure 3 This is a logical structure diagram of the emotion recognition evaluation model in Example 1 of the present invention. DETAILED DESCRIPTION
[0060] Example 1
[0061] See also Figure 1 , an embodiment provided by the present invention: a multi-task parallel processing system for a digital business hall equipment terminal, comprising: a task scheduling module, a resource management module, a security protection module, a user experience module, and an intelligent operation and maintenance module;
[0062] The task scheduling module is used to receive and analyze the user request attributes from the front end, assign the request to the corresponding priority queue and execute it according to the request attributes, and predict user behavior and preload resources during the request execution interval;
[0063] The task scheduling module includes a task queue management unit, a parallel processing unit and an intelligent preloading unit;
[0064] An intelligent preloading unit is used to predict the service request that the user is about to initiate based on the configured behavior prediction model, obtain the corresponding preloading time based on the predicted request, and configure the obtained preloading time in the task queue management unit to preload the resources and data required by the user request;
[0065] The task queue management unit is used to receive and analyze the attributes of user requests, and to mark the priority attributes of user requests through the configured automatic marking algorithm, and to dynamically allocate user requests to corresponding execution queues through the configured adaptive matching strategy; further, the specific execution steps of the unit include:
[0066] A1. Receive user requests from a front end (such as a Web interface, an API interface, etc.), analyze the attributes of each user request, and use an automatic labeling algorithm to label the user request with a numerical priority according to the analysis result; the user request attributes include type, priority, and resource requirements; further, in this embodiment, the specific steps of labeling the user request with a numerical priority using the automatic labeling algorithm include:
[0067] A11. Parse the URL and request header of the user request through the configured request type identification algorithm to identify the type of request; the request type identification algorithm includes URL pattern matching and machine learning classifier; the request types include query request, update request and delete request;
[0068] A12. According to the request type and the custom field in the request header, the priority of the corresponding request is automatically marked using the automatic marking algorithm deployed by the task queue management unit; wherein the automatic marking algorithm of this embodiment adopts a statistics-based automatic marking algorithm, specifically:
[0069] A121. Collect historical user request data, perform preprocessing, and use expert experience to annotate the collected user requests with corresponding request types, resource requirements, user permissions or levels, and priorities;
[0070] A122. Use the conditional random field CRF to build an automatic labeling model, use the labeled user request data to train the built model, obtain the trained automatic labeling model, and deploy the trained automatic labeling model to the task queue management unit;
[0071] A2. Real-time monitoring of system status and queue usage status data, and preloading of system status and queue usage status data through a configured preload time, and at the same time, according to a configured queue evaluation algorithm, evaluating the load and idleness comprehensive score of each corresponding queue at the current moment, taking the comprehensive score as the priority of the corresponding queue, and arranging the queues in descending order of priority; wherein, the system status data includes CPU or GPU usage rate, memory occupancy rate, and disk I / O rate; the queue usage status data includes the number of tasks, task type, task priority, and resource demand; further, in this embodiment, according to the configured queue evaluation algorithm, the specific steps of evaluating the load and idleness comprehensive score of each corresponding queue at the current moment include:
[0072] A21. Based on the real-time monitoring system status data, the idleness index score is calculated. The specific formula is:
[0073] ,
[0074] in Indicates the CPU or GPU usage of the server corresponding to the digital business hall equipment terminal. Indicates the memory usage of the server corresponding to the digital business hall equipment terminal. Indicates the disk I / O rate of the digital business hall equipment terminal corresponding to the server. Indicates that over time t A variable disk I / O weight factor that is adjusted based on the sensitivity of disk access to system performance;
[0075] A22. Calculate the load index score based on the real-time monitoring queue usage status data. The specific formula includes:
[0076] ,
[0077] in Indicates the load indicator score of the corresponding queue. Indicates the number of user requests initiated at the same time. Indicates the type indicator of each user request. In this embodiment, the request type is marked with a numerical value, for example, a query request is marked as 1, an update request is marked as 2, and a delete request is marked as 3; Indicates the resource demand indicator for each user request; is the dynamic weighting coefficient of the corresponding indicator changing with time t;
[0078] A23. Calculate the load and idleness comprehensive scores of each corresponding queue based on the load index score and idleness index score calculated above. ,in Indicates that over time tA variable weight coefficient between 0 and 1, used to balance the proportion of load and idleness;
[0079] A24. Collect disk I / O rates and their corresponding weight coefficients in historical system status data , the number of user requests initiated at the same time in the queue usage status data, the type indicator of each user request, the resource demand indicator of each user request and their corresponding weight coefficients The load index score of the corresponding queue in the queue processing data and its corresponding weight coefficient , and normalize the acquired data; queue processing data includes the average processing time, completion rate, timeout rate of each queue in the past period of time, and the delay time for request priority at the current time point (such as weekdays / weekends, peak hours / off-peak hours);
[0080] A25. Build a dynamic weight adjustment model based on the online machine learning model, input the pre-processed system status data, queue usage status data, and queue processing data into the dynamic weight adjustment model, set the model training loss based on minimizing processing delay and maximizing throughput, and obtain the trained dynamic weight adjustment model; the online machine learning model includes an online gradient descent algorithm, a random forest, or an XGBoost algorithm;
[0081] A26. Collect real-time system status data, queue usage status data, and queue processing data, and input the collected data into the dynamic weight adjustment model to output the corresponding time point t The weight adjustment amount for the above , and Make dynamic adjustments;
[0082] A3. According to the acquired user request priority and queue execution priority, the user request is allocated to the corresponding queue through the configured adaptive matching strategy, and the allocation process is adjusted according to the status and performance indicator data monitored in real time by the system, wherein the real-time status and performance indicators include response time, throughput, and resource utilization; further, the specific steps of the adaptive matching strategy in the task queue management unit of this embodiment include:
[0083] A31. Construct a matching model based on a rule matching algorithm, input the obtained user request priority and queue execution priority into the matching model for initial matching of user request and queue, and execute the response time, throughput and resource utilization rate of the initial matched user request and queue during the execution process; further, the rule matching algorithm in this embodiment includes a decision tree, a heuristic algorithm, a Bayesian network, a fuzzy logic algorithm and a random forest algorithm;
[0084] A32, collect the response time, throughput and resource utilization rate in the user request-queue execution process after the historical initial matching to build a comprehensive matching adjustment threshold, and use the response time, throughput and resource utilization rate obtained in real time by A31 to calculate the comprehensive matching adjustment amount, and compare the obtained comprehensive matching adjustment amount. If the comprehensive matching adjustment amount exceeds the comprehensive matching adjustment threshold, the initial matching is adjusted to obtain the secondary optimal matching. If it does not exceed, no adjustment is made. The specific calculation formula of the comprehensive matching adjustment amount in this embodiment is:
[0085] ,
[0086] in, Indicates the current t The comprehensive matching adjustment at the moment, Indicates the current average response time. Indicates the set response time threshold. represents the throughput at the current moment, represents the target throughput or the desired throughput level, Indicates the resource utilization at the current moment. represents the ideal resource utilization obtained by using the configured support vector machine analysis based on historical data; represents the corresponding weighting coefficient, which is determined by those skilled in the art through a large number of experiments;
[0087] A33. Repeat the process of A32 to ensure that the user request and the queue are always in the best matching state;
[0088] The parallel processing unit is used to execute user requests in the corresponding queues in parallel according to the multi-core CPU resource attributes and the user request priorities in the corresponding queues, the GPU resource attributes and the user request priorities in the corresponding queues and the preloaded resources and data, through the configured priority hierarchical execution strategy, and after the request execution is completed, recycle and release the occupied resources;
[0089] Furthermore, the specific steps of executing the priority hierarchical execution strategy in the parallel processing unit of this embodiment include:
[0090] B1. According to the maximum allocatable resources that the CPU or GPU in the resource allocation unit can currently provide, the CPU or GPU resources required for parallel execution of the corresponding queue of the user request, and the memory allocated by the memory management unit, a first-layer priority execution number threshold is set; wherein the first-layer priority execution number threshold changes dynamically with the change of the maximum allocatable resources; illustratively, the first-layer priority execution number threshold of this embodiment is formulated according to the current maximum available resources and memory;
[0091] B11. Assume that the current maximum available resources and memory are 2 CPU or GPU cores and 2 units of memory respectively; assume that the current execution queue includes user request 1, user request 2 and user request 3, and the corresponding priority order is user request 3> user request 1> user request 2, the resources and memory required for user request 1 are 1 CPU and 0.5 units of memory, the resources and memory required for user request 2 are 0.5 CPU and 0.5 units of memory, and the resources and memory required for user request 3 are 1 CPU and 3 units of memory;
[0092] B12. Through comparison, it is found that user request three has the highest priority but the corresponding resources and memory are insufficient, while user request one and user request two satisfy the maximum available resources and memory. Then, the corresponding resources and memory are first allocated to user request one according to the priority. After the allocation, the remaining resources and memory can still satisfy user request two. Then, resources and memory continue to be allocated to user request two, and the corresponding queues of user request one and user request two that are allocated resources and memory are placed on the CPU or GPU for execution. At this time, the first-level priority execution number threshold obtained is 2; and user request three is placed in the remaining waiting queue. When the resources are released and the corresponding maximum available resources and memory are satisfied, resources and memory are allocated to user request three.
[0093] B13, if user request 4 appears before user request 1 and user request 2 are executed, the required resources and memory are 0.5 CPU and 1 unit memory, and the remaining maximum available resources and memory are compared to meet the conditions, and the remaining resources are allocated to user request 4. At this time, the first layer priority execution number threshold is changed to 3;
[0094] B14. When the maximum available resources and memory satisfy the user request three and the user request three has the highest priority, resources and memory are allocated to the user request three first and executed. That is, when the resource and memory conditions are met, the user requests are executed in the order of priority. When a request with a high priority appears but its corresponding resources and memory do not meet the conditions, it is put into the waiting queue. When the conditions are met, the corresponding user request queue is executed first.
[0095] Through the above process, requests with the maximum available resources and more memory can be executed first, and the system can be load balanced in real time;
[0096] B2. According to the obtained first-layer priority execution number threshold, A3 is adaptively matched to the user request priorities in the corresponding queues for sorting, and the resources and memory required by the corresponding priority user requests are compared with the maximum allocatable resources and memory of the system, user requests that meet the priority, resource and memory conditions are extracted, and the number of extracted user request queues does not exceed the first-layer priority execution number threshold, the extracted user request queues are put into the CPU or GPU for execution as the current executable layer, and the completion status of the execution queue is monitored in real time;
[0097] B3. According to the completion status of the monitoring execution queue, the second maximum allocatable resources and memory at the current moment are obtained, and the second maximum allocatable resources and memory are used to set the second layer priority execution number threshold, and the second current executable layer is extracted through the execution queue extraction process in B2, and the extracted second current executable layer is placed on the CPU or GPU for parallel execution; illustratively, the specific steps of obtaining the second layer priority execution number threshold include:
[0098] B31. Assume that there are currently 10 queues in execution, 2 of which are completed, releasing 2 units of memory and 1 CPU or GPU core;
[0099] B32, among the remaining unexecuted queues, there are 3 queues that require 0.5 units of memory and 0.5 CPU cores respectively, and 1 queue requires 1.5 units of memory and 2 GPU cores. Assume that the 3 queues in B32 that require 0.5 units of memory and 0.5 CPU cores correspond to user request five, user request six, and user request seven respectively, and the 1 queue that requires 1.5 units of memory and 2 GPU cores corresponds to user request eight, and the corresponding user request priorities are: user request five>user request six>user request eight>user request seven;
[0100] B33, based on the released memory, remaining resources and B11-B14 settings, the second layer priority execution number threshold at the current moment is obtained as 3, and after comparing the user request priority, required memory and resources, user request 5, user request 6 and user request 7 are extracted and put on the CPU or GPU for parallel execution;
[0101] B4. Repeat the above B2-B3 process until all queue requests are extracted layer by layer and executed;
[0102] Resource management module, which is used to dynamically monitor, allocate, recycle and optimize the memory, cache, CPU and GPU resources in the system to ensure stable operation and performance optimization of the system under high load; the resource management module includes memory management unit, resource allocation unit and resource optimization unit;
[0103] The memory management unit is used to monitor the memory usage data in real time, and use the cache optimization strategy according to the monitored data to dynamically allocate memory to the queue corresponding to the execution of user requests to ensure the effective use of memory under high load; in this embodiment, the specific steps of the cache optimization strategy include:
[0104] C1. Monitor system memory usage data in real time and collect memory access pattern data to identify hot data (frequently accessed data) and cold data (data with low access frequency). Memory usage data includes used memory, free memory, cache size, and swap space usage.
[0105] C2. Based on the monitored and collected memory usage data and access pattern data, configure the first-in-first-out (FIFO), least recently used (LRU), least frequently used (LFU), or a hybrid cache optimization strategy based on access frequency and time for cache replacement;
[0106] C3. When the system memory is highly loaded, low-priority requests corresponding to cold data are replaced with high-priority requests corresponding to hot data for parallel processing, and useless memory is automatically released and I / O operations are reduced to improve the utilization of system memory.
[0107] The resource allocation unit is used to evaluate the CPU or GPU resources required for the parallel execution of the corresponding queue according to the user request attributes corresponding to the current execution queue, and dynamically adjust the resource allocation of the current execution queue on the CPU and GPU according to the evaluation results, and monitor the resource utilization efficiency in real time;
[0108] Furthermore, the specific steps of dynamically adjusting CPU and GPU resource allocation include:
[0109] D1. Collect the attributes of the user's request, and use the support vector machine to estimate the number of CPU cores or memory size, number of GPUs and video memory requirements and other resources required to execute the request based on the request attributes; further, the specific steps of the support vector machine estimation process include:
[0110] D11. Collect historical user request data and pre-process the collected user request data; the user request data includes: request type, request data size, request calculation complexity, and the number of CPU cores and memory size corresponding to the request;
[0111] D12. Set the training error threshold to 0.01, use the support vector machine to build the estimation model, and use the preprocessed historical user request data to train the estimation model. Set the mean square error to calculate the mean square error of the estimation model, use the training error threshold and mean square error to evaluate the training effect of the estimation model, and deploy the trained estimation model to the resource allocation unit.
[0112] D13, inputting the user's real-time request data into the resource allocation unit to obtain the support vector machine estimation result, which includes: the number of CPU cores or memory size, the number of GPUs and video memory requirements and other resource quantities required for the request;
[0113] D2, real-time monitoring to obtain the current resource status of the system, and build a resource allocation model by configuring the machine learning algorithm based on the support vector machine estimation results in D1; the current resource status includes the current CPU and GPU usage, load, memory usage, and request queue length, and the machine learning algorithms include greedy algorithm, genetic algorithm, and simulated annealing algorithm;
[0114] D3, input the obtained current resource status of the system and the prediction result of the support vector machine in D1 into the resource allocation model, and use the model to allocate resources to the highest priority user request first according to the priority of the user request, and then allocate the remaining resources to the second highest priority user request, and so on, and allocate the current system resources to the corresponding user request execution queue;
[0115] D4. When the priority of a user request is increased or decreased, the resource allocation is increased for the user request with increased priority, and the resource allocation is decreased for the user request with decreased priority, and the increased and decreased resources are kept equal;
[0116] In this embodiment, the memory management unit monitors and optimizes the memory usage of parallel execution requests in real time, and the resource allocation unit intelligently schedules the resources of the CPU and GPU. The above two unit systems can ensure that the requests run efficiently in the parallel processing units, which not only reduces resource waste, but also improves processing speed and response efficiency, thereby significantly optimizing the overall performance of the system;
[0117] The resource optimization unit is used to analyze and dynamically adjust the recycling strategy according to the monitoring resource utilization efficiency obtained by executing the current request, and feed back the obtained dynamically adjusted recycling strategy to the resource allocation unit and the memory management unit to optimize the CPU or GPU resource and memory allocation process; further, in this embodiment, the unit workflow is: monitor task execution status → analyze resource utilization → dynamically adjust recycling strategy → optimize resource allocation plan; the specific process steps of this unit include:
[0118] E1. Continuously monitor and collect the execution status data of all queued user requests, including task progress, system status data, and task status; task status includes execution, pause, completion, and failure;
[0119] E2. Based on the collected execution status data, the corresponding resource utilization efficiency is calculated using support vector machine. The resource utilization efficiency includes CPU / GPU utilization, memory hit rate, and disk I / O response time.
[0120] E3. Dynamically adjust resource recovery strategies based on the corresponding resource utilization efficiency obtained through calculations, that is, automatically release resource blocks that have not been used for a long time, and plan to expand the capacity of resources with high utilization but insufficient allocation;
[0121] E4, feeding back the dynamically adjusted recycling strategy to the resource allocation unit and the memory management unit, dynamically adjusting the CPU or GPU resources and memory allocation, giving priority to meeting the user requests of high priority or the user requests of efficient resource utilization;
[0122] The security protection module is used to monitor the system status in real time, detect potential abnormal behaviors or security threats, and encrypt and protect system data; the security protection module includes a data protection unit and a system defense unit;
[0123] The data protection unit is used to encrypt the data transmitted and stored in the resource management module and the task scheduling module using the national encryption algorithm to ensure user privacy and security;
[0124] System defense unit, which is used to monitor the system status in real time and detect abnormal system behavior using the configured abnormal monitoring strategy. It activates the defense mechanism based on the detected behavior to prevent malicious attacks and virus intrusions and maintain stable system operation.
[0125] User experience module, which is used to comprehensively improve the user experience quality in digital products by optimizing interface response speed, providing personalized service recommendations, and optimizing sentiment analysis and feedback; the user experience module includes an interface optimization unit, a personalized recommendation unit, and a sentiment feedback optimization unit;
[0126] The interface optimization unit is used to optimize the fluency of the user interface through graphics rendering acceleration and animation optimization strategies; further, in this embodiment, the workflow of this unit is: analyze UI interaction → optimize rendering logic → improve response speed; the specific steps of this workflow include:
[0127] F1, UI interaction analysis:
[0128] F11. Use front-end performance monitoring tools to collect key performance indicator data of the user interface. Performance indicator data includes loading time, rendering time, and animation frame rate. Monitoring tools include Google Lighthouse and Web Vitals.
[0129] F12. Through user research, questionnaire surveys and user testing, we can gain a deeper understanding of users’ direct feelings and feedback on the interface response speed.
[0130] F13. Use the configured data mining algorithm to analyze key performance indicator data and user survey direct feedback data to determine the areas of high-frequency user interaction and key operation paths; data mining algorithms include clustering algorithms and association analysis algorithms; data mining algorithms include cluster analysis, hierarchical analysis and principal component analysis;
[0131] F2. Rendering logic optimization:
[0132] F21. Reduce unnecessary DOM operations in high-frequency user interaction areas and key operation paths by optimizing code logic to reduce the browser's rendering burden.
[0133] F22. Use WebGL or Canvas for hardware accelerated rendering, and implement throttling or anti-shake strategies for high-frequency triggered events such as scrolling and zooming to reduce unnecessary calculations and rendering operations to improve rendering efficiency and smoothness;
[0134] F23. Use dynamic import technology to achieve segmentation and asynchronous loading of optimized code logic, load code resources on demand, and reduce the first loading time;
[0135] F3, improved response speed:
[0136] F31, improve the interface response speed by following the steps in F1 and F2 above;
[0137] The personalized recommendation unit is used to analyze user preferences based on the collected user behavior data and the behavior prediction model configured by the intelligent preloading unit, recommend corresponding personalized service information, and feed the recommended information back to the intelligent preloading unit to predict the corresponding user request; the unit's workflow is: collect user behavior data → analyze user preferences → push personalized service information; please refer to Figure 2 Furthermore, the specific steps of the workflow corresponding to the personalized recommendation unit in this embodiment include:
[0138] G1. In digital business hall equipment terminals equipped with domestic operating systems, use data monitoring algorithms to track and record user behavior data in the system or application in real time, and integrate user registration information, geographic location, and device information into behavior data to obtain user behavior data; behavior data includes click, browse, search, purchase, and rating data; data monitoring algorithms include automatic log collection algorithms and user identification and tracking algorithms;
[0139] G2. Clean and standardize the monitored user behavior data to obtain user behavior data in a unified data format;
[0140] G3. Set the contribution rate threshold to 0.8, use the principal component analysis algorithm to perform dimensionality reduction on the preprocessed user behavior data, obtain the contribution rate of the corresponding variable in the user behavior data, and compare the calculated contribution rate with the contribution rate threshold to obtain effective behavior analysis features and reduce calculation complexity;
[0141] G4. Use a deep learning algorithm to build a behavior prediction model, and input the acquired effective behavior analysis features into the built behavior prediction model for training to obtain a trained behavior prediction model; the deep learning algorithm in this embodiment includes a long short-term memory network (LSTM), a gated recurrent unit (GRU), and a Transformer model;
[0142] G5. Deploy the obtained behavior prediction model to the personalized recommendation unit and the intelligent preloading unit, and analyze and obtain the complete search behavior feature information of the user based on the partial search behavior feature information input by the user in real time by using the personalized recommendation unit;
[0143] G6, recommending the user's complete search behavior feature information corresponding to the partial search behavior feature information to the user by using a recommendation algorithm, and feeding back the user request corresponding to the recommended user's complete search behavior feature information to the intelligent preloading unit, and preloading the resources and data corresponding to the user's complete search behavior feature information by using the acquired preloading time; the recommendation algorithm includes a text matching algorithm based on Chinese pre-trained Bert and a transformer model;
[0144] Exemplarily, when a user inputs a service to be searched through a terminal device, the system analyzes and predicts the service or request that the user is about to initiate based on the partial search information input by the customer, and preloads the corresponding resources and data through the intelligent preloading unit based on the initiated service or request obtained through the analysis; for example, the user inputs partial search behavior characteristic information "depth" through the terminal, and the corresponding user complete search behavior characteristic information "deep learning algorithm" is obtained through analysis, and the "deep learning algorithm" request information corresponding to the user's complete search behavior characteristic information is sent to the intelligent preloading unit, and the resources and data corresponding to the deep learning algorithm are preloaded in advance;
[0145] The emotional feedback optimization unit is used to collect and analyze the emotional response data during user interaction, use the emotional analysis strategy, perform emotional analysis, and feed back the analysis results to the personalized recommendation unit to optimize the recommendation process and improve user emotional management and satisfaction; the unit workflow is: collect user feedback (text, voice) → perform emotional analysis → adjust the recommended service strategy or content → feedback optimization results; further, the specific steps of the emotional feedback optimization unit workflow in this embodiment include:
[0146] H1. Collect user feedback data on the content recommended by the personalized recommendation unit through user comments, messages, social media sharing, etc., and normalize the format of the collected data, that is, pre-process all collected data into text, obtain a multimodal emotion recognition dataset, and annotate the emotion type of the obtained emotion recognition dataset; multimodality includes voice, text and other non-text feedback, among which other non-text feedback includes user click behavior, stay time, like / dislike data; emotion types include positive emotions: happy, satisfied, happy, like and excited; negative emotions: disappointed, dissatisfied, angry, disgusted and frustrated; neutral emotions: indifferent and calm;
[0147] H2. Use statistical methods to count the emotional words included in the text in the multimodal emotion recognition dataset, and mark the emotional intensity of users for the recommended service based on the statistical vocabulary data of the corresponding emotional type;
[0148] H3. Build an emotion recognition evaluation model, and input the annotated multimodal emotion recognition dataset and the annotated emotion intensity labels into the emotion recognition evaluation model for training, and obtain the trained emotion recognition evaluation model; please refer to Figure 3 In this embodiment, the emotion recognition evaluation model is constructed based on Chinese pre-trained BERT, convolutional neural network, bilstm and fully connected layer; wherein Chinese pre-trained BERT is used for encoding feature extraction of text and other non-text feedback, convolutional neural network is used for feature extraction of speech input, bilstm is used for fusion extraction of text, other non-text feedback and speech extraction features, and fully connected layer is used for output of emotion type and emotion evaluation intensity;
[0149] H4. Deploy the trained emotion recognition evaluation model to the emotion feedback optimization unit, input the real-time data of the recommended service information feedback of the personalized recommendation unit into the emotion feedback optimization unit, output the emotion type and intensity score of the corresponding user request service, and feed back the acquired emotion type and intensity score to the personalized recommendation unit to adjust the recommended service information; illustratively, for example, when "I want depth" is input, "I want a deep learning algorithm", "I want a deep network" or "I want deep reinforcement learning" appears, and the emotion type and intensity corresponding to the above "I want a deep learning algorithm", "I want a deep network" or "I want deep reinforcement learning" are obtained according to the emotion feedback optimization unit analysis, and the user's complete search behavior feature information with the highest positive emotion type and intensity is recommended; for example, if the emotion type and intensity corresponding to "I want deep reinforcement learning" are the largest, then the user's complete search behavior feature information is recommended, and the user request information corresponding to the user's complete search behavior feature information is fed back to the intelligent preloading unit to load the corresponding resources and data in advance;
[0150] Intelligent operation and maintenance module, which is used to monitor various system indicators in real time, detect system anomalies and faults and repair them using the configured prediction strategy; the intelligent operation and maintenance module includes a system health monitoring unit and a fault prediction and self-repair unit;
[0151] The system health monitoring unit is used to monitor various system indicators in real time, perform anomaly detection using the configured anomaly detection algorithm, and use the set fault warning signal to issue a warning signal based on the detected abnormal results; the unit workflow is: collect system logs and performance data → implement health assessment → issue a warning signal; further, the specific steps of the workflow in this embodiment include:
[0152] I1. Set a system operation data collection cycle, collect system data according to the set collection cycle, and pre-process the collected system logs and performance data; the collected system data includes the system's hardware configuration, operating system and version, network topology, system logs (such as error logs, operation logs, etc.), event records, and performance data such as CPU utilization and memory usage; in this embodiment, the system operation data collection cycle is 2 seconds;
[0153] I2. Preprocess the collected system data, use the configured anomaly detection algorithm to perform anomaly detection on the processed data, and evaluate the health of the system based on the anomaly detection results to determine whether the system has potential problems or failures; the anomaly detection algorithm in this embodiment includes a rule-based anomaly detection algorithm and a model-based anomaly detection algorithm, wherein the rule-based anomaly detection algorithm includes a threshold method: detecting anomalies by setting one or more thresholds. For example, if the CPU usage of a server exceeds 90% for more than 5 minutes, it is considered an anomaly; 3-Sigma principle: assuming that the data follows a normal distribution, data outside the mean plus or minus 3 times the standard deviation is considered anomaly; model-based anomaly detection algorithms include K-means clustering, support vector machines, and density-based anomaly detection; this embodiment uses a comprehensive fuzzy evaluation algorithm to conduct a specific evaluation process to evaluate the health of the system;
[0154] I3. According to the results of the health assessment, set the warning conditions. When the system meets these conditions, it will trigger the sending of warning signals;
[0155] I4. Select a specific warning method based on the specific performance of the terminal device and user needs. The warning methods include email notification, SMS notification and system pop-up window;
[0156] The fault prediction and self-repair unit is used to predict system faults using the configured big data and machine learning algorithms, and to automatically generate repair measures based on the predicted fault information using the configured self-repair algorithm to repair the faults. The workflow of this unit is: analyze historical fault data → establish a prediction model → predict future faults → automatically execute repair scripts or notify the maintenance team. In this embodiment, the specific steps of this workflow include:
[0157] J1. Collect historical fault data of digital business hall equipment terminals equipped with domestic operating systems, and perform cleaning and denoising preprocessing on the collected data; fault data includes equipment status, logs and maintenance records;
[0158] J2. Set the principal component contribution rate threshold to 0.85, use the principal component analysis method to extract features from the preprocessed historical fault data, and compare the contribution rate corresponding to the extracted features with the principal component contribution rate threshold to obtain valid fault data features, where the features with a contribution rate greater than the principal component contribution rate threshold are valid fault data features;
[0159] J3. Build a system fault prediction model based on machine learning algorithms, input the acquired effective fault data features into the system fault prediction model for training, obtain the trained system fault prediction model, and deploy it to the fault prediction and self-repair unit; the machine learning algorithms include classification algorithms, regression algorithms, and time series prediction algorithms;
[0160] J4. Collect the operation log data of the digital business hall equipment terminal system equipped with the domestic operating system in real time, and input the collected data into the fault prediction and self-repair unit to obtain the corresponding fault type and fault location point;
[0161] J5. According to the acquired fault type and fault location, the system automatically configures the corresponding self-repair algorithm or script, executes the corresponding script to repair the corresponding fault, and when the configured self-repair algorithm or script cannot automatically repair the fault, the system health monitoring unit sends a corresponding warning signal to perform manual intervention repair;
[0162] The calculation process of the preloading time in the intelligent preloading unit of this embodiment includes:
[0163] K1. Use the behavior prediction model trained in the user experience module, input some of the current user's search behavior feature information, and obtain the probability distribution of the user's complete request behavior in the future. ,in Indicates i The probability of a complete request behavior occurring; in this embodiment, the future period of time is the user reaction time, which is set to 2 seconds;
[0164] K2: For each complete request behavior, use the configured evaluation algorithm to evaluate the required resources for the complete request behavior. ; Indicates the corresponding i The total amount of resources required for a complete request behavior to occur; wherein the evaluation algorithm includes a comprehensive fuzzy evaluation algorithm;
[0165] K3, real-time monitoring or preset user's current network environment, and use the statistical method configured in combination with historical data to estimate the i The average loading time of the corresponding resource for the complete request behavior , the network environment includes network bandwidth and network latency ; The statistical method uses a moving average algorithm; for example, assuming that the resource size is 1MB (i.e. 8,388,608 bytes) and the network bandwidth is 10Mbps (i.e. 10,000,000 bytes are transmitted per second), the transmission time is approximately 8,388,608 bytes / 10,000,000 bytes / second = 0.839 seconds;
[0166] K4, based on K1-K3, calculate the i The expected resource loading time for a complete request behavior to occur , the specific formula is: ,in Indicates the digital business hall equipment terminal server response time and resolution time;
[0167] K5. According to i The probability of a complete request behavior occurring , weighted calculation to obtain the probability distribution of complete request behavior corresponding to the total pre-loading time The specific formula is ,in n Indicates the number of probabilities in the probability distribution corresponding to the complete request behavior taken by the user;
[0168] In this process, Represents the average preloading time after comprehensively considering all complete request behaviors and their probabilities. It reflects how far in advance you should start loading resources to ensure the best user experience given current network conditions and user behavior patterns.
[0169] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in the field may also change, modify, replace and modify the above-mentioned embodiments without departing from the purpose and scope of protection of the present invention, and all of these are within the protection of the present invention.
[0170] If the disclosed technical solution involves personal information, the product using the disclosed technical solution has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the disclosed technical solution involves sensitive personal information, the product using the disclosed technical solution has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, when the personal information processing rules are notified by obvious signs / information, the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among them, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
Claims
1. A multi-task parallel processing system for digital business hall equipment terminals, characterized in that: include: Task scheduling module and resource management module; The task scheduling module includes a task queue management unit, a parallel processing unit and an intelligent preloading unit; The intelligent preloading unit is used to predict the service request that the user is about to initiate according to the configured behavior prediction model, obtain the corresponding preloading time according to the predicted request, and configure the obtained preloading time in the task queue management unit to preload the resources and data required by the user request; The task queue management unit is used to receive and analyze the attributes of user requests, and to mark the priority attributes of user requests through the configured automatic marking algorithm, and to dynamically allocate user requests to corresponding execution queues through the configured adaptive matching strategy; The parallel processing unit is used to execute the user requests in the corresponding queues in parallel through the configured priority hierarchical execution strategy according to the multi-core CPU resource attributes and the user request priorities in the corresponding queues, the GPU resource attributes and the user request priorities in the corresponding queues and the preloaded resources and data; The resource management module includes a memory management unit and a resource allocation unit; The memory management unit is used to monitor the multi-core CPU or GPU memory usage data in real time, and dynamically allocate memory to the queue corresponding to the execution of user requests using cache optimization strategies based on the monitored data; the resource allocation unit is used to evaluate the CPU or GPU resources required for the parallel execution of the corresponding queue according to the user request attributes corresponding to the current execution queue, and dynamically adjust the resource allocation of the currently executed queue on the CPU and GPU based on the evaluation results, and monitor the resource utilization efficiency in real time; The specific execution steps of the task queue management unit include: A1. Receive user requests from the front end, analyze the attributes of each user request, and use the automatic labeling algorithm to label the user request with a numerical priority based on the analysis results; A2. Real-time monitoring of system status data and queue usage status data, and pre-loading of the system status data and the queue usage status data through the configured pre-loading time, and at the same time, evaluating the load and idleness comprehensive score of each corresponding queue at the current moment according to the configured queue evaluation algorithm, taking the comprehensive score as the priority of the corresponding queue, and arranging the queues in descending order of priority; the system status data includes CPU or GPU usage, memory occupancy, and disk I / O rate; A3. According to the obtained user request priority and queue execution priority, the user request is assigned to the corresponding queue through the configured adaptive matching strategy, and the assignment process is adjusted according to the status and performance indicator data monitored in real time by the system; The specific steps of the adaptive matching strategy in the task queue management unit include: A31. Build a matching model based on the rule matching algorithm, input the obtained user request priority and queue execution priority into the matching model to perform initial matching of user request and queue, and execute the initial matching user request and queue to obtain the response time, throughput and resource utilization during the execution process; A32, collects the response time, throughput and resource utilization of the user request-queue execution process after the historical initial matching to build a comprehensive matching adjustment threshold, and uses the response time, throughput and resource utilization obtained in real time by A31 to calculate the comprehensive matching adjustment amount. If the comprehensive matching adjustment amount exceeds the comprehensive matching adjustment threshold, the initial matching is adjusted and the secondary optimal matching is obtained. If not, no adjustment is made; In the parallel processing unit, the specific steps of executing the priority hierarchical execution strategy include: B1. According to the maximum allocatable resources that the CPU or GPU in the resource allocation unit can currently provide, the CPU or GPU resources required for parallel execution of the corresponding queue of the user request, and the memory allocated by the memory management unit, a first-layer priority execution number threshold is set; B2. According to the obtained first-layer priority execution number threshold, A3 is adaptively matched to the user request priorities in the corresponding queues, and the resources required by the corresponding user requests are compared with the maximum allocatable resources of the system, and the user requests that meet the priority and resource conditions are extracted, and the number of the extracted user request queues does not exceed the first-layer priority execution number threshold, and the extracted user request queues are put into the CPU or GPU for execution as the first current executable layer, and the completion status of the execution queue is monitored in real time; The specific steps of adaptively matching A3 to the user requests in the corresponding queue to sort the priorities, and comparing the resources required by the corresponding user requests with the maximum allocatable resources of the system, and extracting the user requests that meet the priority and resource conditions include: Get the current maximum available resources, sort the user requests in the current queue by priority, and allocate resources to the user requests in order of priority. If the current resources cannot meet the user requests of the current priority, determine whether resources can be allocated to user requests of other priorities in the order of priority, until all user requests of all priorities have been determined. B3, monitoring the completion status of the execution queue, obtaining the maximum allocatable resource at the current moment, and using the obtained maximum allocatable resource to set the second layer priority execution number threshold, extracting the second current executable layer through the execution queue extraction process in B2, and placing the extracted second current executable layer on the CPU or GPU for parallel execution; B4. Repeat the above B2-B3 process until all user requests in the queue are executed; The calculation process of the preloading time in the intelligent preloading unit includes: K1. Use the configured behavior prediction model to input partial search behavior feature information of the current user and obtain the probability distribution of the complete request behavior taken by the user. ,in Indicates i The probability of a complete request behavior occurring; K2: For each complete request behavior, use the configured evaluation algorithm to evaluate the required resources for the complete request behavior. ; Indicates the corresponding i The total amount of resources required for a complete request behavior to occur; wherein the evaluation algorithm includes a comprehensive fuzzy evaluation algorithm; K3, real-time monitoring or preset user's current network environment, and use the statistical method configured in combination with historical data to estimate the i The average loading time of the corresponding resource for the complete request behavior , the network environment includes network bandwidth and network latency ; K4, based on K1-K3, calculate the i The expected resource loading time for a complete request behavior to occur , the specific formula is: , in Indicates the digital business hall equipment terminal server response time and resolution time; K5. According to i The probability of a complete request behavior occurring , weighted calculation to obtain the probability distribution of complete request behavior corresponding to the total pre-loading time The specific formula is ,in n Indicates the number of probabilities in the probability distribution corresponding to the complete request behavior taken by the user.
2. The multi-task parallel processing system for digital business hall equipment terminals according to claim 1, characterized in that: The specific steps of A2 evaluating the load and idleness comprehensive score of each corresponding queue at the current moment according to the configured queue evaluation algorithm include: A21. Based on the real-time monitoring system status data, the idleness index score is calculated. The specific formula is: , in Indicates the CPU or GPU usage of the server corresponding to the digital business hall equipment terminal. Indicates the memory usage of the server corresponding to the digital business hall equipment terminal. Indicates the disk I / O rate of the digital business hall equipment terminal corresponding to the server. Indicates that over time t Changing disk I / O weight coefficients; A22. Calculate the load index score based on the real-time monitoring queue usage status data. The specific formula includes: , in Indicates the load indicator score of the corresponding queue. Indicates the number of user requests initiated at the same time. Indicates the type indicator of each user request, Indicates the resource demand indicator for each user request; The corresponding indicator over time t Dynamically changing weighting coefficients; A23. Calculate the load and idleness comprehensive scores of each corresponding queue based on the load index score and idleness index score calculated above. ,in Indicates that over time t The weight coefficient of the change.
3. The multi-task parallel processing system for digital business hall equipment terminals as claimed in claim 2, characterized in that: The specific step of A2 evaluating the load and idleness comprehensive score of each corresponding queue at the current moment according to the configured queue evaluation algorithm also includes: A24. Collect disk I / O rates and their corresponding weight coefficients in historical system status data , the number of user requests initiated at the same time in the queue usage status data, the type indicator of each user request, the resource demand indicator of each user request and their corresponding weight coefficients The load index score of the corresponding queue in the queue processing data and its corresponding weight coefficient , and normalize the acquired data; A25. Build a dynamic weight adjustment model based on the online machine learning model, input the preprocessed system status data, queue usage status data, and queue processing data into the dynamic weight adjustment model, set the model training loss based on minimizing processing delay and maximizing throughput, and obtain the trained dynamic weight adjustment model; A26. Collect real-time system status data, queue usage status data, and queue processing data, and input the collected data into the dynamic weight adjustment model to output the corresponding time point t The weight adjustment amount for the , and The weights are adjusted dynamically.
4. The multi-task parallel processing system for digital business hall equipment terminals as claimed in claim 3, characterized in that: The processing system further includes a user experience module, and the user experience module includes a personalized recommendation unit. The specific steps of the personalized recommendation unit corresponding to the workflow include: G1. Monitor and obtain user behavior data, and pre-process the monitored user behavior data to obtain user behavior data in a unified data format; G2. Set a contribution rate threshold, use the principal component analysis algorithm to reduce the dimension of the preprocessed user behavior data, obtain the contribution rate of the corresponding variables in the user behavior data, and compare the calculated contribution rate with the contribution rate threshold to obtain effective behavior analysis features.
5. The multi-task parallel processing system for digital business hall equipment terminals as claimed in claim 4, characterized in that: The specific steps of the workflow corresponding to the personalized recommendation unit also include: G3. Use a deep learning algorithm to build a behavior prediction model, and input the acquired effective behavior analysis features into the constructed behavior prediction model for training to obtain a trained behavior prediction model; G4. Deploy the obtained behavior prediction model to the personalized recommendation unit and the intelligent preloading unit, and analyze and obtain the complete search behavior feature information of the user based on the partial search behavior feature information input by the user in real time by using the personalized recommendation unit; G5. Recommend the user's complete search behavior characteristic information corresponding to the partial search behavior characteristic information to the user using a recommendation algorithm, and feed back the user request corresponding to the recommended user's complete search behavior characteristic information to the intelligent preloading unit, and use the acquired preloading time to preload the resources and data corresponding to the user's complete search behavior characteristic information.
