A scheduling method, device, and equipment of a print server and a medium

CN122963477APending Publication Date: 2026-10-23PICC HEALTH INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611277069.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0005]本发明提供了一种打印服务器的调度方法、装置、设备及介质,可以解决现有的打印服务器的调度方法存在的打印服务器的调度效率与打印工作的效率均较低,进而导致打印工作的时效性较差的问题

Benefits of technology

[0010]本发明实施例的技术方案,首先获取打印服务器集群中各打印服务器的打印属性,并根据各打印属性计算得到各打印服务器的打印性能指标,之后获取打印请求报文,使用预先训练的时间预测模型对所述打印请求报文的报文属性以及各打印服务器的打印性能指标进行处理,得到与各打印服务器匹配的预测处理时长,最后根据所述打印请求报文的报文属性和各打印服务器的预测处理时长在所述打印服务器集群中确定目标打印服务器,以通过目标打印服务器对所述打印请求报文执行打印操作,解决了现有的打印服务器的调度方法存在的打印服务器的调度效率与打印工作的效率均较低,进而导致打印工作的时效性较差的问题,实现了打印服务器集群中各打印服务器的调度,提高了打印服务器的调度效率与打印工作的效率,进而保证了打印工作的时效性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122963477A_ABST
    Figure CN122963477A_ABST
Patent Text Reader

Abstract

The application discloses a kind of scheduling method, device, equipment and medium of print server of the present application.The method comprises: obtaining the print attribute of each print server in print server cluster, and the print performance index of each print server is calculated according to each print attribute;Obtain print request message, use the time prediction model trained in advance to process the message attribute of print request message and the print performance index of each print server, obtain the predicted processing duration matched with each print server;According to the message attribute of print request message and the predicted processing duration of each print server, determine target print server in print server cluster, to execute print operation to print request message by target print server.By the technical scheme of the present application, the scheduling of each print server in print server cluster can be realized, the scheduling efficiency of print server and the efficiency of print work are improved, and the timeliness of print work is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hardware device scheduling, and more particularly to a scheduling method, apparatus, device, and medium for a print server. Background Technology

[0002] In print server cluster applications, the scheduling server typically employs a load balancing strategy to distribute print jobs evenly across the print servers. While this round-robin or random algorithm-based scheduling method is simple to implement, in real-world production environments, the scheduling efficiency and printing efficiency of print servers are low, making it difficult to guarantee timely printing.

[0003] From a technical architecture perspective, print servers exhibit objective differences in hardware configuration, deployment location, and network environment. The maximum concurrent processing capabilities of different servers vary, and network bandwidth conditions differ, leading to significant differences in their overall performance indicators. Traditional load balancing strategies fail to recognize these differences, treating high-performance and low-performance servers interchangeably, resulting in resource misallocation and inefficient scheduling. From a business characteristics perspective, print tasks exhibit diverse complexity and timeliness requirements, with significant differences in message size, number of images, and template complexity across different tasks. Existing indiscriminate allocation strategies fail to differentiate these characteristics. Assigning highly complex and urgent tasks to lower-performance servers easily leads to task timeouts and backlogs, resulting in low printing efficiency. Conversely, simple tasks occupying high-performance server resources leads to overall low resource utilization efficiency, creating a contradictory situation of performance bottlenecks and idle resources, further weakening the ability to guarantee the timeliness of printing work.

[0004] In summary, existing print server scheduling methods suffer from low scheduling efficiency and low printing efficiency, resulting in poor timeliness of printing. Summary of the Invention

[0005] This invention provides a method, apparatus, device, and medium for scheduling a print server, which can solve the problem that existing print server scheduling methods have low scheduling efficiency and printing efficiency, resulting in poor timeliness of printing work.

