CN112540838A - System resource scheduling method and device and computer storage medium - Google Patents

System resource scheduling method and device and computer storage medium Download PDF

Info

Publication number
CN112540838A
CN112540838A CN202011522695.1A CN202011522695A CN112540838A CN 112540838 A CN112540838 A CN 112540838A CN 202011522695 A CN202011522695 A CN 202011522695A CN 112540838 A CN112540838 A CN 112540838A
Authority
CN
China
Prior art keywords
application
micro
server
scheduling
historical behavior
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202011522695.1A
Other languages
Chinese (zh)
Other versions
CN112540838B (en
Inventor
张星
徐高峰
路旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen ZNV Technology Co Ltd
Nanjing ZNV Software Co Ltd
Original Assignee
Shenzhen ZNV Technology Co Ltd
Nanjing ZNV Software Co Ltd
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 Shenzhen ZNV Technology Co Ltd, Nanjing ZNV Software Co Ltd filed Critical Shenzhen ZNV Technology Co Ltd
Priority to CN202011522695.1A priority Critical patent/CN112540838B/en
Publication of CN112540838A publication Critical patent/CN112540838A/en
Application granted granted Critical
Publication of CN112540838B publication Critical patent/CN112540838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • 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]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

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

The invention discloses a system resource scheduling method, which comprises the following steps: receiving a registration request sent by an application micro server, registering the application micro server according to the registration request, and generating registration information of the application micro server; when a data updating notice sent by the application micro-server is received, reading historical behavior log data corresponding to the application micro-server from a shared space according to the registration information; acquiring a system state report according to historical behavior log data corresponding to the application micro-service terminal; and scheduling system resources by adopting a preset resource scheduling rule based on the system state report. The invention also discloses a system resource scheduling device and a computer storage medium, which solve the problem that the micro service technology cannot normally operate due to insufficient system resources in the prior art and improve the efficiency and the performance of the software information system.

Description

