WO2020107368A1 - 信息推荐方法、装置、设备和可读存储介质 - Google Patents

信息推荐方法、装置、设备和可读存储介质 Download PDF

Info

Publication number
WO2020107368A1
WO2020107368A1 PCT/CN2018/118405 CN2018118405W WO2020107368A1 WO 2020107368 A1 WO2020107368 A1 WO 2020107368A1 CN 2018118405 W CN2018118405 W CN 2018118405W WO 2020107368 A1 WO2020107368 A1 WO 2020107368A1
Authority
WO
WIPO (PCT)
Prior art keywords
task information
information
historical task
historical
resource usage
Prior art date
Application number
PCT/CN2018/118405
Other languages
English (en)
French (fr)
Inventor
李艳青
Original Assignee
北京比特大陆科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京比特大陆科技有限公司 filed Critical 北京比特大陆科技有限公司
Priority to CN201880098287.2A priority Critical patent/CN112789599A/zh
Priority to PCT/CN2018/118405 priority patent/WO2020107368A1/zh
Publication of WO2020107368A1 publication Critical patent/WO2020107368A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • This application relates to signal processing technology, for example, to an information recommendation method, device, device, and readable storage medium.
  • IC integrated circuit design needs to rely on a large amount of computing resources (server clusters) to run circuit design auxiliary tool programs such as EDA tools.
  • Large-scale server clusters usually use the server cluster management system to implement resource management, and allocate sub-servers and computing resources such as CPU resources and memory resources in the sub-servers for different tasks.
  • the server cluster management system determines to which sub-server the task submitted by the user is allocated based on the user's resource application volume and the distribution of idle resources in the sub-server. Therefore, whether the amount of resource applications submitted by users is accurate has a great influence on whether the server cluster management system can reasonably allocate resources.
  • the existing server cluster management system When submitting a new task, the existing server cluster management system usually relies on the user's own experience to predict the amount of resources that the new task may require, and then submits the resource application amount when submitting the task to the server cluster management system.
  • An embodiment of the present disclosure provides an information recommendation method, including:
  • the new task information determine the relevant historical task information
  • the resource recommendation information of the new task information is determined.
  • the determining related historical task information according to the new task information includes:
  • the first type of historical task information is the historical task information including the same task running path and task command as the new task information;
  • the first type of historical task information is queried in the pre-stored historical task records, the first type of historical task information is used as related historical task information.
  • the determining resource recommendation information of the new task information according to the actual resource usage of the relevant historical task information includes:
  • the actual resource usage of the first type of historical task information is used as the resource recommendation information of the new task information.
  • the determining relevant historical task information according to the new task information further includes:
  • the second type of historical task information is The new task information contains historical task information of the same task command;
  • the second type of historical task information is queried in the pre-stored historical task records, the second type of historical task information is used as the related historical task information.
  • the determining resource recommendation information of the new task information according to the actual resource usage of the relevant historical task information includes:
  • the ratio of the one or more first resource usage ranges and the second type of historical task information corresponding to each of the first resource usage ranges is used as the resource amount recommendation information of the new task information.
  • the determining relevant historical task information according to the new task information further includes:
  • the user ID of the new task information is obtained
  • the pre-stored historical task records according to the user ID for the third type of historical task information, where the third type of historical task information is the historical task information corresponding to the user ID;
  • the determining resource recommendation information of the new task information according to the actual resource usage of the relevant historical task information includes:
  • the second resource usage range is used as resource amount recommendation information of the new task information.
  • the method further includes:
  • the resource amount recommendation information is pushed to the user.
  • An information recommendation method provided by an embodiment of the present disclosure first regards the first type of historical task information having the same task running path and task command as the new task as related historical task information.
  • the The new task has the second type of historical task information of the same task command as the related historical task information, and when there is no second type of historical task information, the third type of historical task information corresponding to the user ID is used as the related historical task information to make the related Historical task information is the information in the historical task record that has a high degree of relevance to the new task information; then, according to the determined relevant historical task information, the recommended amount of resource information for the new task information is determined by an appropriate method, so as to realize the new task
  • the information may use an accurate estimate of the amount of resources to provide users with accurate recommendation information, so as to be used as a reference when the user sets the resource application amount of the new task information, thereby improving the match between the resource application amount of the new task and the actual resource usage Degree to improve the balance of resource use.
  • the method further includes:
  • warning information corresponding to the warning threshold is sent to the user.
  • the method before determining related historical task information according to the new task information, the method further includes:
  • the historical task information, the actual resource usage corresponding to each historical task information, and the user identifier corresponding to each historical task information are stored as historical task records.
  • An embodiment of the present disclosure also provides an information recommendation device, including:
  • the query module is configured to determine relevant historical task information based on the new task information
  • the processing module is configured to determine the resource recommendation information of the new task information according to the actual resource usage of the relevant historical task information.
  • the query module is configured to:
  • processing module is configured to:
  • the actual resource usage of the first type of historical task information is used as the resource recommendation information of the new task information.
  • the query module is further configured to:
  • the second type of historical task information is The new task information includes historical task information of the same task command; if the second type of historical task information is queried in the pre-stored historical task record, the second type of historical task information is used as the related historical task information.
  • processing module is configured to:
  • the second type of historical task information obtain one or more first resource usage ranges, and the proportion of the second type of historical task information corresponding to each of the first resource usage ranges; Or a plurality of first resource usage ranges and the proportion of the second type of historical task information corresponding to each of the first resource usage ranges, as resource amount recommendation information of new task information.
  • the query module is further configured to:
  • the user ID of the new task information is obtained; according to the user ID, the third type of historical task is queried in the pre-stored historical task record Information, the third type of historical task information is historical task information corresponding to the user ID; the third type of historical task information is used as related historical task information.
  • processing module is configured to:
  • processing module is further configured to:
  • Information recommendation device by first using the first type of historical task information with the same task running path and task command as the new task as related historical task information, when there is no first type of historical task information, it will have the same task command as the new task
  • the second type of historical task information is used as related historical task information
  • the third type of historical task information corresponding to the user ID is used as related historical task information when there is no second type of historical task information, so that the related historical task information is a historical task record Information with a high degree of relevance to the new task information; then, according to the determined relevant historical task information, determine the resource recommendation information of the new task information in an appropriate method, so as to achieve the accuracy of the possible use of the new task information It is estimated that accurate recommendation information is provided for users, so as to be used as a reference when the user sets the resource application amount of the new task information, thereby improving the matching degree between the resource application amount of the new task and the actual resource use amount, and improving the balance of resource use Sex.
  • it also includes:
  • the warning module is configured to obtain the resource application amount submitted by the user after the processing module determines the resource amount recommendation information of the new task information according to the actual resource usage amount of the relevant historical task information; according to the resource application Distribute the new task information to sub-servers in the server cluster to run; at the end of the new task information operation, obtain the actual resource usage of the new task information; obtain the actual resource usage of the new task information The difference between the amount and the resource application amount; if the difference is greater than a preset warning threshold, then send warning information corresponding to the warning threshold to the user.
  • it also includes:
  • the collection module is configured to obtain the historical task information of the end of execution and the user ID corresponding to each historical task information in a preset data collection period before the query module determines the relevant historical task information according to the new task information;
  • the user ID corresponding to each historical task information is stored as a historical task record.
  • An embodiment of the present disclosure also provides a computer including the above-mentioned information recommendation device.
  • Embodiments of the present disclosure also provide a computer-readable storage medium that stores computer-executable instructions that are configured to perform the above-mentioned information recommendation method.
  • An embodiment of the present disclosure also provides a computer program product.
  • the computer program product includes a computer program stored on a computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer, the The computer executes the above information recommendation method.
  • An embodiment of the present disclosure also provides an electronic device, including:
  • At least one processor At least one processor
  • a memory communicatively connected to the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor. When the instructions are executed by the at least one processor, the at least one processor is caused to execute the above information recommendation method.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of an information recommendation method provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of another information recommendation method provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a warning feedback process provided by an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an information recommendation device provided by an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another information recommendation device provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of yet another information recommendation device provided by an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a hardware structure of a device provided by an embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure.
  • the user logs in to the server cluster management system 2 on the client 3 to edit the task command, and after the task command is edited, the user submits the task.
  • the user edits the task command on the client 3, uploads the task to the server cluster management system 2 after the task command is edited, and implements the task submission.
  • the user judges the amount of resources required by the task himself during the task submission process, and then sets the resource application amount based on the experience value when submitting the task to the server cluster management system 2.
  • the server cluster management system 2 assigns sub-servers 11 to tasks submitted by users according to the amount of resources requested by the user for tasks and the remaining resource distribution of each sub-server 11 in the current server cluster 1. Because different tasks require different amounts of resources, it is often difficult for users to know the accurate resource usage of each task before running the task, or even to estimate the resource usage range of a type of task, which causes the subserver 11 to run the task There is a large deviation between the amount of resource applications and the actual usage.
  • the actual resource usage of the task is too large or too small, which will cause the load on the server running the task to be too light or too heavy. Operation failed, server down.
  • the problem that the amount of application for task resources in the related art does not match the actual usage not only affects the normal operation of the tasks, but also results in low utilization efficiency of server resources.
  • the server cluster management system 2 of the present disclosure when acquiring a new task, the server cluster management system 2 of the present disclosure immediately estimates the amount of resources that the new task may need to use, and Before the user submits the resource application amount, the resource amount recommendation information of the new task is recommended to the user.
  • the user can use the resource recommendation information as a reference to adjust the resource application amount for the new task, so that the actual resource amount used by the new task when running is not much different from the user application resource amount, and improve the accuracy of task allocation. Reduce the unbalanced load of each sub-server 11 in the server cluster 1 due to inappropriate resource application.
  • FIG. 2 is a schematic flowchart of an information recommendation method provided by an embodiment of the present disclosure.
  • the execution subject of the method shown in FIG. 2 may be software and/or hardware devices, such as the server cluster management system 2 shown in FIG. 1.
  • the server cluster management system 2 shown in FIG. 1 In order to facilitate the description of the embodiment, the following uses the server cluster management system as an example of an executive body to describe various possible implementation manners in this embodiment.
  • An embodiment of the present disclosure provides an information recommendation method, including the following steps S101 to S102.
  • S101 Determine relevant historical task information according to the new task information.
  • the way to obtain the new task information can be understood as the new task information sent from the client or the third-party device, or the new task information read from the client or the third-party device, or according to the user New task information generated by the operation.
  • the receiving and reading may be performed in real time or periodically, and this embodiment is not limited.
  • the new task information describes the job that the user needs to run, mainly including the task running path and the task command.
  • the new task information may also include a task number, user identification, and/or task status.
  • the task running path and task command as the main features of the new task information are all edited by the user before submitting the task.
  • the task number and user ID can be automatically generated by the server cluster management system according to the task running path and task command editing author, submission time, login account and other information.
  • the task number can be understood as a unique and unique identifier for each new task information.
  • the task status is usually automatically generated by the server cluster management system according to whether the task command has been run or whether it has been withdrawn.
  • the related historical task information may be understood as the task information that has finished running and is the same as or similar to the new task information running content, for example, the historical task information including the same task running path and/or task command.
  • the server cluster management system or each sub-server in the server cluster collects the information of each task that has finished running, and stores it in one or more databases in advance so that the server cluster management system can find relevant historical task information from it.
  • S102 Determine recommended resource information of the new task information according to actual resource usage of the relevant historical task information.
  • the actual resource usage of the related historical task information can be obtained first, and then the resource recommendation information of the new task information can be determined according to the actual resource usage of the related historical task information.
  • the way to determine the resource recommendation information of the new task information may also be determined according to the related historical task information. For example, it can be determined according to the degree of correlation between the acquired related historical task information and the new task information. For the related historical task information with a high degree of correlation, the actual resource usage of the related historical task information can be directly used as the recommended resource information for the new task information However, the relevant historical task information with low correlation degree can be obtained as a resource value recommendation information based on the actual resource usage of the relevant historical task information.
  • the obtained resource amount recommendation information is used to send recommendation information to the user, so as to realize a prompt for the user to fill in the resource application amount.
  • the implementation of the prompt may be, for example, sending the resource recommendation information to the client shown in FIG. 1, so that the client displays a prompt interface containing the resource recommendation information to the user, or may send the resource recommendation information by email, for example. , SMS, voice call, etc. are sent to the user’s account address to prompt through a third-party device.
  • An information recommendation method provided in this embodiment first determines related historical task information based on new task information; and then determines resource recommendation information for the new task information based on actual resource usage of the related historical task information, thereby Realize accurate estimation of the amount of resources that the new task information may use, provide users with accurate recommendation information, and then improve the matching degree between the resource application amount of the new task and the actual resource usage, and improve the balance of resource use.
  • FIG. 3 is a schematic flowchart of another information recommendation method provided by an embodiment of the present disclosure. Based on the embodiment shown in FIG. 2, when different related historical task information is acquired, different resource amount recommendation information may be obtained.
  • FIG. 3 in order to more clearly describe various implementations of the present disclosure, in the following, in conjunction with FIG. 3 and the embodiment, three types of related historical task information that may be acquired in the embodiment shown in FIG. 2 are expanded and illustrated.
  • the method shown in FIG. 3 includes the following steps S201 to S217.
  • the way to obtain the new task information may be active reading or passive reception, which is not limited in this embodiment.
  • the new task information mainly includes task running paths and task commands.
  • S203 Determine whether the first type of historical task information is queried in the pre-stored historical task record.
  • the first type of historical task information is historical task information including the same task running path and task command as the new task information.
  • the historical task record can be understood as a record file of historical task information that has been completed.
  • step S204 If yes, go to step S204, if no, go to step S206.
  • the server cluster runs the same task command in the same task running path, the amount of resources used can be the same or very different, so the first type of historical task information can be regarded as the same historical task information as the new task information. Also in the operating environment provided by the server cluster, the actual resource usage of the first type of historical task information is close to or equal to the actual resource usage of the new task information. For example, the relative error between the actual resource usage of the new task information and the actual resource usage of the first type of historical task information is less than 5%, which is not limited herein.
  • the actual resource usage of one or more historical task information of the first type is 8 CPUs and 150G memory, then you can directly use the 8 CPUs and 150G memory as resource recommendation information for the new task information.
  • step S205 After the execution of step S205 is completed, the process proceeds to step S216.
  • S206 Determine whether the second type of historical task information is queried in the pre-stored historical task record.
  • step S207 If yes, go to step S207, if no, go to step S210.
  • the second type of historical task information is historical task information containing the same task command as the new task information.
  • the third type of historical task information uses the task command included in the new task information as a search keyword to query the pre-stored historical task records to obtain historical task information. It can be understood that if the historical record of the same task information cannot be found in the historical task record, the historical record of the same task command can be found in the historical task record.
  • the second type of historical task information with the same task command as the new task information has a high probability of using similar resources.
  • the second type of historical task information queried may be one or more.
  • the actual resource usage amount of the second type of historical task information may be used as a reference point for determining the first resource usage range, and then a preset reference margin As the length of the interval. For example, if the actual resource usage of the second type of historical task information is 120G memory, then the first resource usage range may be determined to be 90-150G memory according to a preset reference margin of 30G.
  • a number of ranges of first resource use may be determined according to the distribution of actual resource usage of the historical task information of the second type, and each The proportion of the second type of historical task information corresponding to the first resource usage range. For example, when 100 pieces of historical task information of the second type are obtained, 5% of the historical task information of the second type uses memory less than or equal to 100G, 90% of the historical task information of the second type uses memory 100G-200G, and 5% of the The second type of historical task information uses memory greater than or equal to 200G.
  • S209 Use the one or more first resource usage ranges and the proportion of the second type of historical task information corresponding to each of the first resource usage ranges as the resource amount recommendation information of the new task information.
  • the same task command cannot be queried in the pre-stored historical task record, it means that the task command involved in the new task information has not been run in the server cluster, at least during the collection of historical task records Not run. Therefore, in order to provide the user with the reference information of the resource application amount, the historical behavior of the user who submitted the new task information can also be analyzed, so as to push the resource amount recommendation information conforming to the user behavior to the user for reference.
  • the user ID of the new task information may be used to indicate the user who edits the new task information or the user who submits the new task information, and the user who edits and submits is usually the same user.
  • S211 Query the third type of historical task information in the pre-stored historical task records according to the user identification.
  • the third type of historical task information is historical task information corresponding to the user ID. It can also be understood that the third type of historical task information is historical task information obtained by querying a pre-stored historical task record with a user identification as a search keyword.
  • the maximum value of actual resource usage of the third type of historical task information is 150G of used memory, and the minimum value is 200G of used memory.
  • the actual resource usage range between the maximum and minimum values of 150G-200G memory is used as the second resource usage range.
  • the work content of each user is common, and the task information submitted by it is likely to have similar resource usage. And for novice users, they cannot estimate the range of resources they need to apply for.
  • the amount of resources used by the user's already-running task information it is possible to roughly estimate the approximate range of the amount of resources that the user needs to apply for, and improve the accuracy of the user when setting the amount of resource applications.
  • step S215 After the execution of step S215 is completed, the process proceeds to step S216.
  • User information can be understood as user address information such as the client address, email address, mobile phone number, etc. preset by the user, and information such as the user's job number or name.
  • the server cluster management system pre-establishes the correspondence between the user ID and the user information, such as a mapping table, and after obtaining the user ID of the new task information, the user ID is used as a keyword to search in the corresponding relationship , You can get the user information corresponding to the new task information.
  • S217 Push the resource amount recommendation information to the user according to the user information.
  • the method of pushing the resource recommendation information to the user may be to send the resource recommendation information to the client address, email address, or mobile phone number, so as to implement information recommendation to the user.
  • the first type of historical task information that has the same task running path and task command as the new task is first used as related historical task information.
  • the Tasks have the second type of historical task information with the same task command as related historical task information, and when there is no second type of historical task information, use the third type of historical task information corresponding to the user ID as related historical task information, so that the related history Task information is the information in the historical task record that has a high degree of relevance to the new task information; then, according to the determined relevant historical task information, the recommended amount of resource information for the new task information is determined in an appropriate way, so as to realize the new task information Accurate estimates of possible resource usage to provide users with accurate recommendation information so that they can be used as a reference when users set resource application volumes for new task information, thereby improving the matching between resource application volumes for new tasks and actual resource usage To improve the balance of resource use.
  • step S102 determining the resource recommendation information of the new task information according to the actual resource usage of the relevant historical task information
  • step S102 determining the resource recommendation information of the new task information according to the actual resource usage of the relevant historical task information
  • step S102 executes running new task information and determine
  • the process shown in FIG. 4 mainly includes the following steps S301 to S305.
  • the user After referring to the resource amount recommendation information determined in the foregoing embodiment, the user submits the resource application amount for the new task information.
  • S302 Distribute the new task information to sub-servers in a server cluster to run according to the resource application amount.
  • the server cluster management system allocates new task information to the sub-servers in the server cluster to run according to the resource application volume submitted by users and the remaining resources in each sub-server. For example, the resource application amount is 100G memory, then query the sub-servers with remaining memory greater than 100G in the server cluster, and allocate new task information to any of the sub-servers with remaining memory greater than 100G to run.
  • the resource application amount is 100G memory
  • the actual resource usage of the new task information can be collected through the information interface provided by the server management system, or the actual resource of the new task information can be collected by pre-configuring the resource collection program on all sub-servers Usage amount.
  • the actual resource usage collection process of the new task information is pre-configured by the resource collection program. It can be understood that each new task information will have a corresponding start program on the subserver it runs on. Start the program, and by tracking the process tree corresponding to the start program, you can get all the subprograms corresponding to the new task information; then collect the resource usage of all the related programs (starter program and subprograms) of the new task information in real time, thus Calculate the actual resource usage of the new task information.
  • the actual resource usage of the new task information may be an average value or a peak value.
  • the actual resource usage of the starting program and subroutine is the peak usage
  • the actual resource usage of the new task information obtained is also the peak usage.
  • the peak usage is used as the actual resource usage of the new task information, and the recommended resource information is determined based on this, taking into account the maximum possible resource usage, and providing sufficient resource redundancy for the resource allocation process. It can improve the balance of the server cluster management system when allocating resources, and reduce the possibility of sub servers running slowly or down due to insufficient resources.
  • the difference is greater than the preset warning threshold, indicating that the actual resource usage of the new task information and the resource application amount are extremely mismatched. It may be that the actual resource usage of the new task information is much greater or less than the resource request amount. Selectively issue warning messages to users.
  • the warning threshold may be a plurality of thresholds set in stages.
  • the warning threshold includes three levels of 10G, 50G, and 100G. 10G corresponds to mild level warning information, 50G corresponds to moderate level warning information, and 100G corresponds to severe level warning information.
  • 10G corresponds to mild level warning information
  • 50G corresponds to moderate level warning information
  • 100G corresponds to severe level warning information.
  • the same or different warning methods can be used. For example, when the difference is greater than 10G, send an email prompt to the user; when the difference is greater than 50G, send an email and SMS prompt to the user; when the difference is greater than 100G, send the user's email and SMS prompt while dialing the user's mobile number For voice prompts.
  • the difference exceeds the warning threshold of each level, a warning email is sent to the user, and the email is marked with an important identifier corresponding to the warning threshold.
  • An information recommendation method provided by this embodiment, by issuing a warning message to the user when it is determined that the resource application amount does not match the actual resource usage amount, to remind the user of the setting error of the resource application amount, so that the user will be a new
  • the setting value can be adjusted to gradually increase the degree of matching with the actual resource usage amount.
  • step S101 determining related historical task information according to the new task information
  • the process of collecting and storing historical task records may also be included.
  • the historical task information of the end of execution and the user ID corresponding to each historical task information may be acquired in a preset data collection cycle (for example, a year or a project cycle corresponding to new task information).
  • a preset data collection cycle for example, a year or a project cycle corresponding to new task information.
  • the starting program information of the historical task information and all subprogram information corresponding to the starting program information are acquired. It can be understood that the start program indicated by the start program information and the subprogram indicated by the subprogram information are related programs belonging to the same process tree and associated with each other in a parent-child relationship.
  • the historical task information obtains the total resource usage of the starting program information and the subprogram information, and use the total resource usage corresponding to each historical task information as each Actual resource usage of historical task information.
  • the historical task information, the actual resource usage corresponding to each historical task information, and the user identifier corresponding to each historical task information are stored as historical task records.
  • the sum of the resource usage of the starting program information and the subprogram information may be the sum of the peak value of the resource usage, or the sum of the average value of the resource usage.
  • FIG. 5 is a schematic structural diagram of an information recommendation device provided by an embodiment of the present disclosure.
  • An embodiment of the present disclosure also provides an information recommendation device 50, including:
  • the query module 51 is configured to determine relevant historical task information according to the new task information.
  • the processing module 52 is configured to determine the resource recommendation information of the new task information according to the actual resource usage of the relevant historical task information.
  • An information recommendation device provided in this embodiment first determines relevant historical task information based on new task information; then determines resource recommendation information of the new task information based on actual resource usage of the relevant historical task information Realize accurate estimation of the amount of resources that the new task information may use, provide users with accurate recommendation information, and then improve the matching degree between the resource application amount of the new task and the actual resource usage, and improve the balance of resource use.
  • the query module 51 is configured to:
  • processing module 52 is configured to:
  • the actual resource usage of the first type of historical task information is used as the resource recommendation information of the new task information.
  • the query module 51 is further configured to:
  • the second type of historical task information is The new task information includes historical task information of the same task command; if the second type of historical task information is queried in the pre-stored historical task record, the second type of historical task information is used as the related historical task information.
  • processing module 52 is configured to:
  • the second type of historical task information obtain one or more first resource usage ranges, and the proportion of the second type of historical task information corresponding to each of the first resource usage ranges; Or a plurality of first resource usage ranges and the proportion of the second type of historical task information corresponding to each of the first resource usage ranges, as resource amount recommendation information of new task information.
  • the query module 51 is further configured to:
  • the user ID of the new task information is obtained; according to the user ID, the third type of historical task is queried in the pre-stored historical task record Information, the third type of historical task information is historical task information corresponding to the user ID; the third type of historical task information is used as related historical task information.
  • processing module 52 is configured to:
  • processing module 52 is further configured to:
  • the information recommendation device preferentially uses the first type of historical task information having the same task running path and task command as the new task as relevant historical task information.
  • it Tasks have the second type of historical task information with the same task command as related historical task information, and when there is no second type of historical task information, use the third type of historical task information corresponding to the user ID as related historical task information, so that the related history Task information is the information in the historical task record that has a high degree of relevance to the new task information; then, according to the determined relevant historical task information, the recommended amount of resource information for the new task information is determined in an appropriate way, so as to realize the new task information Accurate estimates of possible resource usage to provide users with accurate recommendation information so that they can be used as a reference when users set resource application volumes for new task information, thereby improving the matching between resource application volumes for new tasks and actual resource usage To improve the balance of resource use.
  • FIG. 6 it is a schematic structural diagram of another information recommendation apparatus provided by an embodiment of the present disclosure.
  • the information recommendation device 60 shown in FIG. 6 further includes:
  • the warning module 53 is configured to obtain the resource application amount submitted by the user after the processing module 52 determines the resource amount recommendation information of the new task information according to the actual resource usage amount of the relevant historical task information;
  • the resource application amount allocates the new task information to sub-servers in the server cluster to run; at the end of the operation of the new task information, obtains the actual resource usage of the new task information; obtains the actual task information
  • the difference between the amount of resource usage and the amount of resource applications if the difference is greater than a preset warning threshold, a warning message corresponding to the warning threshold is issued to the user.
  • An information recommendation device provided in this embodiment provides a warning message to the user when it is determined that the resource application amount does not match the actual resource usage amount through the warning module to remind the user of the setting error of the resource application amount, so that the user will be similar in the next time
  • FIG. 7 it is a schematic structural diagram of yet another information recommendation device provided by an embodiment of the present disclosure.
  • the information recommendation device 70 shown in FIG. 7 further includes:
  • the collection module 54 is configured to obtain the historical task information of the end of execution and the user ID corresponding to each historical task information in a preset data collection period before the query module 51 determines relevant historical task information according to the new task information ; Obtain the starting program information of the historical task information and all subprogram information corresponding to the starting program information; for each of the historical task information, obtain the resources of the starting program information and the subprogram information The sum of usage; the sum of the resource usage corresponding to each historical task information is used as the actual resource usage of each historical task information; the historical task information and the actual resource corresponding to each historical task information The usage amount and the user identifier corresponding to each historical task information are stored as historical task records.
  • the information recommendation device collects task information that has been completed in advance through a collection module and stores it as a historical task record, which provides a reliable data basis for information recommendation.
  • An embodiment of the present disclosure also provides a computer including the above-mentioned information recommendation device.
  • An embodiment of the present disclosure also provides a computer-readable storage medium that stores computer-executable instructions that are configured to perform the above-mentioned information recommendation method.
  • An embodiment of the present disclosure also provides a computer program product.
  • the computer program product includes a computer program stored on a computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer, the The computer executes the above information recommendation method.
  • the aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • An embodiment of the present disclosure also provides an electronic device, whose structure is shown in FIG. 8, the electronic device includes:
  • At least one processor (processor) 80 one processor 80 is taken as an example in FIG. 8; and the memory (memory) 81 may further include a communication interface (Communication Interface) 82 and a bus 83.
  • the processor 80, the communication interface 82, and the memory 81 can complete communication with each other through the bus 83.
  • the communication interface 82 may be used for information transmission.
  • the processor 80 may call logic instructions in the memory 81 to execute the information recommendation method of the above embodiment.
  • logic instructions in the above-mentioned memory 81 may be implemented in the form of software functional units and sold or used as an independent product, and may be stored in a computer-readable storage medium.
  • the memory 81 is a computer-readable storage medium and can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor 80 executes functional applications and data processing by running software programs, instructions, and modules stored in the memory 81, that is, implementing the information recommendation method in the foregoing method embodiments.
  • the memory 81 may include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to the use of a terminal device and the like.
  • the memory 81 may include a high-speed random access memory, and may also include a non-volatile memory.
  • the technical solutions of the embodiments of the present disclosure may be embodied in the form of software products, which are stored in a storage medium and include one or more instructions to make a computer device (which may be a personal computer, server, or network) Equipment, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure.
  • the aforementioned storage medium may be a non-transitory storage medium, including: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
  • a medium that can store program codes may also be a transient storage medium.
  • first, second, etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
  • the first element can be called the second element, and likewise, the second element can be called the first element, as long as all occurrences of the "first element” are consistently renamed and all occurrences of The “second component” can be renamed consistently.
  • the first element and the second element are both elements, but they may not be the same element.
  • the various aspects, implementations, implementations or features in the described embodiments can be used alone or in any combination.
  • Various aspects in the described embodiments may be implemented by software, hardware, or a combination of software and hardware.
  • the described embodiments may also be embodied by a computer-readable medium that stores computer-readable code including instructions executable by at least one computing device.
  • the computer-readable medium can be associated with any data storage device capable of storing data, which can be read by a computer system.
  • Computer-readable media used for examples may include read-only memory, random access memory, CD-ROM, HDD, DVD, magnetic tape, optical data storage devices, and the like.
  • the computer-readable medium may also be distributed in computer systems connected through a network, so that computer-readable codes can be stored and executed in a distributed manner.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种信息推荐方法、装置、设备和可读存储介质,所述信息推荐方法首先根据新任务信息,确定相关历史任务信息(S101);然后根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息(S102),从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。