[0006] In a first aspect, embodiments of the present invention provide a method for scheduling a print server, the method comprising: Obtain the printing attributes of each print server in the print server cluster, and calculate the printing performance index of each print server based on the printing attributes. Obtain a print request message, and use a pre-trained time prediction model to process the message attributes of the print request message and the printing performance indicators of each print server to obtain the predicted processing time matching each print server. The message attributes include: message response level and allowed waiting time. The message response level includes: level 1, level 2 and level 3. Based on the message attributes of the print request message and the predicted processing time of each print server, a target print server is determined in the print server cluster so that the print request message can be printed through the target print server.

[0007] Secondly, embodiments of the present invention provide a scheduling device for a print server, the device comprising: The performance index calculation module is used to obtain the printing attributes of each print server in the print server cluster and calculate the printing performance index of each print server based on the printing attributes. The prediction duration acquisition module is used to acquire print request messages, process the message attributes of the print request messages and the printing performance indicators of each print server using a pre-trained time prediction model, and obtain the predicted processing duration matched with each print server. The message attributes include: message response level and allowed waiting time. The message response level includes: level 1, level 2 and level 3. The target server determination module is used to determine the target print server in the print server cluster based on the message attributes of the print request message and the predicted processing time of each print server, so as to perform the print operation on the print request message through the target print server.

[0008] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a printing server scheduling method according to any embodiment of the present invention.

[0009] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute and implement a scheduling method for a print server as described in any embodiment of the present invention.

[0010] The technical solution of this invention first obtains the printing attributes of each print server in the print server cluster and calculates the printing performance index of each print server based on the printing attributes. Then, it obtains print request messages and uses a pre-trained time prediction model to process the message attributes of the print request messages and the printing performance index of each print server to obtain the predicted processing time matching each print server. Finally, based on the message attributes of the print request messages and the predicted processing time of each print server, it determines the target print server in the print server cluster so that the print operation is performed on the print request message through the target print server. This solves the problem that the scheduling efficiency of print servers and the efficiency of printing work are both low in existing print server scheduling methods, resulting in poor timeliness of printing work. It realizes the scheduling of each print server in the print server cluster, improves the scheduling efficiency of print servers and the efficiency of printing work, and thus ensures the timeliness of printing work.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart of a printing server scheduling method according to Embodiment 1 of the present invention; Figure 2 This is a flowchart of a printing server scheduling method according to Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the structure of a scheduling device for a print server according to Embodiment 3 of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements a scheduling method for a print server according to an embodiment of the present invention. Detailed Implementation

[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, any variations of the terms "comprising" and "having" are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0016] Example 1 Figure 1 This is a flowchart of a print server scheduling method provided in Embodiment 1 of the present invention. This embodiment is applicable to scheduling print servers in a print server cluster. The method can be executed by a print server scheduling device, which can be implemented in hardware and / or software. The print server scheduling device can be configured in a terminal or server with print server scheduling function.

[0017] like Figure 1 As shown, the method includes: S110. Obtain the printing attributes of each print server in the print server cluster, and calculate the printing performance index of each print server based on the printing attributes.

[0018] The printing attributes include: the maximum concurrency of the print server, the standard order processing time under no-load conditions, and the standard order processing time under full-load conditions.

[0019] Specifically, the standard form refers to a representative standard format document in the business system. Its processing time can objectively reflect the basic processing capacity of the print server, which facilitates the establishment of a unified performance evaluation standard among different servers.

[0020] The process of calculating the printing performance metrics of each print server based on its printing attributes includes: selecting any print server in the print server cluster as the indicator print server; using the attributes of the indicator print server as indicator attributes, including: the maximum concurrency of the indicator print server, the standard order processing time under no-load conditions, and the standard order processing time under full load conditions; setting the printing performance metric of the indicator print server to 1; and obtaining the printing attributes of each print server; and calculating the printing performance metrics of each print server based on the printing attributes of each print server and the indicator attributes.