System resource scheduling method and device and computer storage medium
Technical Field
The present invention relates to the field of system resource management technologies, and in particular, to a system resource scheduling method, a system resource scheduling apparatus, and a computer storage medium.
Background
The current micro-service technology is widely applied to a large commercial information system, is also widely applied to some customized platforms of B2B, gradually permeates into edge computing and Internet of things products, and is applied to some emerging micro-service management technologies such as docker, Kubernets, Dubbo, zookeeper and the like, so that the problems of deployment, monitoring, resource scheduling and the like of micro-services are greatly solved; however, at the same time, the techniques have high requirements on the configuration and performance of hardware resources, only some large information systems are actually adopted, and the techniques are not applied to medium and small information systems, edge computing gateways and intelligent terminals in many cases, mainly because the hardware resources of the information systems are limited, most of the resources are subjected to business processing preferentially, and the rest of the resources are insufficient to support the normal operation of the similarly huge micro-service techniques, and the adoption of the techniques can bring negative effects on the aspects of system performance and the like.
Therefore, it is crucial to design a system resource scheduling method to improve the efficiency and performance of the software information system.
Disclosure of Invention
The invention mainly aims to provide a system resource scheduling method, a system resource scheduling device and a computer storage medium, and aims to solve the problem that the micro-service technology cannot normally operate due to insufficient system resources in the prior art.
In order to achieve the above object, the present invention provides a system resource scheduling method, which is applied to at least one application microserver and at least one application microserver, and in an embodiment, the system resource scheduling method includes the following steps:
receiving a registration request sent by an application micro server, registering the application micro server according to the registration request, and generating registration information of the application micro server;
when a data updating notice sent by the application micro-server is received, reading historical behavior log data corresponding to the application micro-server from a shared space according to the registration information;
acquiring a system state report according to historical behavior log data corresponding to the application micro-service terminal;
and scheduling system resources by adopting a preset resource scheduling rule based on the system state report.
In an embodiment, the receiving a registration request sent by an application microserver, and before registering the application microserver according to the registration request, includes:
acquiring configuration information of a management micro server, and determining an application micro server to be monitored according to the configuration information;
and sending the registration request of the application micro server to be monitored to the management micro server.
In an embodiment, the registration information is obtained by reading the configuration information of the management microserver by the application microserver.
In an embodiment, before receiving the data update notification sent by the application microserver, the method includes:
acquiring historical behavior log data of an application micro server, and sending the historical behavior log data to a shared space;
and updating data of a shared space by adopting the historical behavior log data, generating a data updating notice, and sending the data updating notice to the management microserver.
In one embodiment, the historical behavior log data includes: message information, interrupt information, and interrupted resource information.
In an embodiment, the obtaining a system status report according to historical behavior log data corresponding to the application microserver includes:
acquiring historical behavior log data in a shared space, and carrying out statistics on the historical behavior log data to generate statistical information;
and analyzing the service condition of the system resource according to the statistical information and generating a system state report.
In one embodiment, the system resource operation report includes at least: usage of system resources, message processing efficiency, and application microservice dependencies.
In an embodiment, the scheduling system resources by using a preset resource scheduling rule based on the system status report includes: and according to the system resource operation report, performing cold scheduling or hot scheduling on system resources by adopting a preset resource scheduling rule according to the hardware configuration of the system or the priority of the application micro-service.
In order to achieve the above object, the present invention further provides a system resource scheduling apparatus, which includes a memory, a processor, and a system resource scheduler stored in the memory and operable on the processor, and when executed by the processor, the system resource scheduler implements the steps of the system resource scheduling method as described above.
To achieve the above object, the present invention further provides a computer storage medium storing a system resource scheduler, which when executed by a processor implements the steps of the system resource scheduling method as described above.
The system resource scheduling method and system, the system resource scheduling device and the computer storage medium provided by the invention at least have the following technical effects:
the method comprises the steps of acquiring configuration information of a management micro server, determining an application micro server to be monitored according to the configuration information, sending a registration request of the application micro server to be monitored to the management micro server, receiving the registration request sent by the application micro server, registering the application micro server according to the registration request, generating registration information of the application micro server, acquiring historical behavior log data of the application micro server, sending the historical behavior log data to a shared space, updating the data of the shared space by adopting the historical behavior log data, realizing lightweight management of an information system, and avoiding registration of the management micro server for micro services which do not need to be monitored.
The technical scheme is that a data updating notice is generated and sent to the management micro server, when the data updating notice sent by the application micro server is received, historical behavior log data corresponding to the application micro server are read from a shared space according to the registration information, a system state report is obtained according to the historical behavior log data corresponding to the application micro server, and system resources are scheduled by adopting a preset resource scheduling rule based on the system state report, so that the problem that the micro server cannot normally operate due to insufficient system resources in the prior art is solved, and the efficiency and the performance of a software information system are improved.
Drawings
Fig. 1 is a schematic structural diagram of a system resource scheduling apparatus according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for scheduling system resources according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a system resource scheduling method according to the present invention;
FIG. 4 is a flowchart illustrating a method for scheduling system resources according to a third embodiment of the present invention;
FIG. 5 is a detailed flowchart of step S370 according to a third embodiment of the system resource scheduling method of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to solve the problem that the micro service technology cannot normally operate due to insufficient system resources in the prior art, the method comprises the steps of receiving a registration request sent by an application micro server, registering the application micro server according to the registration request, and generating registration information of the application micro server; when a data updating notice sent by the application micro-server is received, reading historical behavior log data corresponding to the application micro-server from a shared space according to the registration information; acquiring a system state report according to historical behavior log data corresponding to the application micro-service terminal; and based on the system state report, a technical scheme of scheduling system resources by adopting a preset resource scheduling rule is adopted, so that the efficiency and the performance of the software information system are improved.
For a better understanding of the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It will be appreciated by those skilled in the art that the architecture of the system resource scheduler shown in fig. 1 does not constitute a limitation of the system resource scheduler, which may comprise more or fewer components than shown, or some components may be combined, or a different arrangement of components.
Processor 1100 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1100. The processor 1100 described above may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The software modules may reside in ram, flash memory, rom, prom, or eprom, registers, among other computer storage media that are well known in the art. The computer storage medium is located in the memory 1200, and the processor 1100 reads the information in the memory 1200 and performs the steps of the above method in combination with the hardware thereof.
It will be appreciated that memory 1200 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 1200 of the systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In an embodiment of the present application, the processor 1100 may be configured to invoke a system resource scheduler stored in the memory 1200 and perform the following operations:
receiving a registration request sent by an application micro server, registering the application micro server according to the registration request, and generating registration information of the application micro server;
when a data updating notice sent by the application micro-server is received, reading historical behavior log data corresponding to the application micro-server from a shared space according to the registration information;
acquiring a system state report according to historical behavior log data corresponding to the application micro-service terminal;
and scheduling system resources by adopting a preset resource scheduling rule based on the system state report.
In an embodiment of the present application, the processor 1100 may be configured to invoke a system resource scheduler stored in the memory 1200 and perform the following operations:
acquiring configuration information of a management micro server, and determining an application micro server to be monitored according to the configuration information;
and sending the registration request of the application micro server to be monitored to the management micro server.
In an embodiment of the present application, the processor 1100 may be configured to invoke a system resource scheduler stored in the memory 1200 and perform the following operations:
acquiring historical behavior log data of an application micro server, and sending the historical behavior log data to a shared space;
and updating data of a shared space by adopting the historical behavior log data, generating a data updating notice, and sending the data updating notice to the management microserver.
In an embodiment of the present application, the processor 1100 may be configured to invoke a system resource scheduler stored in the memory 1200 and perform the following operations:
acquiring historical behavior log data in a shared space, and carrying out statistics on the historical behavior log data to generate statistical information;
and analyzing the service condition of the system resource according to the statistical information and generating a system state report.
In an embodiment of the present application, the processor 1100 may be configured to invoke a system resource scheduler stored in the memory 1200 and perform the following operations:
and according to the system resource operation report, performing cold scheduling or hot scheduling on system resources by adopting a preset resource scheduling rule according to the hardware configuration of the system or the priority of the application micro-service.
Since the system resource scheduling device provided in the embodiments of the present application is a system resource scheduling device used for implementing the method in the embodiments of the present application, based on the method introduced in the embodiments of the present application, a person skilled in the art can understand the specific structure and the deformation of the system resource scheduling device, and thus details are not described here. All the system resource scheduling devices adopted by the method of the embodiment of the present application belong to the protection scope of the present application. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Based on the above structure, an embodiment of the present invention is proposed.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for scheduling system resources according to a first embodiment of the present invention, including the following steps:
step S110, receiving a registration request sent by an application micro server, registering the application micro server according to the registration request, and generating registration information of the application micro server.
In this embodiment, the entire micro service or process may be divided into three states, one is that the service or process of the system is in a dormant state, the service in this state has low resource access to the system, and the resource occupancy rate of the system is low, one is that the service or process of the system is in a working state, the service in this state has high resource access to the system, and the resource occupancy rate of the system is also high, and the other is that the service or process of the system is in a waiting state, and the service in this state has already queued access to the resource of the system, and the resource of the system is in a high-speed running state.
In this embodiment, all micro services of the system may be regarded as a micro service list, which includes one or more management micro servers and a series of application micro servers.
In this embodiment, the registration request is a registration application sent by the application microserver to the management microserver; the registration information is obtained by reading the configuration information of the management micro server by the application micro server, the registration information of the application micro server is not sent to the management micro server, but the registration information of the application micro server, such as the service information, API (application program interface) information and the like of the management micro server, is read and registered in a memory area of the management micro server, so that the relation between registration and a reflection table is embodied, wherein the management micro server supports a plurality of application micro services, a registration table is formed after the final registration is finished, and the configuration information of all the management micro servers is stored in the registration table.
In this embodiment, the registration of the application microservice satisfying the registration condition at the application microserver to the registry of the management microserver is to implement the process of monitoring the agent, the main role of the monitoring agent is to monitor the event processing, interrupt processing, hardware access, etc. of the application microserver, the agent is designed and implemented in combination with the characteristics of the operating system, wherein the monitoring agent has its own data area for storing real-time data to be monitored, the data area is cleaned regularly, on one hand, the frequent notification of the management micro server is avoided, the system performance is consumed, on the other hand, the excessive memory resource is avoided, the normal service processing is not influenced, the data area is properly controlled according to the condition of required hardware, and in addition, event notification of each application microservice can be implemented by adopting a uniform message management component, so that interfaces are uniform, and management is simplified.
And step S120, when a data updating notice sent by the application microserver is received, reading historical behavior log data corresponding to the application microserver from a shared space according to the registration information.
In this embodiment, the historical behavior log data is real-time monitoring data of the monitoring agent, such as event processing data, interrupt processing data, hardware access data, and the like, and is stored in a data area of the shared space, where the historical behavior log data includes message information, interrupt information, and interrupted resource information; according to the application, the monitoring data of each application micro-service, namely historical behavior log data, is required to have a standard data format and identification, so that the management micro-service end can process the monitoring data of different application micro-services in a unified mode.
In this embodiment, after the management micro-server is initialized, the management micro-server enters a semi-dormant state or a complete dormant state, and the management micro-server is not awakened to enter a working state until a notification event of the application micro-service is received; after the registration of the application microservice is completed, the application microservice sends the historical behavior log data of the application microservice to a data area of a data sharing space, meanwhile, the application microservice sends an event notification message to a management microservice to notify the management microservice that the historical behavior log data stored in the data area of the application microservice sharing space is updated, and after the management microservice receives the notification, the historical behavior log data corresponding to the application microservice is read from the sharing space, so that the shared space is accessed.
And step S130, acquiring a system state report according to the historical behavior log data corresponding to the application microserver.
In this embodiment, the system resource operation report at least includes: the utilization rate of system resources, the message processing efficiency and the dependency relationship of application microservices; the management microserver acquires historical behavior log data in a shared space according to a sender of an application microserver event, counts the historical behavior log data to generate statistical information, analyzes the service condition of system resources according to the statistical information and generates a system state report, and the specific analysis process is as described in steps S371 to S372, and is not repeated here.
And step S140, scheduling the system resources by adopting a preset resource scheduling rule based on the system state report.
In the embodiment, the system resources are rescheduled according to the generated system resource operation report, and the hardware configuration condition of the system or the priority of the application micro-service is subjected to cold scheduling or hot scheduling of the system resources by adopting a preset resource scheduling rule, mainly to manage and schedule the service in a waiting state; for example, the preset resource scheduling rule may be a structure for acquiring a system resource usage condition and a message processing condition in a system resource operation report, for example, hardware IO is in a high load state, and according to a 2:8 rule, 20% of application microservices in the related application microservices are rescheduled, so that the system is in a relatively balanced state, and other microservices can access corresponding hardware resources.
In this embodiment, for a multi-core operating system, the processing and accessing of multiple system application microservices have little influence on the operation of the system, and service resource migration can be realized by adopting a thermal scheduling mode; for a single-core operating system, when some application micro-services are terminated and restarted at the same time, the micro-services can be transferred in a cold scheduling mode in a mode of not influencing the running of the micro-services, so that messages and events of other services can be processed in time; in the method, a scheduling log is generated according to a scheduling process and a scheduling result, and the scheduling log is used for secondary analysis of system resources and system improvement; and after the management micro-service end finishes processing the current event, entering a dormant state, and waiting for the next round of event processing and resource analysis and statistics.
The data monitoring capability of the management micro-server is transmitted to each application micro-service, each application micro-service records the processed interrupt, message and event and shares the data in a shared space mode, the management micro-service receives the event notification message of the application micro-service, starts the working mode, reads the data in the data area of the shared space, respectively performs statistical calculation on the monitored data, further outputs the monitoring information into a system state report according to the calculation result and an analysis strategy, schedules the system resource according to the state report and a scheduling strategy, realizes the lightweight management of the information system, does not perform the registration of the management micro-service for the micro-service which does not need to be monitored, does not generate a monitoring agent at the same time, and the management micro-service is in a dormant state when not notifying the event, additional expenditure can not be brought to the system, and the purposes of loose coupling and easy integration are fully realized.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the method for scheduling system resources according to the present invention, which includes the following steps:
step S210, acquiring configuration information of the management micro server, and determining the application micro server to be monitored according to the configuration information.
In this embodiment, after the system is started, the application microservices are registered with the management microservices, after the system is started, the management microservices are preferentially started to initialize the management microservices, wherein the number of the management microservices is 1 or more, if the management microservices are more than one, each management microservices is respectively responsible for management tasks with different authorities, such as performance statistics, resource scheduling and other management tasks, and at this time, after the management microservices are initialized, the management microservices enter a semi-dormant state or a complete dormant state; starting an application micro server, and registering the application micro server to a management micro server, wherein the application micro server performs an initialization task, reads configuration information of the management micro server, adds the configuration information of the management micro server, such as service information and API information, to a registration queue of the application micro server, the registration queue supports a plurality of centralized or asynchronous management and control micro service registrations, generates a corresponding monitoring agent, determines the application micro server to be detected according to the acquired configuration information of the management micro server, and determines whether the application micro server needs to be detected by judging whether the application micro server needs to perform micro service management, the process is equivalent to a traversing process, whether all micro services need to perform micro service management is judged, and if so, the application micro server registers to the management micro server; and if not, the application micro-service executes the self service flow, including the initialization of the service flow and the resource application, and enters a normal task execution state until the execution of the application micro-service flow is finished.
Step S220, sending the registration request of the application microserver to be monitored to the management microserver.
In this embodiment, after traversing all the application microservices, determining the application microservices which need to be monitored, at this time, the application microservices which need to be monitored send registration requests to the management microserver to request to be monitored, because there may be a plurality of application microservices which need to be monitored, they are added to the registry, each application microservice in the registry has a service priority, and the running order of the application microservices is determined according to the service priority.
Step S230, receiving a registration request sent by an application microserver, registering the application microserver according to the registration request, and generating registration information of the application microserver.
Step S240, when receiving the data update notification sent by the application microserver, according to the registration information, reading historical behavior log data corresponding to the application microserver from a shared space.
And step S250, acquiring a system state report according to the historical behavior log data corresponding to the application microserver.
And step S260, scheduling the system resources by adopting a preset resource scheduling rule based on the system state report.
Compared with the first embodiment, the second embodiment adds steps S210 to S220, and other steps are the same as the first embodiment and are not repeated.
Has the advantages that:
referring to fig. 4, fig. 4 is a flowchart illustrating a method for scheduling system resources according to a third embodiment of the present invention, including the following steps:
step S310, acquiring configuration information of the management micro server, and determining the application micro server to be monitored according to the configuration information.
Step S320, sending the registration request of the application microserver that needs to be monitored to the management microserver.
Step S330, receiving a registration request sent by an application micro server, registering the application micro server according to the registration request, and generating registration information of the application micro server.
Step S340, obtaining historical behavior log data of the application micro server, and sending the historical behavior log data to a shared space.
In this embodiment, after the registration of the application microservice is completed, the application microservice may send its historical behavior log data to a data area of the data sharing space, in this application, the application microservice serves as an event proxy unit for hardware interrupt, software interrupt, and system scheduling, and in an active state, registers its processing message, hardware interrupt information, and the like in the sharing space, including message information, interrupt information, interrupted resource information, and the like.
And step S350, performing data updating on the shared space by using the historical behavior log data, generating a data updating notice, and sending the data updating notice to the management microserver.
In this embodiment, the application microserver sends and stores the historical behavior log data in the shared space in real time, updates the data of the shared space so as to facilitate monitoring of the management microserver, and meanwhile, the application microserver generates a data update notification and sends the historical behavior log data of the shared space to the management microserver for updating through an event notification.
Step S360, when receiving the data updating notice sent by the application micro server, reading the historical behavior log data corresponding to the application micro server from the shared space according to the registration information.
Step S370, obtaining a system status report according to the historical behavior log data corresponding to the application microserver.
Referring to fig. 5, fig. 5 is a detailed flowchart of step S370 according to a third embodiment of the system resource scheduling method of the present invention, including the following steps:
step S371, obtaining historical behavior log data in the shared space, and performing statistics on the historical behavior log data to generate statistical information.
In this embodiment, the management microserver acquires historical behavior log data in a shared space, and performs statistical calculation on the historical behavior log data, wherein an algorithm of the statistical calculation can be issued to the management microserver in a template manner, and the algorithm performs corresponding configuration according to different hardware conditions, processing speeds and memory sizes and performs configuration in combination with actual requirements; for example: the method comprises the steps that the occurrence frequency of different message events in a unit time in a system is assumed to be counted, a is the occurrence frequency of a message 1, b, c and d are the occurrence frequencies of messages 2, 3 and 4 respectively, t is a counting time period, and (a + b + c + d)/t is used for representing the occurrence frequency of the different message events in the unit time in the system, so that a management micro-server side carries out corresponding historical behavior log data processing and calculation according to a configured counting algorithm to further form counting information.
And step S372, analyzing the service condition of the system resource according to the statistical information and generating a system state report.
In this embodiment, the resource statistics calculation is performed, after the calculation is completed, an analysis is triggered, and whether the current system resource is in the rule definition is determined, the rule definition may also perform corresponding configuration according to different hardware conditions, processing speeds, and memory sizes, and is defined in combination with actual requirements, for example, when (a + b + c + d)/t is greater than 6, it indicates that the system is in a high load state, and less than 6 indicates that the system is in a normal state, if the system is in a high load state, the micro service is rescheduled through soft interrupt or other means, so as to implement reasonable deployment of the micro service, and a system resource operation report is generated, including resource usage rate, message processing efficiency, service dependency, and the like, thereby helping information system developers improve the performance of the micro service.
The technical scheme that historical behavior log data in a shared space are obtained, the historical behavior log data are counted to generate statistical information, the service condition of system resources is analyzed according to the statistical information, and a system state report is generated is adopted, so that corresponding adjustment is performed on the data in the system state report, the problem that the micro-service technology cannot normally run due to insufficient system resources in the prior art is solved, and the efficiency and the performance of a software information system are improved.
And step S380, scheduling the system resources by adopting a preset resource scheduling rule based on the system state report.
Compared with the second embodiment, the third embodiment adds steps S340 to S350 and steps S371 to S372, and other steps are the same as those in the first embodiment and are not repeated.
The method comprises the steps of acquiring configuration information of a management micro-server, determining an application micro-server to be monitored according to the configuration information, sending a registration request of the application micro-server to be monitored to the management micro-server, receiving the registration request sent by the application micro-server, registering the application micro-server according to the registration request, generating registration information of the application micro-server, acquiring historical behavior log data of the application micro-server, sending the historical behavior log data to a shared space, updating the data of the shared space by using the historical behavior log data, generating a data updating notice, sending the data updating notice to the management micro-server, and reading the historical behavior log data corresponding to the application micro-server from the shared space according to the registration information when receiving the data updating notice sent by the application micro-server, and acquiring a system state report according to the historical behavior log data corresponding to the application micro-service terminal, and scheduling system resources by adopting a preset resource scheduling rule based on the system state report, so that the problem that the micro-service technology cannot normally run due to insufficient system resources in the prior art is solved, and the efficiency and the performance of the software information system are improved.
Based on the same inventive concept, an embodiment of the present application further provides a system resource scheduling apparatus, where the apparatus includes one or more processors, a memory, and a system resource scheduler that is stored in the memory and can run on the processor, and when the processor executes the system resource scheduler, the processor implements the steps of the system resource scheduler method described above, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
Since the system resource scheduling device provided in the embodiments of the present application is a system resource scheduling device used for implementing the method in the embodiments of the present application, based on the method introduced in the embodiments of the present application, a person skilled in the art can understand the specific structure and the deformation of the system resource scheduling device, and thus details are not described here. All the system resource scheduling devices adopted by the method of the embodiment of the present application belong to the protection scope of the present application. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Based on the same inventive concept, the embodiment of the present application further provides a computer storage medium, where a system resource scheduler is stored in the computer storage medium, and when the system resource scheduler is executed by a processor, the steps of the system resource scheduling method described above are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
Since the computer storage medium provided in the embodiments of the present application is a computer storage medium used for implementing the method in the embodiments of the present application, based on the method described in the embodiments of the present application, a person skilled in the art can understand a specific structure and a modification of the computer storage medium, and thus details are not described here. Computer storage media used in the methods of embodiments of the present application are all intended to be protected by the present application.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable computer storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A system resource scheduling method is applied to at least one application micro server, and the method comprises the following steps:
receiving a registration request sent by an application micro server, registering the application micro server according to the registration request, and generating registration information of the application micro server;
when a data updating notice sent by the application micro-server is received, reading historical behavior log data corresponding to the application micro-server from a shared space according to the registration information;
acquiring a system state report according to historical behavior log data corresponding to the application micro-service terminal;
and scheduling system resources by adopting a preset resource scheduling rule based on the system state report.
2. The method for scheduling system resources according to claim 1, wherein the receiving a registration request sent by an application microserver, and before registering the application microserver according to the registration request, comprises:
acquiring configuration information of a management micro server, and determining an application micro server to be monitored according to the configuration information;
and sending the registration request of the application micro server to be monitored to the management micro server.
3. The system resource scheduling method of claim 1, wherein the registration information is obtained by an application microserver reading configuration information of the management microserver.
4. The system resource scheduling method of claim 3, wherein before receiving the data update notification sent by the application microserver, the method comprises:
acquiring historical behavior log data of an application micro server, and sending the historical behavior log data to a shared space;
and updating data of a shared space by adopting the historical behavior log data, generating a data updating notice, and sending the data updating notice to the management microserver.
5. The method of system resource scheduling according to claim 4, wherein the historical behavior log data comprises: message information, interrupt information, and interrupted resource information.
6. The method for scheduling system resources according to claim 4, wherein the obtaining a system status report according to the historical behavior log data corresponding to the application microserver comprises:
acquiring historical behavior log data in a shared space, and carrying out statistics on the historical behavior log data to generate statistical information;
and analyzing the service condition of the system resource according to the statistical information and generating a system state report.
7. The method for scheduling system resources according to claim 6, wherein the system resource operation report at least comprises: usage of system resources, message processing efficiency, and application microservice dependencies.
8. The method for scheduling system resources according to claim 1, wherein the scheduling system resources based on the system status report by using a preset resource scheduling rule comprises: and according to the system resource operation report, performing cold scheduling or hot scheduling on system resources by adopting a preset resource scheduling rule according to the hardware configuration of the system or the priority of the application micro-service.
9. A system resource scheduling apparatus, comprising a memory, a processor, and a system resource scheduler stored in the memory and operable on the processor, the system resource scheduler when executed by the processor implementing the steps of the system resource scheduling method according to any of claims 1-8.
10. A computer storage medium, characterized in that the computer storage medium stores a system resource scheduler that, when executed by a processor, implements the steps of the system resource scheduling method according to any one of claims 1-8.
CN202011522695.1A 2020-12-18 2020-12-18 System resource scheduling method and device and computer storage medium Active CN112540838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011522695.1A CN112540838B (en) 2020-12-18 2020-12-18 System resource scheduling method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011522695.1A CN112540838B (en) 2020-12-18 2020-12-18 System resource scheduling method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN112540838A true CN112540838A (en) 2021-03-23
CN112540838B CN112540838B (en) 2024-04-09