Description

信息推荐方法、装置、设备和可读存储介质 技术领域
本申请涉及信号处理技术,例如涉及一种信息推荐方法、装置、设备和可读存储介质。
背景技术
IC集成电路设计需要依赖大量的运算资源(服务器集群)来运行例如EDA工具等电路设计辅助工具程序。而大规模的服务器集群通常借助于服务器集群管理系统实现资源管理,为不同的任务分配子服务器以及子服务器中的例如CPU资源、内存资源等运算资源。例如服务器集群管理系统根据用户的资源申请量和子服务器中空闲资源的分布,判断为用户提交的任务分配到哪个子服务器中。因此,用户提交的资源申请量是否准确,对服务器集群管理系统能否合理分配资源具有较大影响。
现有的服务器集群管理系统在提交新任务时,通常是依靠用户自己经验对新任务可能需要的资源量进行预判,然后在向服务器集群管理系统提交任务的时候同时提交资源申请量。
在对现有的服务器集群管理系统的使用过程中,用户通常很难在运行任务之前预先判断每个任务准确的资源使用量,甚至难以预估一些任务的资源使用量范围,从而导致现有的服务器集群管理系统无法合理分配资源的问题,进而导致服务器集群资源的使用均衡性不高。
发明内容
本公开实施例提供了一种信息推荐方法,包括:
根据新任务信息,确定相关历史任务信息;
根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息。
通过首先根据新任务信息,确定相关历史任务信息;然后根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息, 从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。
可选地,所述根据新任务信息,确定相关历史任务信息,包括:
获取所述新任务信息的任务运行路径和任务命令;
判断在预存储的历史任务记录中是否查询到第一类历史任务信息,所述第一类历史任务信息为与所述新任务信息包含相同任务运行路径和任务命令的历史任务信息;
若在预存储的历史任务记录中查询到第一类历史任务信息,则将所述第一类历史任务信息作为相关历史任务信息。
可选地,所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,包括:
将所述第一类历史任务信息的实际资源使用量,作为新任务信息的资源量推荐信息。
可选地,所述根据新任务信息,确定相关历史任务信息,还包括:
若在预存储的历史任务记录中没有查询到第一类历史任务信息,则判断在预存储的历史任务记录中是否查询到第二类历史任务信息,所述第二类历史任务信息为与所述新任务信息包含相同任务命令的历史任务信息;
若在预存储的历史任务记录中查询到第二类历史任务信息,则将所述第二类历史任务信息作为相关历史任务信息。
可选地,所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,包括:
根据所述第二类历史任务信息的实际资源使用量,获取一个或多个第一资源使用范围,以及各所述第一资源使用范围对应的第二类历史任务信息占比;
将所述一个或多个第一资源使用范围以及各所述第一资源使用范围对应的第二类历史任务信息占比,作为新任务信息的资源量推荐信息。
可选地,所述根据新任务信息,确定相关历史任务信息,还包括:
若在预存储的历史任务记录中没有查询到第二类历史任务信息,则获取所述新任务信息的用户标识;
根据所述用户标识,在预存储的历史任务记录中查询第三类历史任务信息,所述第三类历史任务信息为所述用户标识对应的历史任务信息;
将所述第三类历史任务信息作为相关历史任务信息。
可选地,所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,包括:
获取所述第三类历史任务信息的实际资源使用量的最大值和最小值;
将所述最大值和最小值之间的实际资源使用量范围,作为第二资源使用范围;
将所述第二资源使用范围作为所述新任务信息的资源量推荐信息。
可选地,在所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,还包括:
获取所述新任务信息对应的用户信息;
根据所述用户信息,向用户推送所述资源量推荐信息。
本公开实施例提供的一种信息推荐方法,先将与新任务具有相同任务运行路径和任务命令的第一类历史任务信息作为相关历史任务信息,在没有第一类历史任务信息时,将与新任务具有相同任务命令的第二类历史任务信息作为相关历史任务信息,以及在没有第二类历史任务信息时将与用户标识对应的第三类历史任务信息作为相关历史任务信息,以使得相关历史任务信息是历史任务记录中与新任务信息具有较高相关程度的信息;然后根据所确定的相关历史任务信息,以相适应的方法确定新任务信息的资源量推荐信息,从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,以便在用户设定新任务信息的资源申请量时作为参考,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。
可选地,在所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,还包括:
获取用户提交的资源申请量;
根据所述资源申请量将所述新任务信息分配至服务器集群中的子服务器中运行;
在所述新任务信息运行结束时,获取所述新任务信息的实际资源使用量;
获取所述新任务信息的实际资源使用量与所述资源申请量之间的差值;
若所述差值大于预设的警告阈值,则向所述用户发出所述警告阈值对应的警告信息。
可选地,在所述根据新任务信息,确定相关历史任务信息之前,还包括:
在预设的数据采集周期中,获取执行结束的历史任务信息和各历史任务信息对应的用户标识;
获取所述历史任务信息的起始程序信息和所述起始程序信息对应的所有子程序信息;
针对每个所述历史任务信息,获取所述起始程序信息和所述子程序信息的资源使用量总和;
将各所述历史任务信息对应的所述资源使用量总和,作为各所述历史任务信息的实际资源使用量;
将所述历史任务信息、各所述历史任务信息对应的实际资源使用量以及各所述历史任务信息对应的用户标识,存储为历史任务记录。
本公开实施例还提供了一种信息推荐装置,包括:
查询模块,被配置为根据新任务信息,确定相关历史任务信息;
处理模块,被配置为根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息。
通过首先根据新任务信息,确定相关历史任务信息;然后根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。
可选地,所述查询模块,被配置为:
获取所述新任务信息的任务运行路径和任务命令;判断在预存储的历史任务记录中是否查询到第一类历史任务信息,所述第一类历史任务信息为与所述新任务信息包含相同任务运行路径和任务命令的历史任务信息;若在预存储的历史任务记录中查询到第一类历史任务信息,则将所述第一类历史任务信息作为相关历史任务信息。
可选地,所述处理模块,被配置为:
将所述第一类历史任务信息的实际资源使用量,作为新任务信息的资源 量推荐信息。
可选地,所述查询模块,还被配置为:
若在预存储的历史任务记录中没有查询到第一类历史任务信息,则判断在预存储的历史任务记录中是否查询到第二类历史任务信息,所述第二类历史任务信息为与所述新任务信息包含相同任务命令的历史任务信息;若在预存储的历史任务记录中查询到第二类历史任务信息,则将所述第二类历史任务信息作为相关历史任务信息。
可选地,所述处理模块,被配置为:
根据所述第二类历史任务信息的实际资源使用量,获取一个或多个第一资源使用范围,以及各所述第一资源使用范围对应的第二类历史任务信息占比;将所述一个或多个第一资源使用范围以及各所述第一资源使用范围对应的第二类历史任务信息占比,作为新任务信息的资源量推荐信息。
可选地,所述查询模块,还被配置为:
若在预存储的历史任务记录中没有查询到第二类历史任务信息,则获取所述新任务信息的用户标识;根据所述用户标识,在预存储的历史任务记录中查询第三类历史任务信息,所述第三类历史任务信息为所述用户标识对应的历史任务信息;将所述第三类历史任务信息作为相关历史任务信息。
可选地,所述处理模块,被配置为:
获取所述第三类历史任务信息的实际资源使用量的最大值和最小值;将所述最大值和最小值之间的实际资源使用量范围,作为第二资源使用范围;将所述第二资源使用范围作为所述新任务信息的资源量推荐信息。
可选地,所述处理模块,还被配置为:
在所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,获取所述新任务信息对应的用户信息;根据所述用户信息,向用户推送所述资源量推荐信息。
信息推荐装置,通过先将与新任务具有相同任务运行路径和任务命令的第一类历史任务信息作为相关历史任务信息,在没有第一类历史任务信息时,将与新任务具有相同任务命令的第二类历史任务信息作为相关历史任务信息,以及在没有第二类历史任务信息时将与用户标识对应的第三类历史任务信息作为相关历史任务信息,以使得相关历史任务信息是历史任务记录中与新任 务信息具有较高相关程度的信息;然后根据所确定的相关历史任务信息,以相适应的方法确定新任务信息的资源量推荐信息,从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,以便在用户设定新任务信息的资源申请量时作为参考,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。
可选地,还包括:
警告模块,被配置为在所述处理模块根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,获取用户提交的资源申请量;根据所述资源申请量将所述新任务信息分配至服务器集群中的子服务器中运行;在所述新任务信息运行结束时,获取所述新任务信息的实际资源使用量;获取所述新任务信息的实际资源使用量与所述资源申请量之间的差值;若所述差值大于预设的警告阈值,则向所述用户发出所述警告阈值对应的警告信息。
可选地,还包括:
采集模块,被配置为在所述查询模块根据新任务信息,确定相关历史任务信息之前,在预设的数据采集周期中,获取执行结束的历史任务信息和各历史任务信息对应的用户标识;获取所述历史任务信息的起始程序信息和所述起始程序信息对应的所有子程序信息;针对每个所述历史任务信息,获取所述起始程序信息和所述子程序信息的资源使用量总和;将各所述历史任务信息对应的所述资源使用量总和,作为各所述历史任务信息的实际资源使用量;将所述历史任务信息、各所述历史任务信息对应的实际资源使用量以及各所述历史任务信息对应的用户标识,存储为历史任务记录。
本公开实施例还提供了一种计算机,包含上述的信息推荐装置。
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述的信息推荐方法。
本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的信息推荐方法。
本公开实施例还提供了一种电子设备,包括:
至少一个处理器;以及
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行上述的信息推荐方法。
附图说明
一个或多个实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件示为类似的元件,附图不构成比例限制,并且其中:
图1是本公开实施例提供的一种应用场景示意图;
图2是本公开实施例提供的一种信息推荐方法流程示意图;
图3是本公开实施例提供的另一种信息推荐方法流程示意图;
图4是本公开实施例提供的一种警告反馈流程示意图;
图5是本公开实施例提供的一种信息推荐装置结构示意图;
图6是本公开实施例提供的另一种信息推荐装置结构示意图;
图7是本公开实施例提供的再一种信息推荐装置结构示意图;以及
图8是本公开实施例提供的一种设备的硬件结构示意图。
具体实施方式
为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或多个实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。
参见图1,是本公开实施例提供的一种应用场景示意图。在图1所示的场景中,用户在客户端3登录服务器集群管理系统2进行任务命令的编辑处理,在任务命令编辑完成后,进行任务提交操作。或者用户在客户端3进行任务命令的编辑处理,在任务命令编辑完成后将任务上传至服务器集群管理系统2,实现任务的提交。
相关技术中,用户在任务提交过程中,自己判断任务需要的资源量,然 后在向服务器集群管理系统2提交任务的时候依靠经验值设置资源申请量。服务器集群管理系统2根据用户为任务申请的资源量,以及当前服务器集群1中各子服务器11的剩余资源分布情况,为用户提交的任务分配子服务器11。由于不同任务所需资源量不同,而用户通常很难在运行任务之前预先知悉每个任务准确的资源使用量,甚至难以预估一类任务的资源使用量范围,从而导致子服务器11运行任务时资源申请量和实际使用量出现较大偏差,任务的实际资源使用量过大或者过小,会造成运行该任务的服务器上负载过轻或者过重,轻则造成任务运行缓慢,重则造成任务运算失败、服务器宕机。相关技术中存在的任务资源申请量与实际使用量不匹配的问题,不但影响了任务的正常运行,而且造成服务器资源的利用效率低下。
为了解决相关技术中存在的问题,在图1所示的应用场景中,本公开的服务器集群管理系统2在获取到新任务时,立即对该新任务可能需要使用的资源量进行估计,并在用户提交资源申请量之前,向用户推荐新任务的资源量推荐信息。用户则可以以该资源量推荐信息作为参考,调整对新任务的资源申请量,以使得新任务在运行时实际使用的资源量与用户申请的资源量差距不大,提高任务分配的准确性,减少因资源申请量不合适导致服务器集群1中各子服务器11的负载不均衡的情况。
参见图2,是本公开实施例提供的一种信息推荐方法流程示意图,图2所示方法的执行主体可以是软件和/或硬件装置,例如可以是图1所示的服务器集群管理系统2。为了方便对实施例进行描述,下面将以服务器集群管理系统为执行主体的示例,对本实施例中各种可能的实现方式进行说明。本公开实施例提供了一种信息推荐方法,包括如下步骤S101至步骤S102。
S101,根据新任务信息,确定相关历史任务信息。
新任务信息的获取方式,可以理解为是从客户端或第三方装置接收到客户端发来的新任务信息,或者是从客户端或第三方装置读取到的新任务信息,或者是根据用户的操作生成的新任务信息。其中的接收和读取可以是实时或定期进行的,本实施例不做限定。
在一种实施例中,新任务信息描述了用户需要运行的任务(job),主要包括任务运行路径和任务命令。在此基础上,新任务信息还可以包括任务编号、用户标识和/或任务状态。其中,任务运行路径和任务命令作为新任务信 息的主要特征,都是用户在提交任务之前编辑好的。而任务编号和用户标识,则可以是服务器集群管理系统根据任务运行路径和任务命令的编辑作者、提交时刻、登录账户等信息自动生成的。任务编号可以理解为是每个新任务信息所独有的,具有唯一性的标识。任务状态通常是服务器集群管理系统根据任务命令是否已运行、是否被撤回等处理情况而自动生成的。
在一实施例中,相关历史任务信息可以理解为已经运行结束的、且与新任务信息运行内容相同或相近的任务信息,例如是包含相同任务运行路径和/或任务命令的历史任务信息。可以理解为,服务器集群管理系统或服务器集群中各子服务器对运行结束的各任务的信息进行采集,并预先存储在一个或多个数据库中,以便服务器集群管理系统从中查找相关历史任务信息。
S102,根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息。
在确定相关历史任务信息之后,可以先获取相关历史任务信息的实际资源使用量,然后再根据相关历史任务信息的实际资源使用量,确定新任务信息的资源量推荐信息。其中,确定所述新任务信息的资源量推荐信息的方式,也可以是根据相关历史任务信息而确定的。例如可以根据获取到的相关历史任务信息与新任务信息的相关程度来确定,相关程度高的相关历史任务信息,可以将相关历史任务信息的实际资源使用量直接作为新任务信息的资源量推荐信息,而相关程度低的相关历史任务信息,则可以根据相关历史任务信息的实际资源使用量得到一个大概的数值范围作为资源量推荐信息。
获取到的资源量推荐信息是用来发送给用户的推荐信息,以实现对用户填写资源申请量的提示。提示的实现方式,可以例如是将资源量推荐信息发给图1所示的客户端,以使得客户端向用户显示包含资源量推荐信息的提示界面,也可以例如是将资源量推荐信息以邮件、短信、语音电话等方式发送至该用户的账户地址,以实现通过第三方设备进行提示。
本实施例提供的一种信息推荐方法,首先根据新任务信息,确定相关历史任务信息;然后根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。
参见图3,是本公开实施例提供的另一种信息推荐方法流程示意图。在图2所示实施例的基础上,获取到不同相关历史任务信息时,可能得到不同的资源量推荐信息。为了更加清楚地描述本公开的各种实施方式,下面结合图3和实施例,对图2所示实施例中可能获取到的三种相关历史任务信息的情况进行展开说明和举例。如图3所示的方法,包括如下步骤S201至S217。
S201,获取新任务信息。
新任务信息的获取方式可以是主动读取,也可以是被动接收,本实施例在此不做限定。新任务信息主要包括任务运行路径和任务命令。
S202,获取所述新任务信息的任务运行路径和任务命令。
S203,判断在预存储的历史任务记录中是否查询到第一类历史任务信息。
其中,第一类历史任务信息为与所述新任务信息包含相同任务运行路径和任务命令的历史任务信息。历史任务记录可以理解为是对已运行结束的历史任务信息的记录文件。
若是,则转入步骤S204,若否,则转入步骤S206。
S204,将所述第一类历史任务信息作为相关历史任务信息。
服务器集群在相同的任务运行路径中运行相同任务命令时,所使用的资源量可以是相同的或极小差异的,因此第一类历史任务信息可以认为是与新任务信息相同的历史任务信息。同样在服务器集群提供的运行环境中,第一类历史任务信息的实际资源使用量接近或等于新任务信息的实际资源使用量。例如新任务信息的实际资源使用量与第一类历史任务信息的实际资源使用量的相对误差小于5%,在此不做限定。
S205,将所述第一类历史任务信息的实际资源使用量,作为新任务信息的资源量推荐信息。
例如,查询得到一个或多个第一类历史任务信息的实际资源使用量,都是8个CPU、150G内存,那么可以直接将8个CPU、150G内存作为新任务信息的资源量推荐信息。
在步骤S205执行结束后再转入步骤S216。
S206,判断在预存储的历史任务记录中是否查询到第二类历史任务信息。
若是,则转入步骤S207,若否,则转入步骤S210。
其中,所述第二类历史任务信息为与所述新任务信息包含相同任务命令 的历史任务信息。还可以理解为,第三类历史任务信息是以新任务信息包含的任务命令为检索关键词在预存储的历史任务记录中进行查询,得到的历史任务信息。可以理解为,若历史任务记录中无法找到运行过相同任务信息的历史记录,则在历史任务记录中再查找相同任务命令的历史记录。虽然任务运行路径不同,但是具有与新任务信息相同任务命令的第二类历史任务信息,很大概率会使用相近的资源量。
S207,将所述第二类历史任务信息作为相关历史任务信息。
S208,根据所述第二类历史任务信息的实际资源使用量,获取一个或多个第一资源使用范围,以及各所述第一资源使用范围对应的第二类历史任务信息占比。
查询到的第二类历史任务信息可能是一个或多个。
在一实施例中,在获取到一个第二类历史任务信息时,可以根据第二类历史任务信息的实际资源使用量作为确定第一资源使用范围的基准点,然后以预设的参考余量作为区间长度。例如,第二类历史任务信息的实际资源使用量为120G内存,那么可以根据预设的参考余量30G,确定第一资源使用范围为90-150G内存。
在另一实施例中,在获取到多个第二类历史任务信息时,可以根据这些第二类历史任务信息的实际资源使用量的分布,确定出若干个第一资源使用范围,以及每个第一资源使用范围对应的第二类历史任务信息占比。例如,获取到100个第二类历史任务信息时,得到5%的第二类历史任务信息使用内存小于或等于100G,90%的第二类历史任务信息使用内存100G-200G,5%的第二类历史任务信息使用内存大于或等于200G。
S209,将所述一个或多个第一资源使用范围以及各所述第一资源使用范围对应的第二类历史任务信息占比,作为新任务信息的资源量推荐信息。
通过向用户提供第一资源使用范围及其对应的第二类历史任务信息占比,可以让用户了解并参考执行同类任务命令所使用资源量的分布情况,从而更加准确地设定新任务信息的资源申请量。
在S209执行结束后再转入步骤S216。
S210,获取所述新任务信息的用户标识。
可以理解为,如果在预存储的历史任务记录中,连相同的任务命令都查 询不到,说明新任务信息涉及的任务命令是在服务器集群中没有运行过的,至少也是在历史任务记录采集期间没有运行过的。因此,为了向用户提供资源申请量的参考信息,还可以对提交新任务信息的用户的历史行为进行分析,从而将符合用户行为的资源量推荐信息推送给用户做参考。新任务信息的用户标识可以用于指示编辑新任务信息的用户或提交新任务信息的用户,编辑和提交的用户通常为同一用户。
S211,根据所述用户标识,在预存储的历史任务记录中查询第三类历史任务信息。
其中,第三类历史任务信息为所述用户标识对应的历史任务信息。还可以理解为,第三类历史任务信息是以用户标识为检索关键词在预存储的历史任务记录中进行查询,得到的历史任务信息。
S212,将所述第三类历史任务信息作为相关历史任务信息。
S213,获取所述第三类历史任务信息的实际资源使用量的最大值和最小值。
例如,第三类历史任务信息的实际资源使用量的最大值为使用内存150G,最小值为使用内存200G。
S214,将所述最大值和最小值之间的实际资源使用量范围,作为第二资源使用范围。
例如将最大值和最小值之间的实际资源使用量范围150G-200G内存,作为第二资源使用范围。可以理解为,每个用户所负责的工作内容是具有共性的,其提交的任务信息很可能具有相近的资源使用量。而且对于新手用户来说,并不能估计自己需要申请的资源量范围。通过对用户的已经运行过的任务信息所使用的资源量,能够对该用户需要申请的资源量的大概范围进行粗略估计,提高用户在设定资源申请量时的准确性。
S215,将所述第二资源使用范围作为所述新任务信息的资源量推荐信息。
步骤S215执行结束后再转入步骤S216。
S216,获取所述新任务信息对应的用户信息。
用户信息可以理解为是用户预设的客户端地址、邮箱地址、手机号码等用户地址信息,以及用户的工号或名称等信息。在一种实施例中,服务器集群管理系统预先建立用户标识与用户信息的对应关系,例如是一映射表,在 得到新任务信息的用户标识后,以用户标识作为关键词在对应关系中进行查找,可以获取到新任务信息对应的用户信息。
S217,根据所述用户信息,向用户推送所述资源量推荐信息。
向用户推送资源量推荐信息的方式,可以是向客户端地址、邮箱地址或者手机号码发送资源量推荐信息,以实现对用户的信息推荐。
本实施例提供的一种信息推荐方法,先将与新任务具有相同任务运行路径和任务命令的第一类历史任务信息作为相关历史任务信息,在没有第一类历史任务信息时,将与新任务具有相同任务命令的第二类历史任务信息作为相关历史任务信息,以及在没有第二类历史任务信息时将与用户标识对应的第三类历史任务信息作为相关历史任务信息,以使得相关历史任务信息是历史任务记录中与新任务信息具有较高相关程度的信息;然后根据所确定的相关历史任务信息,以相适应的方法确定新任务信息的资源量推荐信息,从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,以便在用户设定新任务信息的资源申请量时作为参考,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。
参见图4,是本公开实施例提供的一种警告反馈流程示意图。在上述实施例的基础上,在步骤S102(根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息)之后,还可以执行运行新任务信息,并在确定资源申请量与实际资源使用量不匹配时向用户发出警告的过程,可以参见图4所示的过程。图4所示的过程主要包括如下步骤S301至S305。
S301,获取用户提交的资源申请量。
用户参考上述实施例中确定的资源量推荐信息后,对新任务信息提交资源申请量。
S302,根据所述资源申请量将所述新任务信息分配至服务器集群中的子服务器中运行。
服务器集群管理系统根据用户提交的资源申请量,以及各子服务器中的剩余资源,将新任务信息分配至服务器集群中的子服务器中运行。例如资源申请量为100G内存,那么查询服务器集群中剩余内存大于100G的子服务器,将新任务信息分配至剩余内存大于100G的子服务器中的任一之中运行。
S303,在所述新任务信息运行结束时,获取所述新任务信息的实际资源 使用量。
在检测到新任务信息运行结束时,可以通过服务器管理系统提供的信息接口采集新任务信息的实际资源使用量,也可以通过在所有子服务器上预先配置资源采集程序,采集新任务信息的实际资源使用量。预先配置资源采集程序对新任务信息的实际资源使用量的采集过程,可以理解为,每个新任务信息在其运行的子服务器上会有一个对应的起始程序,首先获取新任务信息对应的起始程序,并通过追踪该起始程序对应的进程树可以得到新任务信息所对应的所有子程序;然后实时采集新任务信息的所有相关程序(起始程序和子程序)的资源使用量,从而计算得到新任务信息的实际资源使用量。
其中,新任务信息的实际资源使用量可以是平均值或者峰值。例如,获取到起始程序和子程序的实际资源使用量是峰值使用量,则得到的新任务信息的实际资源使用量也是峰值使用量。以峰值使用量作为新任务信息的实际资源使用量,并以此为依据确定资源量推荐信息,将最大可能需要使用的资源量考虑在内,为资源分配过程提供了足够的资源冗余量,可以提高服务器集群管理系统在资源分配时的均衡性,降低子服务器因资源不足而运行缓慢或宕机的可能性。
S304,获取所述新任务信息的实际资源使用量与所述资源申请量之间的差值。
S305,若所述差值大于预设的警告阈值,则向所述用户发出所述警告阈值对应的警告信息。
差值大于预设的警告阈值,表明新任务信息的实际资源使用量与所述资源申请量极度不匹配,可能是新任务信息的实际资源使用量远大于或远小于所述资源申请量,可选地对用户发出警告信息。
在一种实施例中,警告阈值可以是分等级设定的多个阈值。例如警告阈值包括10G、50G、100G三种等级的阈值。10G对应轻度等级警告信息,50G对应中度等级警告信息,100G对应严重等级警告信息。对于各等级的警告阈值,可以采用相同或不同的警告方式。例如在差值大于10G时,向用户发出邮件提示;在差值大于50G时,向用户发出邮件和短信提示;在差值大于100G时,向用户的发出邮件和短信提示的同时拨打用户手机号码,进行语音提示。又例如,在差值超过各等级的警告阈值时,给用户发送警告邮件,并将邮件 标记上所述警告阈值对应的重要标识。
本实施例提供的一种信息推荐方法,通过在确定资源申请量与实际资源使用量不匹配时向用户发出警告信息,提醒用户对资源申请量的设定误差,以便用户在下一次为相似的新任务信息设定资源申请量时,能够调整设定值,逐渐提高与资源实际使用量的匹配程度。
在上述实施例的基础上,在步骤S101(根据新任务信息,确定相关历史任务信息)之前,还可以包括历史任务记录的采集和存储过程。
在一实施例中,可以在预设的数据采集周期(例如是一年或者是新任务信息对应的项目周期)中,获取执行结束的历史任务信息和各历史任务信息对应的用户标识。由此可以建立用户标识与历史任务信息之间的对应关系。然后获取所述历史任务信息的起始程序信息和所述起始程序信息对应的所有子程序信息。可以理解为,起始程序信息所指示的起始程序与子程序信息指示的子程序,是属于同一进程树的、相互之间以父子关系关联的相关程序。再针对每个所述历史任务信息,获取所述起始程序信息和所述子程序信息的资源使用量总和,并将各所述历史任务信息对应的所述资源使用量总和,作为各所述历史任务信息的实际资源使用量。最后将所述历史任务信息、各所述历史任务信息对应的实际资源使用量以及各所述历史任务信息对应的用户标识,存储为历史任务记录。其中,所述起始程序信息和所述子程序信息的资源使用量总和,可以是资源使用量峰值总和,也可以是资源使用量平均值总和。
参见图5,是本公开实施例提供的一种信息推荐装置结构示意图。本公开实施例还提供了一种信息推荐装置50,包括:
查询模块51,被配置为根据新任务信息,确定相关历史任务信息。
处理模块52,被配置为根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息。
本实施例提供的一种信息推荐装置,首先根据新任务信息,确定相关历史任务信息;然后根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。
在一实施例中,查询模块51,被配置为:
获取所述新任务信息的任务运行路径和任务命令;判断在预存储的历史任务记录中是否查询到第一类历史任务信息,所述第一类历史任务信息为与所述新任务信息包含相同任务运行路径和任务命令的历史任务信息;若在预存储的历史任务记录中查询到第一类历史任务信息,则将所述第一类历史任务信息作为相关历史任务信息。
在一实施例中,处理模块52,被配置为:
将所述第一类历史任务信息的实际资源使用量,作为新任务信息的资源量推荐信息。
在一实施例中,查询模块51,还被配置为:
若在预存储的历史任务记录中没有查询到第一类历史任务信息,则判断在预存储的历史任务记录中是否查询到第二类历史任务信息,所述第二类历史任务信息为与所述新任务信息包含相同任务命令的历史任务信息;若在预存储的历史任务记录中查询到第二类历史任务信息,则将所述第二类历史任务信息作为相关历史任务信息。
在一实施例中,处理模块52,被配置为:
根据所述第二类历史任务信息的实际资源使用量,获取一个或多个第一资源使用范围,以及各所述第一资源使用范围对应的第二类历史任务信息占比;将所述一个或多个第一资源使用范围以及各所述第一资源使用范围对应的第二类历史任务信息占比,作为新任务信息的资源量推荐信息。
在一实施例中,查询模块51,还被配置为:
若在预存储的历史任务记录中没有查询到第二类历史任务信息,则获取所述新任务信息的用户标识;根据所述用户标识,在预存储的历史任务记录中查询第三类历史任务信息,所述第三类历史任务信息为所述用户标识对应的历史任务信息;将所述第三类历史任务信息作为相关历史任务信息。
在一实施例中,处理模块52,被配置为:
获取所述第三类历史任务信息的实际资源使用量的最大值和最小值;将所述最大值和最小值之间的实际资源使用量范围,作为第二资源使用范围;将所述第二资源使用范围作为所述新任务信息的资源量推荐信息。
在一实施例中,处理模块52,还被配置为:
在所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,获取所述新任务信息对应的用户信息;根据所述用户信息,向用户推送所述资源量推荐信息。
本实施例提供的一种信息推荐装置,优先将与新任务具有相同任务运行路径和任务命令的第一类历史任务信息作为相关历史任务信息,在没有第一类历史任务信息时,将与新任务具有相同任务命令的第二类历史任务信息作为相关历史任务信息,以及在没有第二类历史任务信息时将与用户标识对应的第三类历史任务信息作为相关历史任务信息,以使得相关历史任务信息是历史任务记录中与新任务信息具有较高相关程度的信息;然后根据所确定的相关历史任务信息,以相适应的方法确定新任务信息的资源量推荐信息,从而实现对新任务信息可能使用资源量的准确估计,为用户提供准确的推荐信息,以便在用户设定新任务信息的资源申请量时作为参考,进而提高新任务的资源申请量与资源实际使用量之间的匹配程度,提高资源使用的均衡性。
在上述实施例的基础上,参见图6,是本公开实施例提供的另一种信息推荐装置结构示意图。如图6所示的信息推荐装置60还包括:
警告模块53,被配置为在所述处理模块52根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,获取用户提交的资源申请量;根据所述资源申请量将所述新任务信息分配至服务器集群中的子服务器中运行;在所述新任务信息运行结束时,获取所述新任务信息的实际资源使用量;获取所述新任务信息的实际资源使用量与所述资源申请量之间的差值;若所述差值大于预设的警告阈值,则向所述用户发出所述警告阈值对应的警告信息。
本实施例提供的一种信息推荐装置,通过警告模块在确定资源申请量与实际资源使用量不匹配时向用户发出警告信息,提醒用户对资源申请量的设定误差,以便用户在下一次为相似的新任务信息设定资源申请量时,能够调整设定值,逐渐提高与资源实际使用量的匹配程度。
在上述实施例的基础上,参见图7,是本公开实施例提供的再一种信息推荐装置结构示意图。如图7所示的信息推荐装置70还包括:
采集模块54,被配置为在所述查询模块51根据新任务信息,确定相关历史任务信息之前,在预设的数据采集周期中,获取执行结束的历史任务信 息和各历史任务信息对应的用户标识;获取所述历史任务信息的起始程序信息和所述起始程序信息对应的所有子程序信息;针对每个所述历史任务信息,获取所述起始程序信息和所述子程序信息的资源使用量总和;将各所述历史任务信息对应的所述资源使用量总和,作为各所述历史任务信息的实际资源使用量;将所述历史任务信息、各所述历史任务信息对应的实际资源使用量以及各所述历史任务信息对应的用户标识,存储为历史任务记录。
本实施例提供的信息推荐装置,通过采集模块预先对已运行结束的任务信息进行采集,存储为历史任务记录,为信息推荐提供了可靠的数据基础。
本公开实施例还提供了一种计算机,包含上述的信息推荐装置。
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述信息推荐方法。
本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述信息推荐方法。
上述的计算机可读存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。
参见图8,是本公开实施例提供的一种电子设备结构示意图。本公开实施例还提供了一种电子设备,其结构如图8所示,该电子设备包括:
至少一个处理器(processor)80,图8中以一个处理器80为例;和存储器(memory)81,还可以包括通信接口(Communication Interface)82和总线83。其中,处理器80、通信接口82、存储器81可以通过总线83完成相互间的通信。通信接口82可以用于信息传输。处理器80可以调用存储器81中的逻辑指令,以执行上述实施例的信息推荐方法。
此外,上述的存储器81中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器81作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器80通过运行存储在存储器81中的软件程序、指令以及模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的信息推荐方法。
存储器81可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器81可以包括高速随机存取存储器,还可以包括非易失性存储器。
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
当用于本申请中时,虽然术语“第一”、“第二”等可能会在本申请中使用以描述各元件,但这些元件不应受到这些术语的限制。这些术语仅用于将一个元件与另一个元件区别开。比如,在不改变描述的含义的情况下,第一元件可以叫做第二元件,并且同样第,第二元件可以叫做第一元件,只要所有出现的“第一元件”一致重命名并且所有出现的“第二元件”一致重命名即可。第一元件和第二元件都是元件,但可以不是相同的元件。
本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。
所描述的实施例中的各方面、实施方式、实现或特征能够单独使用或以任意组合的方式使用。所描述的实施例中的各方面可由软件、硬件或软硬件的结合实现。所描述的实施例也可以由存储有计算机可读代码的计算机可读介质体现,该计算机可读代码包括可由至少一个计算装置执行的指令。所述 计算机可读介质可与任何能够存储数据的数据存储装置相关联,该数据可由计算机系统读取。用于举例的计算机可读介质可以包括只读存储器、随机存取存储器、CD-ROM、HDD、DVD、磁带以及光数据存储装置等。所述计算机可读介质还可以分布于通过网络联接的计算机系统中,这样计算机可读代码就可以分布式存储并执行。
上述技术描述可参照附图,这些附图形成了本申请的一部分,并且通过描述在附图中示出了依照所描述的实施例的实施方式。虽然这些实施例描述的足够详细以使本领域技术人员能够实现这些实施例,但这些实施例是非限制性的;这样就可以使用其它的实施例,并且在不脱离所描述的实施例的范围的情况下还可以做出变化。比如,流程图中所描述的操作顺序是非限制性的,因此在流程图中阐释并且根据流程图描述的两个或两个以上操作的顺序可以根据若干实施例进行改变。作为另一个例子,在若干实施例中,在流程图中阐释并且根据流程图描述的一个或一个以上操作是可选的,或是可删除的。另外,某些步骤或功能可以添加到所公开的实施例中,或两个以上的步骤顺序被置换。所有这些变化被认为包含在所公开的实施例以及权利要求中。
另外,上述技术描述中使用术语以提供所描述的实施例的透彻理解。然而,并不需要过于详细的细节以实现所描述的实施例。因此,实施例的上述描述是为了阐释和描述而呈现的。上述描述中所呈现的实施例以及根据这些实施例所公开的例子是单独提供的,以添加上下文并有助于理解所描述的实施例。上述说明书不用于做到无遗漏或将所描述的实施例限制到本公开的精确形式。根据上述教导,若干修改、选择适用以及变化是可行的。在某些情况下,没有详细描述为人所熟知的处理步骤以避免不必要地影响所描述的实施例。

Claims (24)

  1. 一种信息推荐方法,其特征在于,包括:
    根据新任务信息,确定相关历史任务信息;
    根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息。
  2. 根据权利要求1所述的方法,其特征在于,所述根据新任务信息,确定相关历史任务信息,包括:
    获取所述新任务信息的任务运行路径和任务命令;
    判断在预存储的历史任务记录中是否查询到第一类历史任务信息,所述第一类历史任务信息为与所述新任务信息包含相同任务运行路径和任务命令的历史任务信息;
    若在预存储的历史任务记录中查询到第一类历史任务信息,则将所述第一类历史任务信息作为相关历史任务信息。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,包括:
    将所述第一类历史任务信息的实际资源使用量,作为新任务信息的资源量推荐信息。
  4. 根据权利要求2所述的方法,其特征在于,所述根据新任务信息,确定相关历史任务信息,还包括:
    若在预存储的历史任务记录中没有查询到第一类历史任务信息,则判断在预存储的历史任务记录中是否查询到第二类历史任务信息,所述第二类历史任务信息为与所述新任务信息包含相同任务命令的历史任务信息;
    若在预存储的历史任务记录中查询到第二类历史任务信息,则将所述第二类历史任务信息作为相关历史任务信息。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,包括:
    根据所述第二类历史任务信息的实际资源使用量,获取一个或多个第一资源使用范围,以及各所述第一资源使用范围对应的第二类历史任务信息占比;
    将所述一个或多个第一资源使用范围以及各所述第一资源使用范围对应 的第二类历史任务信息占比,作为新任务信息的资源量推荐信息。
  6. 根据权利要求4所述的方法,其特征在于,所述根据新任务信息,确定相关历史任务信息,还包括:
    若在预存储的历史任务记录中没有查询到第二类历史任务信息,则获取所述新任务信息的用户标识;
    根据所述用户标识,在预存储的历史任务记录中查询第三类历史任务信息,所述第三类历史任务信息为所述用户标识对应的历史任务信息;
    将所述第三类历史任务信息作为相关历史任务信息。
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息,包括:
    获取所述第三类历史任务信息的实际资源使用量的最大值和最小值;
    将所述最大值和最小值之间的实际资源使用量范围,作为第二资源使用范围;
    将所述第二资源使用范围作为所述新任务信息的资源量推荐信息。
  8. 根据权利要求1至7任一所述的方法,其特征在于,在所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,还包括:
    获取所述新任务信息对应的用户信息;
    根据所述用户信息,向用户推送所述资源量推荐信息。
  9. 根据权利要求1至7任一所述的方法,其特征在于,在所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,还包括:
    获取用户提交的资源申请量;
    根据所述资源申请量将所述新任务信息分配至服务器集群中的子服务器中运行;
    在所述新任务信息运行结束时,获取所述新任务信息的实际资源使用量;
    获取所述新任务信息的实际资源使用量与所述资源申请量之间的差值;
    若所述差值大于预设的警告阈值,则向所述用户发出所述警告阈值对应的警告信息。
  10. 根据权利要求1至7任一所述的方法,其特征在于,在所述根据新 任务信息,确定相关历史任务信息之前,还包括:
    在预设的数据采集周期中,获取执行结束的历史任务信息和各历史任务信息对应的用户标识;
    获取所述历史任务信息的起始程序信息和所述起始程序信息对应的所有子程序信息;
    针对每个所述历史任务信息,获取所述起始程序信息和所述子程序信息的资源使用量总和;
    将各所述历史任务信息对应的所述资源使用量总和,作为各所述历史任务信息的实际资源使用量;
    将所述历史任务信息、各所述历史任务信息对应的实际资源使用量以及各所述历史任务信息对应的用户标识,存储为历史任务记录。
  11. 一种信息推荐装置,其特征在于,包括:
    查询模块,被配置为根据新任务信息,确定相关历史任务信息;
    处理模块,被配置为根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息。
  12. 根据权利要求11所述的装置,其特征在于,所述查询模块被配置为:
    获取所述新任务信息的任务运行路径和任务命令;判断在预存储的历史任务记录中是否查询到第一类历史任务信息,所述第一类历史任务信息为与所述新任务信息包含相同任务运行路径和任务命令的历史任务信息;若在预存储的历史任务记录中查询到第一类历史任务信息,则将所述第一类历史任务信息作为相关历史任务信息。
  13. 根据权利要求12所述的装置,其特征在于,所述处理模块被配置为:
    将所述第一类历史任务信息的实际资源使用量,作为新任务信息的资源量推荐信息。
  14. 根据权利要求12所述的装置,其特征在于,所述查询模块还被配置为:
    若在预存储的历史任务记录中没有查询到第一类历史任务信息,则判断在预存储的历史任务记录中是否查询到第二类历史任务信息,所述第二类历史任务信息为与所述新任务信息包含相同任务命令的历史任务信息;若在预存储的历史任务记录中查询到第二类历史任务信息,则将所述第二类历史任 务信息作为相关历史任务信息。
  15. 根据权利要求14所述的装置,其特征在于,所述处理模块被配置为:
    根据所述第二类历史任务信息的实际资源使用量,获取一个或多个第一资源使用范围,以及各所述第一资源使用范围对应的第二类历史任务信息占比;将所述一个或多个第一资源使用范围以及各所述第一资源使用范围对应的第二类历史任务信息占比,作为新任务信息的资源量推荐信息。
  16. 根据权利要求14所述的装置,其特征在于,所述查询模块还被配置为:
    若在预存储的历史任务记录中没有查询到第二类历史任务信息,则获取所述新任务信息的用户标识;根据所述用户标识,在预存储的历史任务记录中查询第三类历史任务信息,所述第三类历史任务信息为所述用户标识对应的历史任务信息;将所述第三类历史任务信息作为相关历史任务信息。
  17. 根据权利要求16所述的装置,其特征在于,所述处理模块被配置为:
    获取所述第三类历史任务信息的实际资源使用量的最大值和最小值;将所述最大值和最小值之间的实际资源使用量范围,作为第二资源使用范围;将所述第二资源使用范围作为所述新任务信息的资源量推荐信息。
  18. 根据权利要求11至17任一所述的装置,其特征在于,所述处理模块还被配置为:
    在所述根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,获取所述新任务信息对应的用户信息;根据所述用户信息,向用户推送所述资源量推荐信息。
  19. 根据权利要求11至17任一所述的装置,其特征在于,还包括:
    警告模块,被配置为在所述处理模块根据所述相关历史任务信息的实际资源使用量,确定所述新任务信息的资源量推荐信息之后,获取用户提交的资源申请量;根据所述资源申请量将所述新任务信息分配至服务器集群中的子服务器中运行;在所述新任务信息运行结束时,获取所述新任务信息的实际资源使用量;获取所述新任务信息的实际资源使用量与所述资源申请量之间的差值;若所述差值大于预设的警告阈值,则向所述用户发出所述警告阈值对应的警告信息。
  20. 根据权利要求11至17任一所述的装置,其特征在于,还包括:
    采集模块,被配置为在所述查询模块根据新任务信息,确定相关历史任务信息之前,在预设的数据采集周期中,获取执行结束的历史任务信息和各历史任务信息对应的用户标识;获取所述历史任务信息的起始程序信息和所述起始程序信息对应的所有子程序信息;针对每个所述历史任务信息,获取所述起始程序信息和所述子程序信息的资源使用量总和;将各所述历史任务信息对应的所述资源使用量总和,作为各所述历史任务信息的实际资源使用量;将所述历史任务信息、各所述历史任务信息对应的实际资源使用量以及各所述历史任务信息对应的用户标识,存储为历史任务记录。
  21. 一种计算机,其特征在于,包含权利要求11至20任一项所述的信息推荐装置。
  22. 一种电子设备,其特征在于,包括:
    至少一个处理器;以及
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行权利要求1-10任一项所述的信息推荐方法。
  23. 一种计算机可读存储介质,其特征在于,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-10任一项所述的信息推荐方法。
  24. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-10任一项所述的信息推荐方法。
PCT/CN2018/118405 2018-11-30 2018-11-30 信息推荐方法、装置、设备和可读存储介质 WO2020107368A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880098287.2A CN112789599A (zh) 2018-11-30 2018-11-30 信息推荐方法、装置、设备和可读存储介质
PCT/CN2018/118405 WO2020107368A1 (zh) 2018-11-30 2018-11-30 信息推荐方法、装置、设备和可读存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/118405 WO2020107368A1 (zh) 2018-11-30 2018-11-30 信息推荐方法、装置、设备和可读存储介质

Publications (1)

Publication Number Publication Date
WO2020107368A1 true WO2020107368A1 (zh) 2020-06-04

Family

ID=70851889

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/118405 WO2020107368A1 (zh) 2018-11-30 2018-11-30 信息推荐方法、装置、设备和可读存储介质

Country Status (2)

Country Link
CN (1) CN112789599A (zh)
WO (1) WO2020107368A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535398B (zh) * 2021-07-14 2024-02-27 广州虎牙科技有限公司 资源分配调整方法、装置、电子设备和可读存储介质
CN113378498B (zh) * 2021-08-12 2021-11-26 新华三半导体技术有限公司 一种任务分配方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391749A (zh) * 2014-11-26 2015-03-04 北京奇艺世纪科技有限公司 一种资源分配方法及装置
CN106375115A (zh) * 2016-08-30 2017-02-01 东软集团股份有限公司 资源分配方法及装置
CN108572875A (zh) * 2018-04-28 2018-09-25 辽宁工程技术大学 资源分配方法、装置及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110295634A1 (en) * 2010-05-28 2011-12-01 International Business Machines Corporation System and Method for Dynamic Optimal Resource Constraint Mapping in Business Process Models
US20170109203A1 (en) * 2015-10-15 2017-04-20 International Business Machines Corporation Task scheduling
CN105915701A (zh) * 2015-12-31 2016-08-31 乐视移动智能信息技术(北京)有限公司 一种信息推荐方法及装置
CN107291546B (zh) * 2016-03-30 2020-07-14 华为技术有限公司 一种资源调度方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391749A (zh) * 2014-11-26 2015-03-04 北京奇艺世纪科技有限公司 一种资源分配方法及装置
CN106375115A (zh) * 2016-08-30 2017-02-01 东软集团股份有限公司 资源分配方法及装置
CN108572875A (zh) * 2018-04-28 2018-09-25 辽宁工程技术大学 资源分配方法、装置及系统

Also Published As

Publication number Publication date
CN112789599A (zh) 2021-05-11

Similar Documents

Publication Publication Date Title
CN109660607B (zh) 一种业务请求分发方法、接收方法、装置及服务器集群
CN107229555B (zh) 标识生成方法和装置
US10430332B2 (en) System and method for performance tuning of garbage collection algorithms
US7035882B2 (en) Data storage system
CN107515783B (zh) 基于应用容器集群工具的应用容器管控方法及装置
CN106951179B (zh) 一种数据迁移方法及装置
CN108471421B (zh) 一种云环境下构建多个专属平台的方法、系统及相关装置
WO2020107368A1 (zh) 信息推荐方法、装置、设备和可读存储介质
CN111159219B (zh) 一种数据管理方法、装置、服务器及存储介质
CN108154024B (zh) 一种数据检索方法、装置及电子设备
CN109388651B (zh) 一种数据处理方法和装置
CN109189808B (zh) 数据查询方法及相关设备
CN114089917A (zh) 分布式对象存储集群及其扩容方法、装置及电子设备
CN107656796B (zh) 一种虚拟机冷迁移方法、系统及设备
CN107784043B (zh) 数据仓库数据表的监控方法、装置及系统
CN111399999B (zh) 计算机资源处理方法、装置、可读存储介质和计算机设备
CN109309574B (zh) 一种微协助上下级办公群的建立方法及系统
CN111885184A (zh) 高并发场景下热点访问关键字处理方法和装置
CN110134546A (zh) 批量重启windows系统方法、电子装置及存储介质
CN116226178A (zh) 一种数据查询方法、装置、存储介质及电子装置
CN115686746A (zh) 访问方法、任务处理方法、计算设备及计算机存储介质
CN107203550B (zh) 一种数据处理方法和数据库服务器
CN113687920A (zh) 一种分布式系统的对象策略操作方法、装置及设备
US20180062952A1 (en) Supplementing log messages with metadata
KR102214185B1 (ko) 자원 획득 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18941610

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09.09.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18941610

Country of ref document: EP

Kind code of ref document: A1