[0021] Furthermore, the printing performance indicators of each print server are calculated based on the printing attributes and the aforementioned indicator attributes, including: calculating the performance concurrency of the print server based on the maximum concurrency in the printing attributes and the maximum concurrency of the indicator in the indicator attributes, using the formula: Performance Concurrency = Maximum Concurrency / Maximum Concurrency of Indicator; and calculating the performance concurrency of the print server based on the standard order processing time under no-load conditions in the printing attributes and the standard order processing time under no-load conditions in the indicator attributes, using the formula: Performance No-Load Processing Time = Standard Order Processing Time under No-Load / Standard Order Processing Time under No-Load Conditions. The idle processing time of the print server is calculated based on the standard order processing time under load. The full-load processing time of the print server is then calculated based on the full-load processing time of the standard order under full load in the print attributes and the full-load processing time of the standard order under full load in the indicator attributes, using the formula: Full-load processing time = Full-load standard order processing time / Full-load standard order processing time of the indicator. Finally, the printing performance indicator of the print server is calculated based on the formula: Printing performance indicator = Performance concurrency × Performance idle processing time × Performance full-load processing time.

[0022] In one specific implementation of this embodiment, it is assumed that the print server cluster includes three print servers R1, R2, and R3. The printing attributes of each server are obtained through performance monitoring tools, as shown in Table 1 below: Table 1 If R1 is selected as the indicator print server, the indicator attributes are: maximum concurrency = 100, standard order processing time under no load = 2 seconds, standard order processing time under full load = 5 seconds, and R1's printing performance indicator is set to 1.

[0023] Based on the above settings, and using the formula: Performance Concurrency = Maximum Concurrency / Maximum Concurrency of Indicators, the R2 performance concurrency is calculated to be 150 / 100 = 1.5; based on the formula: Performance Concurrency = Maximum Concurrency / Maximum Concurrency of Indicators, the R2 performance idle processing time is calculated to be 3 / 2 = 1.5; based on the formula: Performance Full Load Processing Time = Standard Single Processing Time under Full Load / Standard Single Processing Time under Full Load of Indicators, the R2 performance full load processing time is calculated to be 6 / 5 = 1.2.

[0024] The printing performance index of the print server is calculated using the formula: Printing Performance Index = Concurrency × Idle Processing Time × Full Load Processing Time. For example, for R2, the printing performance index is 1.5 × 1.5 × 1.2 = 2.7.

[0025] Similarly, calculate the printing performance metrics for R3: performance concurrency = 80 / 100 = 0.8, performance idle processing time = 4 / 2 = 2, performance full-load processing time = 8 / 5 = 1.6, printing performance metric = 0.8 × 2 × 1.6 = 2.56.

[0026] The final printing performance metrics for each print server are: R1 = 1, R2 = 2.7, and R3 = 2.56. A higher value indicates a stronger overall processing capability of the print server, thus providing a quantitative basis for subsequent dynamic task allocation.

[0027] S120. Obtain the print request message, and use a pre-trained time prediction model to process the message attributes of the print request message and the printing performance indicators of each print server to obtain the predicted processing time matching each print server.

[0028] The message attributes include: message response level and allowed waiting time. The message response level includes: Level 1, Level 2 and Level 3.

[0029] Furthermore, the message response level is used to characterize the urgency of the timeliness requirement of the printing task; in this embodiment, the first-level response level can correspond to real-time response services, requiring the delay to be as small as possible, and the allowable waiting time can be 5 minutes; the second-level response level corresponds to semi-real-time services, allowing a small delay, and the allowable waiting time can be 20 minutes; the third-level response level corresponds to asynchronous transmission services, allowing a longer delay, and the allowable waiting time can be 480 minutes.

[0030] It should be noted that the actual message response level of the print request message, as well as the specific message service type and allowed waiting time corresponding to each message response level, can be set and modified by the user according to the actual implementation scenario. This embodiment does not limit the specific data.

[0031] Optionally, the training process of the time prediction model includes: acquiring a sample dataset, which includes at least one historical request message, historical message attributes matching the historical request message, sample print server metrics, and historical processing time; using the sample dataset to train a preset time series model to obtain the time prediction model, wherein the historical processing time result is used as annotation data in the sample data.

[0032] S130. Based on the message attributes of the print request message and the predicted processing time of each print server, a target print server is determined in the print server cluster, so as to perform the print operation on the print request message through the target print server.

[0033] The technical solution of this invention first obtains the printing attributes of each print server in the print server cluster and calculates the printing performance index of each print server based on the printing attributes. Then, it obtains the print request message, processes the message attributes of the print request message and the printing performance index of each print server using a pre-trained time prediction model to obtain the predicted processing time matching each print server, and finally determines the target print server in the print server cluster based on the message attributes of the print request message and the predicted processing time of each print server. The print operation is then performed on the print request message through the target print server. This achieves the scheduling of each print server in the print server cluster, improves the scheduling efficiency of the print servers and the efficiency of the printing work, and thus ensures the timeliness of the printing work.

[0034] Example 2 Figure 2 This is a flowchart of a print server scheduling method provided in Embodiment 2 of the present invention. This embodiment is a refinement based on the above embodiment. In this embodiment, the method for determining the target print server in the print server cluster according to the message attributes of the print request message and the predicted processing time of each print server is specifically refined.

[0035] like Figure 2 As shown, the method includes: S210. Obtain the printing attributes of each print server in the print server cluster, and calculate the printing performance index of each print server based on the printing attributes.

[0036] S220. Obtain the print request message, and use a pre-trained time prediction model to process the message attributes of the print request message and the printing performance indicators of each print server to obtain the predicted processing time matching each print server.

[0037] The message attributes include: message response level and allowed waiting time. The message response level includes: Level 1, Level 2 and Level 3.

[0038] S230. Obtain the allowed waiting time t from the message attributes. x and the predicted processing time t of the print server rn And based on the formula T=t x -t rn The scheduling time difference of the print server is calculated.

[0039] Specifically, the scheduling time difference T is used to quantitatively evaluate the print server's capacity margin to meet business timeliness requirements: when T is greater than 0, it means that the predicted processing time of the print server is less than the allowed waiting time, and it has the ability to meet business timeliness requirements; when T is less than or equal to 0, it means that the print server cannot complete the printing task within the allowed waiting time, and there is a risk of timeout.

[0040] For example, if the allowed waiting time is set to five minutes, the predicted processing time of R1 is 3 minutes, the predicted processing time of R2 is 1.5 minutes, and the predicted processing time of R3 is 2 minutes, then the calculated scheduling time difference between print servers R1, R2, and R3 is: scheduling time difference of R1 T1 = 5 - 3 = 2 minutes, scheduling time difference of R2 T2 = 5 - 1.5 = 3.5 minutes, and scheduling time difference of R3 T3 = 5 - 2 = 3 minutes.

[0041] S240. Based on the scheduling time difference of each print server and the printing performance index of each print server, sort the print servers, and determine the target print server in the print server cluster according to the sorting result and the message attributes, so as to perform the printing operation on the print request message through the target print server.

[0042] The process involves ranking the print servers based on their scheduling time difference and printing performance metrics. This includes: selecting print servers with a scheduling time difference T greater than 0 as candidate print servers and obtaining the printing performance metrics of each candidate print server; and sorting the candidate print servers in descending order based on their printing performance metrics.

[0043] Based on the calculation results of steps S110 and S230 above, and continuing from the previous calculation results, the scheduling time differences of R1, R2, and R3 are 2 minutes, 3.5 minutes, and 3 minutes respectively, all greater than 0, therefore all are considered as candidate print servers. The printing performance indicators of each candidate print server are: R1 = 1, R2 = 2.7, and R3 = 2.56. After sorting in descending order according to the printing performance indicators, the ranking result is: first place R2, second place R3, third place R1.

