A server resource scheduling method and system based on intelligent auxiliary decision-making
The server resource scheduling method through intelligent assisted decision-making, through classification and scheduling optimization, solves the problems of insufficient resource utilization and model lightweight failure in traditional scheduling methods, improves the success rate and resource utilization rate, and adapts to diverse environments.
Patent Information
- Application Number
- CN202410808241.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The traditional server resource scheduling method causes computing power to be vacant or full for a long time due to estimation errors, and model lightweighting fails due to differences in server network and performance, diversity of business requirements, and model file factors. Existing technologies are difficult to effectively schedule.
Adopt a server resource scheduling method based on intelligent auxiliary decision-making, classify model files, establish a quantified service capacity table, construct a service resource scheduling method, and perform task scheduling and exception handling through intelligent auxiliary decision-making execution programs, and adaptively adjust deviation corrections coefficients to optimize resource utilization.
It improves the success rate of model lightweighting, achieves maximum utilization of server resources, adapts to various server resource scheduling environments, and ensures that resource usage is in an appropriate state.
Smart Images

Figure CN118377603B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing, and in particular to a server resource scheduling method and system based on intelligent auxiliary decision-making. Background Art
[0002] A BIM model is a three-dimensional digital model that integrates information related to construction projects, such as geometry, materials, weight, price, progress, and construction methods. Model file lightweighting is to streamline, convert, and reduce model data in terms of geometric entities, carrying information, and construction logic in order to achieve better use of the model.
[0003] During the lightweighting process of model files, the differences in type, size, and number of components lead to huge differences in the server computing power occupied by model files when lightweighting. The traditional server resource scheduling method is to estimate the average server computing power occupied by the model file based on experience, and then obtain the number of concurrent tasks of the server. However, this method will cause the server computing power to be idle or full for a long time due to estimation errors. In addition, due to differences in server network and performance, differences in server graphics service functions and the diversity of actual business needs, coupled with the influence of model file factors, model lightweighting often fails. Therefore, server resource scheduling based on intelligent auxiliary decision-making is an important research topic. Summary of the invention
[0004] Based on the above background, the purpose of the present invention is to provide a server resource scheduling method and system based on intelligent assisted decision-making, combining technical tools and reasonable planning to achieve maximum utilization of server resources, improve the success rate of model lightweighting, and adapt to various server resource scheduling environments.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] A first aspect of the present invention provides a server resource scheduling method based on intelligent auxiliary decision-making, comprising:
[0007] Classify the model files and establish a service load quantification table based on the maximum number of concurrent tasks that the server can support for each category of model file lightweight tasks;
[0008] Constructing a service resource scheduling method based on the service bearer force quantification table, and encapsulating the service resource scheduling method and the preset business operation method as a driver program;
[0009] Establishing a driver information library, the driver information library includes multiple decision strategies, and the code, type, method name and interface address of the driver corresponding to each decision strategy;
[0010] Based on the driving information library, the execution process of multiple decision-making strategies is encapsulated into an intelligent auxiliary decision-making execution program;
[0011] Collect lightweight tasks from the client, and perform service operation management and task scheduling management based on the intelligent auxiliary decision-making execution program;
[0012] The frequency of abnormal information caused by insufficient server computing power during service operation is obtained, and based on the frequency of abnormal information, the deviation correction coefficient of the service resource scheduling method is adjusted through an intelligent auxiliary decision execution program.
[0013] In some embodiments, the method further comprises:
[0014] Based on the empirical data, an abnormality handling association table between task abnormality categories and task abnormality handling measures is established;
[0015] Constructing a task exception handling measure method based on the exception handling association table, and encapsulating the task exception handling measure method as a driver program, and adding it to the driver information library;
[0016] And, abnormal information is processed based on the intelligent auxiliary decision execution program.
[0017] In some embodiments, the classification of model files and establishing a service load quantification table based on the maximum number of concurrent tasks that the server can support for each category of model file lightweight tasks include:
[0018] Classify model files level by level based on preset parameter factors;
[0019] Based on experimental data and / or empirical data, the maximum number of concurrent tasks that the server can support for each category of model file lightweight tasks is obtained;
[0020] The maximum number of concurrent connections obtained is quantified to obtain a service load quantification table.
[0021] In some embodiments, the stepwise classification of the model files based on the preset parameter factors includes:
[0022] Preliminarily classifying the model files step by step based on preset parameter factors, wherein the preset parameter factors include model file type, model file size, and number of model file components;
[0023] A preset number of samples are selected from each type of model file after preliminary classification, and a lightweight test is performed on the graphics service of the server, and the lightweight time is recorded;
[0024] Preprocess the experimental data, remove abnormal and homogeneous information, and take the average of the lightweight time of a preset number of samples under each category;
[0025] The sample data after averaging is analyzed through clustering algorithm, and similar classifications are merged according to expert experience to obtain the final model file classification result.
[0026] In some embodiments, the maximum number of concurrent tasks that can be supported by the server for lightweight tasks of each category of model files based on experimental data and / or empirical data includes:
[0027] Select a preset number of samples for each type of model file;
[0028] Make several copies of each sample, perform concurrent tests on the graphics service of the server, and record the number of successful concurrent tasks;
[0029] Based on empirical analysis, determine the maximum concurrency of each sample on the server's graphics service;
[0030] Take the average of the maximum concurrent amount of the preset number of samples under each category as the number of concurrent tasks for this type of model file;
[0031] According to the above steps, the number of concurrent tasks for each type of model file is obtained, and a data table describing the relationship between the model file category and the number of concurrent model lightweight tasks is established.
[0032] In some embodiments, the quantification of the obtained maximum concurrent number to obtain a service carrying capacity quantification table includes:
[0033] The reciprocal of each concurrent task quantity value in the relational data table is taken as the service carrying capacity quantification value of the lightweight task to generate a service carrying capacity quantification table.
[0034] In some embodiments, the method for constructing a service resource scheduling method based on the service bearer force quantification table includes:
[0035] Read the graphics service information of all servers to be scheduled that can perform lightweight tasks;
[0036] Calculate the current capacity of each server to run lightweight tasks based on the service capacity quantification table;
[0037] Calculate the difference between the maximum load capacity of the server and the current load capacity;
[0038] The server with the smallest positive difference is selected as the target server.
[0039] In some embodiments, the calculation of the current carrying capacity of each server running lightweight tasks according to the service carrying capacity quantification table includes:
[0040] Read the preset parameter factor information of the model file in the server service operation area;
[0041] Based on the preset parameter factor information, the corresponding task carrying capacity quantification value in the service carrying capacity quantification table is read, and the current carrying capacity is obtained by summing up all the read task carrying capacity quantification values based on the following formula:
[0042] y=K*(F(X_1)+F(X_2)+...+F(X_n))
[0043] Where y represents the current carrying capacity value, X_n represents the preset parameter factor of the model file, F(*) represents the service carrying capacity quantization value lookup function, and K represents the deviation correction coefficient.
[0044] In some embodiments, the execution process of multiple decision strategies is encapsulated into an intelligent auxiliary decision execution program based on the driving information library, including:
[0045] According to the decision strategy information, based on the driver information library, information of the executable driver corresponding to the decision strategy is obtained;
[0046] Get the type of executable driver and how to execute it:
[0047] If it is a local driver, the reflection mechanism is used to execute the method encapsulated by the local driver;
[0048] If it is a remote driver, the method encapsulated by the remote driver is executed by using message notification and reflection mechanism;
[0049] If it is an interface, the driver interface carried in the driver information is executed using the network request;
[0050] Based on the execution method, the executable driver corresponding to the decision strategy is encapsulated as an intelligent auxiliary decision execution program.
[0051] In some embodiments, the service operation management, task scheduling management and abnormal information processing based on the intelligent auxiliary decision execution program includes:
[0052] Based on the collected client lightweight task information, the graphics service information of the server is obtained through the intelligent auxiliary decision execution program;
[0053] Based on the lightweight task information of the client and the graphics service information obtained from the server, task temporary storage, task delegation, task monitoring and task correction operations are performed through intelligent assisted decision-making.
[0054] In some embodiments, the task temporary storage operation includes temporarily storing the client lightweight task information in the task temporary storage area, and sorting the task priorities according to time sequence and weight coefficient;
[0055] The task delegation operation includes traversing the lightweight tasks in the task temporary storage area starting from the highest priority, judging whether there is a suitable target server based on the service resource scheduling method, and if so, moving the captured task to the target server running area and removing the task in the task temporary storage area; if not, ending the task delegation;
[0056] The task monitoring operation includes monitoring the tasks executed in the service operation area, then updating the completed task results into the task information table, and removing the tasks in the service operation area;
[0057] The task correction operation includes finding a corresponding measure method in the task exception handling measure table according to the abnormal information fed back by the task, and performing correction processing on the task based on the task exception handling measure method in the driver program.
[0058] In some embodiments, the deviation correction coefficient of the method for adjusting the service resource scheduling method through the intelligent auxiliary decision execution program based on the abnormal information frequency includes:
[0059] Calculate the abnormal failure rate according to the abnormal information frequency;
[0060] If the abnormal failure rate is less than the first preset threshold, the deviation correction coefficient is adjusted downward according to the first adjustment ratio;
[0061] If the abnormal failure rate is less than the second preset threshold, the deviation correction coefficient is maintained unchanged;
[0062] If the abnormal failure rate is less than the third preset threshold, the deviation correction coefficient is increased according to the first adjustment ratio;
[0063] If the abnormal failure rate is less than a fourth preset threshold, the deviation correction coefficient is increased according to a second adjustment ratio, wherein the second adjustment ratio is greater than the first adjustment ratio;
[0064] The deviation correction coefficient value is updated into the calculation formula of the service resource scheduling method in the driver.
[0065] A second aspect of the present invention provides a server resource scheduling system based on intelligent auxiliary decision-making, which is used to execute the method described in the first aspect above, including:
[0066] At least one graphics server, which is used to run a graphics service for performing a model file lightweight task;
[0067] A business server, which is used to generate the intelligent auxiliary decision-making execution program, and perform service operation management, task scheduling management and abnormal information processing of the graphics server based on the intelligent auxiliary decision-making execution program, and receive task processing results of the graphics server;
[0068] And, multiple client terminals, which are used to submit model file lightweight tasks to the business server and query task processing results.
[0069] The server resource scheduling method and system based on intelligent auxiliary decision-making of the present invention have the following advantages over the prior art:
[0070] 1) By quantifying the server computing power consumed by model lightweight tasks and adaptively correcting the computing power currently consumed by the server, the full utilization of server resources is ensured; 2) Through the expert experience of digital exception handling measures, automatic correction of task exceptions is achieved, thereby improving the success rate of model lightweighting; 3) Through custom extension drivers, it can adapt to various server resource scheduling environments.
[0071] In summary, the server resource scheduling method and system of the present invention improves the success rate of model lightweighting through intelligent auxiliary decision-making, realizes the personalized business operation requirements of users, and can adapt to various server resource scheduling environments. At the same time, the present invention adopts an adaptive correction server resource scheduling method to achieve the maximum utilization of server resources and ensure that the server resources are used in an appropriate state. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a flow chart of a server resource scheduling method embodiment of the present invention.
[0073] Figure 2 It is a schematic diagram of an embodiment of a server resource scheduling system of the present invention. DETAILED DESCRIPTION
[0074] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0075] The embodiment of the present invention provides a server resource scheduling method based on intelligent auxiliary decision-making, which is used for server resource scheduling of lightweight tasks of three-dimensional models such as BIM. The overall steps refer to Figure 1 , including the following processes:
[0076] Step S1: Classify the model files and establish a service load quantification table based on the maximum number of concurrent tasks that the server can support for each category of model file lightweight tasks.
[0077] As a preferred implementation scheme, in this embodiment, step S1 specifically includes the following steps:
[0078] S101: Preliminarily classify the model files based on preset parameter factors, including model file type, model file size, and number of model file components. A process is demonstrated as follows:
[0079] S10101: First, divide the files into two categories: DGN and RVT;
[0080] S10102: Taking the DGN file type as an example, preliminary classification is performed according to the file size of 0~10M, 10M~20M, ..., 90M~100M, and greater than 100M;
[0081] S10103: Taking 0~10M as an example, the number of components is further divided into 0~1,000, 1,000~2,000, ..., 9,000~10,000, 10,000~20,000, 20,000~30,000, ..., 90,000~100,000, and more than 100,000.
[0082] S10104: Repeat the above three steps to finally obtain a model file classification table with n rows and 3 columns.
[0083] S10105: Select m samples from each type of model file after preliminary classification, and perform a lightweight test on the graphics service of the server, and record the lightweight time;
[0084] S10106: preprocess the experimental data, remove abnormal and homogeneous information, and average the lightweight time of m samples under each classification;
[0085] S10107: Analyze the above sample data through clustering algorithm (K-means algorithm), merge similar classifications according to expert experience, and obtain the final model file classification result.
[0086] In this embodiment, the above classification only considers three parameter factors: model file type, model file size, and number of model file components. In practice, hardware information such as the server and its memory, CPU, etc. can also be added to improve the accuracy of the service load-bearing capacity quantification value.
[0087] S102: Perform a model lightweight concurrent experiment according to the above model classification, and obtain the maximum number of tasks that can be supported when the server computing capacity is full based on the concurrent experiment data, historical operation data and expert experience data. The method is as follows:
[0088] S10201: prepare m model file samples for each model classification;
[0089] S10202: referring to historical operation data and expert experience data, copy k copies of each model sample, perform concurrent tests on the graphics service of the server, and record the number of concurrent task successes;
[0090] S10203: Based on empirical analysis, determine the maximum concurrency of each sample on the graphics service of the server;
[0091] S10204: Take the average of the maximum concurrent number of m samples under each category, which is the number of concurrent tasks for the model file of this category;
[0092] S10205: According to the above four steps, the number of concurrent tasks of each classification model file is obtained, and a data table describing the relationship between the model file category and the number of concurrent model lightweight tasks is established.
[0093] The following is an example of obtaining the number of concurrent tasks for a DGN model file with a model file size ranging from 0 to 10M and a component number ranging from 0 to 1000.
[0094] First, prepare 3 sample model files;
[0095] Secondly, referring to historical operation data and expert experience data, the server's graphics service can support a concurrency range of 13 to 17 for this type of model file, so 17 copies of each sample are made;
[0096] Then, each sample is subjected to lightweight experiments on the graphics service of the server according to the quantity categories of 13, 15, and 17. At the same time, the number of lightweight successes of each sample and each quantity category is recorded, and the success rate of each sample and each quantity category is calculated;
[0097] Finally, referring to the expert experience data, the data with a success rate of more than 0.8 are selected as valid, and the average of the maximum number of successes of the three samples is calculated and rounded off. This value is the number of concurrent tasks for this type of model file.
[0098] The following is a table of data generated by the process of obtaining the number of concurrent tasks for DGN type files with file sizes ranging from 0 to 10M and component numbers ranging from 0 to 1000.
[0099]
[0100] S103: Quantify the above relationship data table to obtain a service carrying capacity quantification table.
[0101] In this embodiment, the role of quantization is to convert the number of concurrent tasks describing the model lightweighting that the server can support into the percentage of server computing power consumed by the model lightweighting. The service load quantization value is a value in the range of 0 to 1, which indicates the server computing power value that the model file needs to occupy when lightweighting the graphics service of the server. Generally, the server computing power is set to 1. If the model file lightweight service load quantization value is 1, it means that the model file completely occupies all the computing power of the server when lightweighting.
[0102] In this embodiment, based on the relationship data table between model file categories and the number of concurrent lightweight tasks of the model, the full value 1 is divided by the number of concurrent tasks to obtain the proportion of server computing power consumed by the model under each category. This value is the service load quantification value of the lightweight task. Divide the number of all concurrent tasks by the full value 1 to form the final service load quantification table, as shown in the following table:
[0103]
[0104] As a preferred implementation scheme, in some examples of the present invention, an abnormality handling association table of task abnormality categories and task abnormality handling measures can also be established synchronously based on empirical data. The specific method is as follows:
[0105] S104: Based on the long-term operation and maintenance experience of the system, collect task exception categories, which can be customized and expanded based on later experience.
[0106] In this embodiment, the task exception categories include model publishing failure, model publishing version exception, request timeout, bank initialization failure, insufficient disk space, and memory overflow.
[0107] S105: Based on the long-term operation and maintenance experience of the system, collect measures for task abnormalities. The measures can be customized and extended based on later experience.
[0108] In this embodiment, the measures for task abnormality include re-model lightweighting, restarting services, expanding server disk capacity, and expanding server memory.
[0109] S106: With reference to system operation and maintenance experience and expert experience, a correlation table between task exception categories and task exception handling measures is established.
[0110] In this embodiment, the relationship between the task exception category and the task exception handling measure is as follows:
[0111] S10601: If model publishing fails, re-model lightweight.
[0112] S10602: If the model release version is abnormal, the model is sent to the designated server for lightweighting.
[0113] S10603: If the request times out, restart the corresponding service alarm notification.
[0114] S10604: If the bank fails initially, restart the corresponding service alarm notification.
[0115] S10605: If there is insufficient space, expand the server disk capacity alarm notification.
[0116] S10606: If memory overflows, expand the server memory alarm notification.
[0117] Step S2: construct a service resource scheduling method based on the service bearer force quantification table, and encapsulate the service resource scheduling method and the preset business operation method into a driver program.
[0118] As a preferred implementation scheme, in this embodiment, the service resource scheduling method based on the service bearer force quantification table specifically includes the following steps:
[0119] S201: Reading the graphics service information of all servers to be scheduled that can perform lightweight tasks, as well as the maximum carrying capacity value of the servers;
[0120] S202: Calculate the current carrying capacity of each server running lightweight tasks according to the service carrying capacity quantification table;
[0121] S203: Calculate the difference between the maximum load capacity of the server and the current load capacity;
[0122] S204: Select a server with a positive and minimum difference as the target server.
[0123] As a preferred implementation scheme, in step S202, calculating the current carrying capacity of each server running lightweight tasks according to the service carrying capacity quantification table includes:
[0124] Read the preset parameter factor information of the model file in the server service operation area, including the file type, file size and file component quantity information;
[0125] Based on the preset parameter factor information, the corresponding task carrying capacity quantification value in the service carrying capacity quantification table is read, and the current carrying capacity is obtained by summing up all the read task carrying capacity quantification values based on the following formula:
[0126] y=K*(F(X_1)+F(X_2)+...+F(X_n))
[0127] Where y represents the current carrying capacity value, X_n represents the preset parameter factor of the model file, F(*) represents the service carrying capacity quantization value lookup function, and K represents the deviation correction coefficient.
[0128] Finally, S205: encapsulate the constructed service resource scheduling method and the preset business operation method into a driver program.
[0129] As a preferred implementation scheme, in this embodiment, the encapsulated driver includes a local driver, a remote driver and a remote interface, and the driver can be expanded according to business needs.
[0130] As a further preferred implementation scheme, in this embodiment, a task exception handling measure method can be simultaneously constructed based on the exception handling association table, and the task exception handling measure method can also be packaged as a driver program.
[0131] Among them, the measures for handling task exceptions include business operation logic such as re-model lightweighting, specifying server model lightweighting and alarm notification.
[0132] Step S3: Establish a driver information library, which includes multiple decision strategies, and the code, type, method name and interface address of the driver program corresponding to each decision strategy.
[0133] As a preferred implementation scheme, in this embodiment, the driver information library is used to determine the association between the decision strategy and the corresponding driver program, which can be achieved by creating a table of association between the decision strategy information and the driver program information. The table can contain information such as the driver code, the encapsulated class name, the method name, and the interface address.
[0134] Step S4: Encapsulating the execution process of multiple decision-making strategies into an intelligent auxiliary decision-making execution program based on the driving information library.
[0135] As a preferred implementation scheme, in this embodiment, step S4 specifically includes the following steps:
[0136] According to the decision strategy information, information of the executable driver corresponding to the decision strategy is obtained based on the driver information library;
[0137] Get the type of executable driver and how to execute it:
[0138] If it is a local driver, the reflection mechanism is used to execute the method encapsulated by the local driver;
[0139] If it is a remote driver, the method encapsulated by the remote driver is executed by using message notification and reflection mechanism;
[0140] If it is an interface, the driver interface carried in the driver information is executed using the network request;
[0141] Based on the above execution method, the executable driver corresponding to the decision strategy is encapsulated as an intelligent auxiliary decision execution program.
[0142] Step S5: Collect lightweight tasks from the client, and perform service operation management, task scheduling management, and abnormal information processing based on the intelligent auxiliary decision-making execution program.
[0143] As a preferred implementation scheme, in this embodiment, the lightweight tasks of the acquisition client include:
[0144] The received 3D model lightweight task information submitted by the client and the basic information of the model file obtained by the file service are stored in the task information data table. The task information includes the task name, task description, driving rules, callback parameters, client routing, parsing status, parsing return results, file name, file size, etc. The client routing is the MQ switch routing, which ensures that the task status information can be accurately sent to the client that initiates the task request.
[0145] As a preferred implementation scheme, in this embodiment, the service operation management, task scheduling management and abnormal information processing based on the intelligent auxiliary decision execution program include:
[0146] Based on the collected client lightweight task information, the graphics service information of the server is obtained through the intelligent auxiliary decision execution program;
[0147] Based on the lightweight task information of the client and the graphics service information obtained from the server, task temporary storage, task delegation, task monitoring and task correction operations are performed through intelligent assisted decision-making.
[0148] As a preferred implementation scheme, in this embodiment, the graphics service information of the server includes the service name, activation status, deployment status, graphics service address of the server, graphics service name of the server, etc. The administrator can add the graphics service information of the deployed and available servers to the service information library module, which stores, modifies and deletes the service information, and controls whether the service is used by the intelligent auxiliary decision execution program by configuring the service activation status and deployment status.
[0149] As a preferred implementation scheme, in this embodiment, after the task is delegated, the result information after the graphics service of the server is executed is stored in the task information data table.
[0150] In this embodiment, if the administrator does not want a service to perform the 3D model lightweight task, he only needs to disable the enabled state of the service. The service information library module will store the available service information in the cache to ensure that the intelligent auxiliary decision execution program can frequently retrieve the available service information.
[0151] As a preferred embodiment, in this embodiment:
[0152] Service resource acquisition includes obtaining appropriate available status service information through intelligent decision-making support systems;
[0153] The task temporary storage operation includes temporarily storing the lightweight task information submitted by the client in the task temporary storage area based on Redis technology, and sorting the task priorities according to the time sequence and weight coefficient carried in the request;
[0154] The task delegation operation includes traversing the lightweight tasks in the task temporary storage area starting from the highest priority, and judging whether there is a suitable target server based on the service resource scheduling method. If so, the captured task is moved to the target server running area and the task in the task temporary storage area is removed; if not, the task delegation is terminated;
[0155] The task monitoring operation includes monitoring the tasks executed in the service operation area, then updating the completed task results into the task information table, and removing the tasks in the service operation area;
[0156] The task correction operation includes finding the corresponding measure method in the task exception handling measure table according to the exception information fed back by the task, and correcting the task based on the task exception handling measure method in the driver program.
[0157] In this embodiment, the role of the service operation area is to temporarily store the operation task information, the lightweight parsing process and status information of the task, which is implemented based on Redis technology. The operation task information uses the service code as the key and the task details as the value, and is stored on Redis in String format; the task parsing process and status information uses the task code as the key and the task status and progress as the value, and is stored on Redis in String format. At the same time, the intelligent auxiliary decision execution program will update the task status according to the information fed back by the graphics service of the server, and update and remove the operation area data on Redis.
[0158] Step S6: Obtain the frequency of abnormal information caused by insufficient server computing power during service operation, and adjust the deviation correction coefficient of the service resource scheduling method through an intelligent auxiliary decision execution program based on the abnormal information frequency.
[0159] Due to the complexity and uncertainty of the computer environment, there is a certain error in the value of the lightweight task service capacity of the model file calculated during actual operation, so the calculation result of the service status carrying capacity is biased. When the service status carrying capacity exceeds the maximum service carrying capacity, abnormalities such as bank initial failure and memory overflow caused by insufficient server computing power usually occur. In actual applications, if such problems occur frequently, it means that the total value of the service status carrying capacity during actual operation exceeds the maximum server carrying capacity, then it can be judged that the total estimated value of the service status carrying capacity is less than the total value of the actual service status carrying capacity, then the deviation correction coefficient can be increased to ensure that the total estimated value of the service status carrying capacity is equal to the total value of the actual service status carrying capacity. If the above-mentioned abnormality has not occurred, it can be guessed that the total estimated value of the service status carrying capacity is greater than the total value of the actual service status carrying capacity, then the deviation correction coefficient can be reduced to ensure that the server is in the most suitable state. Therefore, an adaptive correction mechanism for service carrying capacity prediction is established through step S6. This correction mechanism can dynamically correct the calculation result of the service status carrying capacity by adaptively adjusting the deviation correction coefficient of the service status carrying capacity calculation to ensure the maximum utilization of service resources.
[0160] As a preferred implementation scheme, in this embodiment, an example of adjusting the deviation correction coefficient of the service resource scheduling method through the intelligent auxiliary decision execution program is:
[0161] S601: Read all task information per unit time in the task information database, and calculate the failure rate based on abnormal information such as bank initial failure and memory overflow;
[0162] S602: If the abnormal failure rate is less than 20%, the deviation correction factor is reduced by 10%;
[0163] S603: If the abnormal failure rate is less than 50%, the deviation correction coefficient remains unchanged;
[0164] S604: If the abnormal failure rate is less than 80%, the deviation correction factor will increase by 10%;
[0165] S605: If the abnormal failure rate is less than 100%, the deviation correction factor will increase by 20%;
[0166] S606: The deviation correction coefficient value is updated into the calculation formula of the service resource scheduling method in the driver.
[0167] In this embodiment, the failure rate limit value and the upward and downward adjustment ratios of the above process are obtained based on long-term operation experience and expert experience and can be appropriately adjusted according to actual conditions during actual operation.
[0168] Another embodiment of the present invention further provides a server resource scheduling system based on intelligent auxiliary decision-making, which is used to execute the server resource scheduling method disclosed in the above embodiment, such as Figure 2 Shown include:
[0169] At least one graphics server, which is used to run a graphics service for performing a model file lightweight task;
[0170] A business server, which is used to generate the intelligent auxiliary decision-making execution program, and perform service operation management, task scheduling management and abnormal information processing of the graphics server based on the intelligent auxiliary decision-making execution program, and receive task processing results of the graphics server;
[0171] And, multiple client terminals, which are used to submit model file lightweight tasks to the business server and query task processing results.
[0172] In this embodiment, the client may be a Web client, or may be Bentley design software, or other types of clients, which are not specifically limited here.
[0173] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0174] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0175] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A server resource scheduling method based on intelligent auxiliary decision-making, characterized in that: include: Classify the model files and establish a service load quantification table based on the maximum number of concurrent tasks that the server can support for each category of model file lightweight tasks; Constructing a service resource scheduling method based on the service bearer force quantification table, and encapsulating the service resource scheduling method and the preset business operation method as a driver program; Establishing a driver information library, the driver information library includes multiple decision strategies, and the code, type, method name and interface address of the driver corresponding to each decision strategy; Based on the driving information library, the execution process of multiple decision-making strategies is encapsulated into an intelligent auxiliary decision-making execution program; Collect lightweight tasks from the client, and perform service operation management and task scheduling management based on the intelligent auxiliary decision-making execution program; Obtain the frequency of abnormal information caused by insufficient server computing power during service operation, and adjust the deviation correction coefficient of the service resource scheduling method through the intelligent auxiliary decision execution program based on the abnormal information frequency; including: Calculate the abnormal failure rate according to the abnormal information frequency; If the abnormal failure rate is less than the first preset threshold, the deviation correction coefficient is adjusted downward according to the first adjustment ratio; If the abnormal failure rate is greater than or equal to the first preset threshold and less than the second preset threshold, the deviation correction coefficient is maintained unchanged; If the abnormal failure rate is greater than or equal to the second preset threshold and less than the third preset threshold, the deviation correction coefficient is increased according to the first adjustment ratio; If the abnormal failure rate is greater than, equal to or less than the third preset threshold and the fourth preset threshold, the deviation correction coefficient is increased according to the second adjustment ratio, and the second adjustment ratio is greater than the first adjustment ratio; Wherein, the first preset threshold value < the second preset threshold value < the third preset threshold value < the fourth preset threshold value; The deviation correction coefficient value is updated into the calculation formula of the service resource scheduling method in the driver.
2. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 1, characterized in that: Also includes: Based on the empirical data, an abnormality handling association table between task abnormality categories and task abnormality handling measures is established; Constructing a task exception handling measure method based on the exception handling association table, and encapsulating the task exception handling measure method as a driver program, and adding it to the driver information library; And, abnormal information is processed based on the intelligent auxiliary decision execution program.
3. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 1 or 2, characterized in that: The classification of model files and establishing a service load quantification table based on the maximum number of concurrent tasks that the server can support for each category of model file lightweight tasks include: Classify model files level by level based on preset parameter factors; Based on experimental data and / or empirical data, the maximum number of concurrent tasks that the server can support for each category of model file lightweight tasks is obtained; The maximum number of concurrent connections obtained is quantified to obtain a service load quantification table.
4. The server resource scheduling method based on intelligent auxiliary decision-making as claimed in claim 3, characterized in that: The step-by-step classification of model files based on preset parameter factors includes: Preliminarily classifying the model files step by step based on preset parameter factors, wherein the preset parameter factors include model file type, model file size, and number of model file components; A preset number of samples are selected from each type of model file after preliminary classification, and a lightweight test is performed on the graphics service of the server, and the lightweight time is recorded; Preprocess the experimental data, remove abnormal and homogeneous information, and take the average of the lightweight time of a preset number of samples under each category; The sample data after averaging is analyzed through clustering algorithm, and similar classifications are merged according to expert experience to obtain the final model file classification result.
5. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 4, characterized in that: The maximum number of concurrent tasks that the server can support for lightweight tasks of each category of model files based on experimental data and / or empirical data includes: Select a preset number of samples for each type of model file; Make several copies of each sample, perform concurrent tests on the graphics service of the server, and record the number of successful concurrent tasks; Based on empirical analysis, determine the maximum concurrency of each sample on the server's graphics service; Take the average of the maximum concurrent amount of the preset number of samples under each category as the number of concurrent tasks for this type of model file; According to the above steps, the number of concurrent tasks for each type of model file is obtained, and a data table describing the relationship between the model file category and the number of concurrent model lightweight tasks is established.
6. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 5, characterized in that: The quantification of the maximum concurrent number obtained to obtain a service carrying capacity quantification table includes: The reciprocal of each concurrent task quantity value in the relational data table is taken as the service carrying capacity quantification value of the lightweight task to generate a service carrying capacity quantification table.
7. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 1 or 2, characterized in that: The method for constructing service resource scheduling based on the service bearer force quantification table includes: Read the graphics service information of all servers to be scheduled that can perform lightweight tasks; Calculate the current capacity of each server to run lightweight tasks based on the service capacity quantification table; Calculate the difference between the maximum load capacity of the server and the current load capacity; The server with the smallest positive difference is selected as the target server.
8. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 7, characterized in that: The calculation of the current carrying capacity of each server running lightweight tasks based on the service carrying capacity quantification table includes: Read the preset parameter factor information of the model file in the server service operation area; Based on the preset parameter factor information, the corresponding task carrying capacity quantification value in the service carrying capacity quantification table is read, and the current carrying capacity is obtained by summing up all the read task carrying capacity quantification values based on the following formula: y=K*(F(X_1)+F(X_2)+...+F(X_n)) Where y represents the current carrying capacity value, X_n represents the preset parameter factor of the model file, F(*) represents the service carrying capacity quantization value lookup function, and K represents the deviation correction coefficient.
9. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 1 or 2, characterized in that: The said encapsulation of the execution process of multiple decision strategies into an intelligent auxiliary decision execution program based on the said driving information library includes: According to the decision strategy information, based on the driver information library, information of the executable driver corresponding to the decision strategy is obtained; Get the type of executable driver and how to execute it: If it is a local driver, the reflection mechanism is used to execute the method encapsulated by the local driver; If it is a remote driver, the method encapsulated by the remote driver is executed by using message notification and reflection mechanism; If it is an interface, the driver interface carried in the driver information is executed using the network request; Based on the execution method, the executable driver corresponding to the decision strategy is encapsulated as an intelligent auxiliary decision execution program.
10. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 2, characterized in that: Service operation management, task scheduling management and abnormal information processing based on the intelligent auxiliary decision execution program include: Based on the collected client lightweight task information, the graphics service information of the server is obtained through the intelligent auxiliary decision execution program; Based on the lightweight task information of the client and the graphics service information obtained from the server, task temporary storage, task delegation, task monitoring and task correction operations are performed through intelligent assisted decision-making.
11. The server resource scheduling method based on intelligent auxiliary decision-making according to claim 10, characterized in that: The task temporary storage operation includes temporarily storing the client lightweight task information in the task temporary storage area, and sorting the task priorities according to time and weight coefficient; The task delegation operation includes traversing the lightweight tasks in the task temporary storage area starting from the highest priority, judging whether there is a suitable target server based on the service resource scheduling method, and if so, moving the captured task to the target server running area and removing the task in the task temporary storage area; If not, the task delegation ends; The task monitoring operation includes monitoring the tasks executed in the service operation area, then updating the completed task results into the task information table, and removing the tasks in the service operation area; The task correction operation includes finding a corresponding measure method in the task exception handling measure table according to the abnormal information fed back by the task, and performing correction processing on the task based on the task exception handling measure method in the driver program.
12. A server resource scheduling system based on intelligent auxiliary decision-making, used to execute the method according to any one of claims 1 to 11, characterized in that: include: At least one graphics server, which is used to run a graphics service for performing a model file lightweight task; A business server, which is used to generate the intelligent auxiliary decision-making execution program, and perform service operation management, task scheduling management and abnormal information processing of the graphics server based on the intelligent auxiliary decision-making execution program, and receive task processing results of the graphics server; And, multiple client terminals, which are used to submit model file lightweight tasks to the business server and query task processing results.