Family

ID=75019442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011522695.1A Active CN112540838B (en) 2020-12-18 2020-12-18 System resource scheduling method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN112540838B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000235499A (en) * 1999-02-15 2000-08-29 Fujitsu Ltd System operation management device
CN103533654A (en) * 2013-08-14 2014-01-22 华为技术有限公司 Method and equipment for allocating code channel resources
US20150095078A1 (en) * 2013-09-27 2015-04-02 International Business Machines Corporation Resource scheduling based on historical success rate
WO2017067230A1 (en) * 2015-10-21 2017-04-27 中兴通讯股份有限公司 Software function expansion method and apparatus based on micro service architecture
US20190149618A1 (en) * 2017-11-14 2019-05-16 Dell Products, L.P. Local proxy for service discovery
US20200026624A1 (en) * 2016-11-22 2020-01-23 Nutanix, Inc. Executing resource management operations in distributed computing systems
CN110971449A (en) * 2019-10-25 2020-04-07 武汉烽火众智数字技术有限责任公司 Service management and control system based on micro-service architecture
CN111309270A (en) * 2020-03-13 2020-06-19 清华大学 Persistent memory key value storage system
CN111935286A (en) * 2020-08-12 2020-11-13 创意信息技术股份有限公司 Micro-service framework for software development and construction method thereof
US20200366752A1 (en) * 2019-05-17 2020-11-19 Citrix Systems, Inc. Systems and methods for recording metadata about microservices for requests to the microservices
WO2020237797A1 (en) * 2019-05-31 2020-12-03 烽火通信科技股份有限公司 Dynamic configuration management method and system in microservice framework

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000235499A (en) * 1999-02-15 2000-08-29 Fujitsu Ltd System operation management device
CN103533654A (en) * 2013-08-14 2014-01-22 华为技术有限公司 Method and equipment for allocating code channel resources
US20150095078A1 (en) * 2013-09-27 2015-04-02 International Business Machines Corporation Resource scheduling based on historical success rate
WO2017067230A1 (en) * 2015-10-21 2017-04-27 中兴通讯股份有限公司 Software function expansion method and apparatus based on micro service architecture
US20200026624A1 (en) * 2016-11-22 2020-01-23 Nutanix, Inc. Executing resource management operations in distributed computing systems
US20190149618A1 (en) * 2017-11-14 2019-05-16 Dell Products, L.P. Local proxy for service discovery
US20200366752A1 (en) * 2019-05-17 2020-11-19 Citrix Systems, Inc. Systems and methods for recording metadata about microservices for requests to the microservices
WO2020237797A1 (en) * 2019-05-31 2020-12-03 烽火通信科技股份有限公司 Dynamic configuration management method and system in microservice framework
CN110971449A (en) * 2019-10-25 2020-04-07 武汉烽火众智数字技术有限责任公司 Service management and control system based on micro-service architecture
CN111309270A (en) * 2020-03-13 2020-06-19 清华大学 Persistent memory key value storage system
CN111935286A (en) * 2020-08-12 2020-11-13 创意信息技术股份有限公司 Micro-service framework for software development and construction method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张树东等: "机群环境中基于信度模型的作业调度算法", 《北京航空航天大学学报》, no. 11, pages 1097 - 1100 *