[0044] Furthermore, determining the target print server in the print server cluster based on the sorting results and the message attributes includes: if the message response level is level one, then the candidate print server ranked first in the sorting results is determined as the target print server; if the message response level is level two, then any candidate print server ranked in the middle area is selected as the target print server; if the message response level is level three, then the candidate print server ranked last in the sorting results is determined as the target print server.

[0045] Specifically, the middle area refers to the remaining candidate print servers in the sorting results, excluding the first and last ones.

[0046] Different message response levels correspond to different scheduling strategies to achieve a balance between timeliness and resource optimization. Level 1 response requires the fastest response time, prioritizing the highest-performing server to ensure optimal resource support for urgent tasks. Level 2 response allows for moderate delays, excluding both the highest and lowest-performing servers to avoid over-consumption of high-performance resources and prevent timeouts on low-performing servers, thus achieving reasonable load distribution. Level 3 response has the lowest timeliness requirements, prioritizing the lowest-performing server to free up high-performance resources for more urgent tasks, improving overall resource utilization efficiency.

[0047] For example, following the aforementioned sorting results: R2 (first), R3 (second), and R1 (third), the target print server is determined as follows for different message response levels: If the message response level is Level 1, R2, which is ranked first, is determined as the target print server to obtain the shortest processing time; if the message response level is Level 2, R3, excluding R2 and R1, is determined as the target print server, or it is evenly distributed among multiple qualified candidate servers; if the message response level is Level 3, R1, which is ranked last, is determined as the target print server to fully utilize its remaining processing capacity to complete tasks with low timeliness requirements.

[0048] The above-mentioned hierarchical scheduling strategy enables dynamic matching between print tasks and server performance, ensuring the timeliness requirements of various businesses while optimizing the overall resource utilization efficiency of the print server cluster.

[0049] The technical solution of this invention first obtains the printing attributes of each print server in a print server cluster and calculates the printing performance index of each print server based on the printing attributes. Then, it obtains print request messages and uses a pre-trained time prediction model to process the message attributes of the print request messages and the printing performance index of each print server to obtain the predicted processing time matching each print server. Next, it obtains the allowed waiting time in the message attributes and the predicted processing time of the print server, and calculates the scheduling time difference of the print server based on a preset formula. Finally, it sorts the print servers based on the scheduling time difference and the printing performance index of each print server, and determines the target print server in the print server cluster according to the sorting result and the message attributes, so as to perform the printing operation on the print request message through the target print server. This realizes the scheduling of each print server in the print server cluster, improves the scheduling efficiency of print servers and the efficiency of printing work, and thus ensures the timeliness of printing work.

[0050] Example 3 Figure 3 This is a schematic diagram of the structure of a scheduling device for a print server provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: The performance index calculation module 310 is used to obtain the printing attributes of each print server in the print server cluster and calculate the printing performance index of each print server based on the printing attributes. The prediction duration acquisition module 320 is used to acquire print request messages, process the message attributes of the print request messages and the printing performance indicators of each print server using a pre-trained time prediction model, and obtain the predicted processing duration matched with each print server. The message attributes include: message response level and allowed waiting time. The message response level includes: level 1, level 2 and level 3. The target server determination module 330 is used to determine the target print server in the print server cluster based on the message attributes of the print request message and the predicted processing time of each print server, so as to perform the print operation on the print request message through the target print server.

[0051] The technical solution of this invention first obtains the printing attributes of each print server in the print server cluster and calculates the printing performance index of each print server based on the printing attributes. Then, it obtains the print request message, processes the message attributes of the print request message and the printing performance index of each print server using a pre-trained time prediction model to obtain the predicted processing time matching each print server, and finally determines the target print server in the print server cluster based on the message attributes of the print request message and the predicted processing time of each print server. The print operation is then performed on the print request message through the target print server. This achieves the scheduling of each print server in the print server cluster, improves the scheduling efficiency of the print servers and the efficiency of the printing work, and thus ensures the timeliness of the printing work.

[0052] Based on the above embodiments, the performance index calculation module 310 includes: The indicator determination unit is used to obtain any print server in the print server cluster as the indicator print server, and use the attributes of the indicator print server as indicator attributes. The indicator attributes include: the maximum concurrency of the indicator print server, the standard order processing time under no load, and the standard order processing time under full load. The indicator setting unit is used to set the printing performance indicator of the indicator printing server to 1 and to obtain the printing attributes of each printing server. The index calculation unit is used to calculate the printing performance index of each print server based on the printing attributes of each print server and the index attributes.

[0053] Based on the above embodiments, the index calculation unit includes: The concurrency calculation unit is used to calculate the performance concurrency of the print server based on the maximum concurrency in the print attributes and the maximum concurrency in the index attributes, using the formula: performance concurrency = maximum concurrency / maximum concurrency of index. The first processing time calculation unit is used to calculate the performance idle time of the print server based on the standard order processing time under idle load in the print attributes and the standard order processing time under idle load in the index attributes, using the formula: performance idle time = standard order processing time under idle load / standard order processing time under idle load. The second processing time calculation unit is used to calculate the performance full-load processing time of the print server based on the standard order processing time under full load in the print attributes and the standard order processing time under full load in the indicator attributes, using the formula: performance full-load processing time = standard order processing time under full load / standard order processing time under full load. The printing performance index calculation unit is used to calculate the printing performance index of the print server according to the formula: Printing performance index = performance concurrency × performance idle processing time × performance full load processing time.

[0054] Based on the above embodiments, the target server determination module 330 includes: The time difference calculation unit is used to obtain the allowed waiting time t in the message attributes. x and the predicted processing time t of the print server rn And based on the formula T=t x -t rn The scheduling time difference of the print server is calculated; The target determination unit is used to sort the print servers based on the scheduling time difference of each print server and the printing performance index of each print server, and to determine the target print server in the print server cluster according to the sorting result and the message attributes.

[0055] Based on the above embodiments, the target determination unit includes: The candidate server determination unit is used to select print servers with a scheduling time difference T greater than 0 as candidate print servers and obtain the printing performance indicators of each candidate print server. The sorting unit is used to sort the candidate print servers in descending order based on their printing performance metrics.

[0056] Based on the above embodiments, the target determination unit further includes: The first response unit is used to determine the candidate print server that ranks first in the sorting results as the target print server if the message response level is level one. The second response unit is used to select any candidate print server whose sorting result is in the middle area as the target print server if the message response level is level two. The third response unit is used to determine the candidate print server that ranks last in the sorting results as the target print server if the message response level is level three.

[0057] The printing server scheduling device provided in this embodiment of the invention can execute the printing server scheduling method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0058] Example 4 Figure 4A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0059] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from storage unit 18. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0060] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0061] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a print server scheduling method.

[0062] Accordingly, the method includes: Obtain the printing attributes of each print server in the print server cluster, and calculate the printing performance index of each print server based on the printing attributes. Obtain a print request message, and use a pre-trained time prediction model to process the message attributes of the print request message and the printing performance indicators of each print server to obtain the predicted processing time matching each print server. The message attributes include: message response level and allowed waiting time. The message response level includes: level 1, level 2 and level 3. Based on the message attributes of the print request message and the predicted processing time of each print server, a target print server is determined in the print server cluster so that the print request message can be printed through the target print server.

[0063] In some embodiments, a print server scheduling method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the print server scheduling method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a print server scheduling method by any other suitable means (e.g., by means of firmware).

[0064] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0065] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0066] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0067] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0068] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0069] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0070] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

Claims

1. A method for scheduling a print server, characterized in that, include: Obtain the printing attributes of each print server in the print server cluster, and calculate the printing performance index of each print server based on the printing attributes. Obtain a print request message, and use a pre-trained time prediction model to process the message attributes of the print request message and the printing performance indicators of each print server to obtain the predicted processing time matching each print server. The message attributes include: message response level and allowed waiting time. The message response level includes: level 1, level 2 and level 3. Based on the message attributes of the print request message and the predicted processing time of each print server, a target print server is determined in the print server cluster so that the print request message can be printed through the target print server.

2. The method according to claim 1, characterized in that, The printing attributes include: the maximum concurrency of the print server, the standard order processing time under no-load conditions, and the standard order processing time under full load conditions.

3. The method according to any one of claims 1-2, characterized in that, The printing performance metrics of each print server are calculated based on various printing attributes, including: In the print server cluster, any print server is selected as the indicator print server, and the attributes of the indicator print server are used as indicator attributes. The indicator attributes include: the maximum concurrency of the indicator print server, the standard order processing time under no load, and the standard order processing time under full load. Set the printing performance index of the aforementioned printing server to 1, and obtain the printing attributes of each printing server. The printing performance index of each print server is calculated based on the printing attributes of each print server and the aforementioned index attributes.

4. The method according to claim 3, characterized in that, The printing performance indicators of each print server are calculated based on the printing attributes of each print server and the aforementioned indicator attributes, including: Based on the maximum concurrency in the printing attributes and the maximum concurrency in the indicator attributes, the performance concurrency of the print server is calculated using the formula: Performance Concurrency = Maximum Concurrency / Maximum Concurrency of Indicators. Based on the standard order processing time under no-load in the print attributes and the standard order processing time under no-load in the indicator attributes, the performance no-load processing time of the print server is calculated using the formula: Performance no-load processing time = Standard order processing time under no-load / Standard order processing time under no-load in the indicator. Based on the standard order processing time under full load in the print attributes and the standard order processing time under full load in the indicator attributes, the full load processing time of the print server is calculated using the formula: Performance full load processing time = Standard order processing time under full load / Standard order processing time under full load. The printing performance index of the print server is calculated according to the formula: Printing performance index = Concurrency × Idle processing time × Full load processing time.

5. The method according to claim 1, characterized in that, The target print server is determined in the print server cluster based on the message attributes of the print request message and the predicted processing time of each print server, including: Get the allowed waiting time t from the message attributes x and the predicted processing time t of the print server rn And based on the formula T=t x -t rn The scheduling time difference of the print server is calculated; The print servers are sorted based on their scheduling time difference and printing performance metrics, and the target print server is determined in the print server cluster according to the sorting results and the message attributes.

6. The method according to claim 5, characterized in that, The print servers are ranked based on their scheduling time difference and printing performance metrics, including: Print servers with a scheduling time difference T greater than 0 are selected as candidate print servers, and the printing performance indicators of each candidate print server are obtained. The candidate print servers are sorted in descending order based on their printing performance metrics.

7. The method according to claim 5, characterized in that, The target print server is determined in the print server cluster based on the sorting results and the message attributes, including: If the message response level is Level 1, then the candidate print server ranked first in the sorting results will be determined as the target print server. If the message response level is level two, then any candidate print server whose sorting result is in the middle area is selected as the target print server. If the message response level is level three, then the candidate print server ranked last in the sorting results will be determined as the target print server.

8. A scheduling device for a print server, characterized in that, include: The performance index calculation module is used to obtain the printing attributes of each print server in the print server cluster and calculate the printing performance index of each print server based on the printing attributes. The prediction duration acquisition module is used to acquire print request messages, process the message attributes of the print request messages and the printing performance indicators of each print server using a pre-trained time prediction model, and obtain the predicted processing duration matched with each print server. The message attributes include: message response level and allowed waiting time. The message response level includes: level 1, level 2 and level 3. The target server determination module is used to determine the target print server in the print server cluster based on the message attributes of the print request message and the predicted processing time of each print server, so as to perform the print operation on the print request message through the target print server.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a scheduling method for a print server according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement a scheduling method for a print server according to any one of claims 1-7.