Also Published As

Publication number Publication date
CN112540838B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN109582466B (en) Timed task execution method, distributed server cluster and electronic equipment
WO2019128535A1 (en) Message management method and device, and storage medium
US8032895B2 (en) Inter process communication in a computing device
CN109117280B (en) Electronic device, method for limiting inter-process communication thereof and storage medium
CN111786886A (en) Message processing method, device and system, electronic equipment and storage medium
WO2020238989A1 (en) Method and apparatus for scheduling task processing entity
CN111427751A (en) Method and system for processing service based on asynchronous processing mechanism
CN114595186B (en) Inter-core communication method and communication device of multi-core processor
CN111427694A (en) Task execution method, device, system and server
US8132171B2 (en) Method of controlling thread access to a synchronization object
CN111679900B (en) Task processing method and device
CN110727507B (en) Message processing method and device, computer equipment and storage medium
CN113886069A (en) Resource allocation method and device, electronic equipment and storage medium
CN112860387A (en) Distributed task scheduling method and device, computer equipment and storage medium
CN109388501B (en) Communication matching method, device, equipment and medium based on face recognition request
CN111831408A (en) Asynchronous task processing method and device, electronic equipment and medium
US11301255B2 (en) Method, apparatus, device, and storage medium for performing processing task
CN112395062A (en) Task processing method, device, equipment and computer readable storage medium
CN112540838B (en) System resource scheduling method and device and computer storage medium
CN109684051B (en) Method and system for asynchronously submitting hybrid big data task
CN109005465B (en) Bullet screen message distribution method, device, equipment and storage medium
CN111597056A (en) Distributed scheduling method, system, storage medium and device
CN108810645B (en) Bullet screen message distribution method, device, equipment and storage medium
CN113302593A (en) Task processing method, device and system, electronic equipment and storage medium
CN112445597B (en) Timing task scheduling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant