CN111611086A - Information processing method, information processing apparatus, electronic device, and medium - Google Patents

Information processing method, information processing apparatus, electronic device, and medium Download PDF

Info

Publication number
CN111611086A
CN111611086A CN202010471515.5A CN202010471515A CN111611086A CN 111611086 A CN111611086 A CN 111611086A CN 202010471515 A CN202010471515 A CN 202010471515A CN 111611086 A CN111611086 A CN 111611086A
Authority
CN
China
Prior art keywords
execution script
execution
determining
instances
monitoring platform
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.)
Pending
Application number
CN202010471515.5A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010471515.5A priority Critical patent/CN111611086A/en
Publication of CN111611086A publication Critical patent/CN111611086A/en
Pending legal-status Critical Current

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]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • G06F9/45512Command shells
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/508Monitor

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 present disclosure provides an information processing method applied to a monitoring platform, including: acquiring execution script information, wherein the execution script information comprises an execution script; determining a trigger condition associated with the execution script; determining an available computing resource value of the monitoring platform under the condition that the state information of the monitoring platform meets the triggering condition; and executing the execution script based on the available computing resource value. The disclosure also provides an information processing device, an electronic device and a medium applied to the monitoring platform.

Description

Information processing method, information processing apparatus, electronic device, and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information processing method and an information processing apparatus, an electronic device, and a medium.
Background
At present, operation and maintenance monitoring of developers needs to allocate computing resources of a server in advance, so that the utilization rate of the computing resources of the server is low.
Disclosure of Invention
In view of the above, the present disclosure provides an information processing method and an information processing apparatus, an electronic device, and a medium.
One aspect of the present disclosure provides an information processing method applied to a monitoring platform, including: acquiring execution script information, wherein the execution script information comprises an execution script; determining a trigger condition associated with the execution script; determining an operating computing resource value of the monitoring platform under the condition that the state information of the monitoring platform meets the triggering condition; and executing the execution script based on the running computing resource value.
According to an embodiment of the present disclosure, said executing the execution script based on the running computing resource value includes: determining a number of instances to run the execution script based on the run computing resource value; and running instances whose number is the number of instances.
According to an embodiment of the present disclosure, executing the script information further includes: attribute information of the execution script; the determining the number of instances of the execution script based on the running computing resource value comprises: acquiring a calculation resource metric value of the execution script; and determining the number of instances via Serverless based on the computational resource metric value and the operational computational resource value.
According to an embodiment of the present disclosure, determining the number of instances according to the size relationship via Serverless includes: and the Serverless increases the number of the examples under the condition that the running computing resource value is determined to be larger than the computing resource metric value, and decreases the number of the examples under the condition that the running computing resource value is determined to be smaller than or equal to the computing resource metric value.
According to an embodiment of the present disclosure, an execution script is stored in a mirror library, and the running the instance of the instance number includes: acquiring the execution script from the mirror library; creating an instance of the number of instances according to the execution script; and executing the instances in the number of instances.
According to an embodiment of the present disclosure, the execution script information includes a plurality of execution scripts, and the determining a trigger condition associated with the execution script includes: determining a trigger condition associated with each respective one of the plurality of execution scripts; the method further comprises the following steps: acquiring an execution sequence of the execution scripts, and determining a checking sequence according to the execution sequence, wherein the checking sequence is a sequence for checking whether the monitoring platform meets a plurality of trigger conditions in sequence; and checking whether the state information of the monitoring platform meets the triggering condition or not according to the checking sequence.
According to an embodiment of the present disclosure, the method further includes obtaining operation data of the monitoring platform, where the operation data includes at least one of: the called times of the execution script and the utilization rate of the computing resources; and outputting the operational data.
Another aspect of the present disclosure provides an information processing apparatus applied to a monitoring platform, including: the acquisition module is used for acquiring execution script information, and the execution script information comprises an execution script; a first determination module to determine a trigger condition associated with the execution script; the second determining module is used for determining the running computing resource value of the monitoring platform under the condition that the state information of the monitoring platform meets the triggering condition; and an execution module to execute the execution script based on the running computing resource value.
According to an embodiment of the present disclosure, the execution module includes: a determination submodule for determining the number of instances to run the execution script based on the run computing resource value; and the operation submodule is used for operating the examples with the number of the examples.
According to an embodiment of the present disclosure, wherein the executing script information further includes: the attribute information of the execution script, the determining submodule includes: the acquisition unit is used for acquiring the calculation resource metric value of the execution script; and a determining unit, configured to determine the number of instances according to the computation resource metric value and the running computation resource value via Serverless.
According to an embodiment of the present disclosure, determining, via Serverless, the number of instances according to the computational resource metric value and the running computational resource value comprises: and the Serverless increases the number of the examples under the condition that the running computing resource value is determined to be larger than the computing resource metric value, and decreases the number of the examples under the condition that the running computing resource value is determined to be smaller than or equal to the computing resource metric value.
Another aspect of the present disclosure provides an electronic device including: one or more processors; a storage device to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described method.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an exemplary system architecture of an information processing method that may be applied to a monitoring platform according to an embodiment of the present disclosure;
FIG. 2 schematically shows a flow chart of an information processing method applied to a monitoring platform according to an embodiment of the present disclosure;
FIG. 3 schematically shows a flow chart of an information processing method according to another embodiment of the present disclosure;
fig. 4 schematically shows a block diagram of an information processing apparatus according to an embodiment of the present disclosure;
FIG. 5 schematically shows a block diagram of an execution module according to an embodiment of the disclosure; and
FIG. 6 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure;
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides an information processing method applied to a monitoring platform, which includes: acquiring execution script information, wherein the execution script information comprises an execution script; determining a trigger condition associated with the execution script; determining an operating computing resource value of the monitoring platform under the condition that the state information of the monitoring platform meets the triggering condition; and executing the execution script based on the running computing resource value.
Fig. 1 schematically illustrates an exemplary system architecture 100 of an information processing method that may be applied to a monitoring platform according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The server 105 may serve as a monitoring platform for monitoring the operating state of the terminal devices 101, 102, 103. The operating state may include, for example, utilization of a CPU, utilization of memory, whether it is down, and the like.
The terminal devices 101, 102, 103 may interact with the server 105 via the network 104 to receive or send messages or the like.
It should be noted that the information processing method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the information processing apparatus provided by the embodiment of the present disclosure may be generally provided in the server 105. The information processing method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the information processing apparatus provided in the embodiment of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically shows a flowchart of an information processing method applied to a monitoring platform according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S204.
In operation S201, execution script information is acquired, the execution script information including an execution script.
According to an embodiment of the present disclosure, the execution script may be a script written in an interface to be monitored or an application to be monitored according to a monitoring requirement. The execution script can be written in any one of various programming languages such as Python, nodeJS, Go, etc.
According to the embodiment of the disclosure, the execution script may include, for example, a trigger condition and an execution content of the monitoring platform in a case where the state information of the monitoring platform satisfies the trigger condition.
For example, executing a script may be as follows:
def handler(event,context):
return“back up”
the handler is a defined interface function, the event is a trigger condition, and the context is execution content when the event occurs.
According to the embodiment of the disclosure, the execution script information may be acquired from the interactive interface or the configuration file, for example.
According to the embodiment of the disclosure, under the condition that the execution script is acquired, the execution script can be stored in the mirror library, so that under the condition that the state information of the monitoring platform meets the trigger condition, the function instance can be pulled from the mirror library, that is, the instance is created according to the execution script in the mirror library.
According to the embodiment of the disclosure, in the case of storing the execution script in the mirror library, the execution script may be deployed according to the deployment parameter set by the developer of the execution script. The deployment parameter may be, for example, a reference number of instances. The monitoring platform can determine memory resources, CPU resources and the like required by the execution script according to the reference example number and the attribute information of the execution script. The attribute information of the execution script may include, for example, a memory occupied by the execution script, a running time of the execution script, a timeout time, and the like. The attribute information of the execution script may be set by a developer of the execution script.
In operation S202, a trigger condition associated with executing the script is determined.
According to the embodiment of the disclosure, for example, a user may set the trigger condition corresponding to each execution script in the interactive interface, so that the trigger condition associated with each execution script is determined according to the setting information acquired by the interactive interface.
In operation S203, in a case that the state information of the monitoring platform satisfies the trigger condition, determining a running computing resource value of the monitoring platform.
According to the embodiment of the present disclosure, the status information of the monitoring platform may include, for example, the current time of the monitoring platform, the type of the message acquired by the monitoring platform, and the like. The trigger condition may be, for example, that the current time of the monitoring platform is a preset time, that the monitoring platform acquires an HTTP request, and the like.
According to the embodiment of the disclosure, for example, different types of triggers can be created, and whether the state information of the monitoring platform meets the triggering condition is monitored by the triggers. For example, HTTP triggers, CronJob triggers, Kafka triggers, and the like may be created. The HTTP trigger may trigger an instance execution by sending an HTTP request. The CronJob trigger triggers instance execution by setting a specific time, which can be used for backup jobs running regularly. The Kafka trigger triggers execution of an instance by associating different topic triggers, which may be, for example, when a message for a certain topic is received.
For example, in a task requiring timed log backup, parallel computation with a large amount of computation is usually performed, and a flexible log backup function handler is associated with a CronJob trigger to set a specific time or a time period to trigger completion of a job.
According to the embodiment of the disclosure, the running computing resource value of the monitoring platform may be a computing resource actually used by the monitoring platform to run the execution script, for example, a CPU and a memory space which are actually used. The value of the computational resources on which the platform is monitored may be determined, for example, by Serverless (a Serverless architecture).
In operation S204, the execution script is executed based on the running computing resource value.
According to an embodiment of the present disclosure, in operation S204, the number of instances for executing the execution script and the number of instances for which the number is the number of instances may be determined based on the execution computing resource value.
According to the embodiment of the disclosure, the method can determine the number of the running instances according to the running computing resource value, so that the utilization rate of the computing resource is improved. For example, the number of instances of the execution script may be increased when the running computational resource value is large, and the number of instances of the execution script may be decreased when the running computational resource value is small.
According to an embodiment of the present disclosure, executing the script information further includes: the attribute information of the script is executed. The attribute information of the execution script may include, for example, a memory occupied by the execution script, a running time of the execution script, a timeout time, and the like. The attribute information of the execution script may be set by a developer of the execution script.
In this embodiment, determining the number of instances to run the execution script based on the running computing resource value may include: acquiring a calculation resource metric value of the execution script; and determining the number of instances via Serverless based on the computational resource metric value and the operational computational resource value.
According to the embodiment of the disclosure, the calculation resource metric value of the execution script may be set by the user, for example, so that the calculation resource metric value set by the user may be acquired through the front-end interactive interface.
For example, Serverless may obtain the current running computing resource of the monitoring platform, and then compare the running computing resource with the computing resource metric value to determine the number of instances.
According to an embodiment of the present disclosure, determining the number of instances according to the size relationship via Serverless includes: serverless increases the number of instances when determining that the value of the operating computing resources is greater than the metric value of the computing resources, and decreases the number of instances when determining that the value of the operating computing resources is less than or equal to the metric value of the computing resources.
According to embodiments of the present disclosure, the number of instances may be determined, for example, using the Horizontal Pod Autoscaler algorithm of the kubernets container in the Serverless architecture. The Horizontal Pod Autoscaler algorithm can automatically increase or decrease the number of instances according to the acquired running computing resources (CPU resources and memory resources).
According to the embodiment of the disclosure, the Serverless architecture enables resources to be finer-grained, supports elastic expansion, and can effectively utilize computing resources. The data center centralized monitoring platform based on Serverless enables development operation and maintenance personnel to be no longer concentrated on bottom infrastructure, and the monitoring alarm is processed in the form of an event trigger function, so that the traditional operation and maintenance mode is optimized, the monitoring alarm is processed in time, and the resource utilization rate is improved.
According to the embodiment of the disclosure, the method enables development and maintenance personnel to set different types of trigger conditions for different monitoring alarms, and triggers the execution script to run under the condition that the state information of the monitoring platform meets the trigger conditions, so that the working efficiency is improved, and the running of the execution script can be reasonably controlled according to the running calculation resources of the monitoring platform under the condition that the state information of the monitoring platform meets the trigger conditions, so that the utilization rate of the calculation resources is improved.
Fig. 3 schematically shows a flow chart of an information processing method according to another embodiment of the present disclosure.
As shown in fig. 3, the method may further include operations S301 to S303 based on the foregoing embodiment.
In this embodiment, the execution script information includes a plurality of execution scripts, and determining the trigger condition associated with the execution script includes: a trigger condition associated with each respective one of the plurality of execution scripts is determined.
In operation S301, an execution order of the plurality of execution scripts is acquired.
According to an embodiment of the present disclosure, the execution order of the plurality of execution scripts may be an execution logic set in advance by a user. For example, script 1 may be executed first and script 2 may be executed.
In operation S302, a checking sequence is determined according to the execution sequence, where the checking sequence is a sequence for checking whether the status information of the monitoring platform meets a plurality of trigger conditions in sequence.
For example, in the execution sequence of executing script 1 and then executing script 2, trigger condition a for executing script 1 and trigger condition B for executing script 2 are determined, respectively.
In operation S303, it is checked whether the state information of the monitoring platform meets the trigger condition according to the checking sequence.
For example, in the above embodiment, it may be detected whether the state information of the monitoring platform satisfies the trigger condition B after detecting whether the state information of the monitoring platform satisfies the trigger condition a. For example, whether the state information of the monitoring platform satisfies the condition a or not may not affect the detection of whether the state information of the monitoring platform satisfies the trigger condition B, or whether the state information of the monitoring platform satisfies the trigger condition B or not may be detected under the condition that the state information of the monitoring platform satisfies the condition a, and whether the state information of the monitoring platform satisfies the trigger condition B or not may be detected under the condition that the state information of the monitoring platform does not satisfy the condition a.
According to the embodiment of the disclosure, the method can enable a user to determine the workflow logic of the operation of a plurality of execution scripts according to the requirement, and the execution scripts are connected in series to one monitoring flow according to the set logic sequence, so that the corresponding problem can be solved under different scenes.
According to the embodiment of the present disclosure, on the basis of the foregoing embodiment, the method may further include acquiring operation data of the monitoring platform, and outputting the operation data. Wherein the operational data includes at least one of: the number of times the script is invoked is executed, and the utilization of the computing resources.
For example, Serverless can be used to obtain the operation data of the monitoring platform, and the method can provide the operation data of the monitoring platform to the user in real time.
Fig. 4 schematically shows a block diagram of an information processing apparatus 400 according to an embodiment of the present disclosure.
As shown in fig. 4, the information processing apparatus 400 may include an acquisition module 410, a first determination module 420, a second determination module 430, and an execution module 440.
The obtaining module 410, for example, may perform operation S201 described above with reference to fig. 2, for obtaining execution script information, which includes an execution script.
The first determining module 420, for example, may perform operation S202 described above with reference to fig. 2, for determining a trigger condition associated with the execution script.
The second determining module 430, for example, may perform operation S203 described above with reference to fig. 2, to determine the running computing resource value of the monitoring platform if the status information of the monitoring platform meets the trigger condition.
The execution module 440, for example, may perform operation S204 described above with reference to fig. 2, for executing the execution script based on the running computing resource value.
Fig. 5 schematically illustrates a block diagram of an execution module 440 according to an embodiment of the disclosure.
As shown in fig. 5, the execution module 440 may include a determination submodule 441 and an execution submodule 442.
The determining sub-module 441 is configured to determine, based on the running computing resource value, the number of instances in which the execution script is to be run.
The run sub-module 442 is configured to run a number of instances equal to the number of instances.
According to an embodiment of the present disclosure, the executing script information further includes: the determining submodule for the attribute information of the execution script includes: the acquisition unit is used for acquiring the calculation resource metric value of the execution script; and a determining unit, configured to determine the number of instances according to the computation resource metric value and the running computation resource value via Serverless.
According to an embodiment of the present disclosure, determining the number of instances according to the size relationship via Serverless includes: and the Serverless increases the number of the examples under the condition that the running computing resource value is determined to be larger than the computing resource metric value, and decreases the number of the examples under the condition that the running computing resource value is determined to be smaller than or equal to the computing resource metric value.
According to an embodiment of the present disclosure, an execution script is stored in a mirror library, and the running the instance of the instance number includes: acquiring the execution script from the mirror library; creating an instance of the number of instances according to the execution script; and executing the instance of the number of instances.
According to an embodiment of the present disclosure, the execution script information includes a plurality of execution scripts, and the determining a trigger condition associated with the execution script includes: determining a trigger condition associated with each respective one of the plurality of execution scripts; the method further comprises the following steps: acquiring an execution sequence of the plurality of execution scripts, and determining a checking sequence according to the execution sequence, wherein the checking sequence is a sequence for checking whether the state information of the monitoring platform meets a plurality of trigger conditions in sequence; and checking whether the state information of the monitoring platform meets the triggering condition or not according to the checking sequence.
According to an embodiment of the present disclosure, the method may further include obtaining operation data of the monitoring platform, where the operation data includes at least one of: the called times of the execution script and the utilization rate of the computing resources; and outputting the operational data.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any number of the obtaining module 410, the first determining module 420, the second determining module 430, and the executing module 440 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the obtaining module 410, the first determining module 420, the second determining module 430, and the executing module 440 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the obtaining module 410, the first determining module 420, the second determining module 430 and the executing module 440 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
Fig. 6 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, a computer electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. Processor 601 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM602, and the RAM603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM602 and/or RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM602 and RAM 603. The processor 601 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 600 may also include input/output (I/O) interface 605, input/output (I/O) interface 605 also connected to bus 604, according to an embodiment of the disclosure. The electronic device 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM602 and/or RAM603 described above and/or one or more memories other than the ROM602 and RAM 603.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. An information processing method applied to a monitoring platform comprises the following steps:
acquiring execution script information, wherein the execution script information comprises an execution script;
determining a trigger condition associated with the execution script;
determining an operating computing resource value of the monitoring platform under the condition that the state information of the monitoring platform meets the triggering condition; and
executing the execution script based on the running computing resource value.
2. The method of claim 1, wherein said executing the execution script based on the running computing resource value comprises:
determining a number of instances to run the execution script based on the run computing resource value; and
the number of runs is the number of instances of the number of instances.
3. The method of claim 2, wherein the executing script information further comprises: attribute information of the execution script;
the determining the number of instances of the execution script based on the running computing resource value comprises:
acquiring a calculation resource metric value of the execution script; and
determining the number of instances via Serverless based on the computational resource metric value and the operational computational resource value.
4. The method of claim 3, wherein said determining, via Serverless, the number of instances based on the computational resource metric value and the running computational resource value comprises:
and the Serverless increases the number of the examples under the condition that the running computing resource value is determined to be larger than the computing resource metric value, and decreases the number of the examples under the condition that the running computing resource value is determined to be smaller than or equal to the computing resource metric value.
5. The method of claim 2, wherein the execution script is stored in a mirror library, the running the instance of the instance quantity comprising:
acquiring the execution script from the mirror library;
creating an instance of the number of instances according to the execution script; and
the number of executions is the number of instances of the instance quantity.
6. The method of claim 1, wherein executing script information comprises a plurality of executing scripts, the determining trigger conditions associated with the executing scripts comprising: determining a trigger condition associated with each respective one of the plurality of execution scripts;
the method further comprises the following steps:
acquiring the execution sequence of the plurality of execution scripts;
determining a checking sequence according to the execution sequence, wherein the checking sequence is a sequence for checking whether the state information of the monitoring platform meets a plurality of triggering conditions in sequence;
and checking whether the state information of the monitoring platform meets the triggering condition or not according to the checking sequence.
7. The method of claim 1, further comprising:
acquiring operation data of the monitoring platform, wherein the operation data comprises at least one of the following: the called times of the execution script and the utilization rate of the computing resources; and
and outputting the operation data.
8. An information processing device applied to a monitoring platform comprises:
the acquisition module is used for acquiring execution script information, and the execution script information comprises an execution script;
a first determination module to determine a trigger condition associated with the execution script;
the second determining module is used for determining the running computing resource value of the monitoring platform under the condition that the state information of the monitoring platform meets the triggering condition; and
an execution module to execute the execution script based on the running computing resource value.
9. The apparatus of claim 8, wherein the means for performing comprises:
a determination submodule for determining the number of instances to run the execution script based on the run computing resource value; and
and the operation submodule is used for operating the instances with the number of the instances.
10. The apparatus of claim 9, wherein the executing script information further comprises: the attribute information of the execution script, the determining submodule includes:
the acquisition unit is used for acquiring the calculation resource metric value of the execution script; and
a determining unit, configured to determine, via Serverless, the number of instances according to the computational resource metric value and the operational computational resource value.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
12. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
CN202010471515.5A 2020-05-28 2020-05-28 Information processing method, information processing apparatus, electronic device, and medium Pending CN111611086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010471515.5A CN111611086A (en) 2020-05-28 2020-05-28 Information processing method, information processing apparatus, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010471515.5A CN111611086A (en) 2020-05-28 2020-05-28 Information processing method, information processing apparatus, electronic device, and medium

Publications (1)

Publication Number Publication Date
CN111611086A true CN111611086A (en) 2020-09-01

Family

ID=72202343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010471515.5A Pending CN111611086A (en) 2020-05-28 2020-05-28 Information processing method, information processing apparatus, electronic device, and medium

Country Status (1)

Country Link
CN (1) CN111611086A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395158A (en) * 2020-11-17 2021-02-23 北京乐我无限科技有限责任公司 Information processing method and device and computer readable storage medium
CN113296880A (en) * 2020-10-30 2021-08-24 阿里巴巴集团控股有限公司 Container-based application management method and device
CN113518002A (en) * 2021-05-24 2021-10-19 平安普惠企业管理有限公司 Monitoring method, device, equipment and storage medium based on server-free platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452818A (en) * 2015-08-13 2017-02-22 阿里巴巴集团控股有限公司 Resource scheduling method and resource scheduling system
CN106548262A (en) * 2015-09-21 2017-03-29 阿里巴巴集团控股有限公司 For the dispatching method of the resource of process task, device and system
CN109324894A (en) * 2018-08-13 2019-02-12 中兴飞流信息科技有限公司 PC cluster method, apparatus and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452818A (en) * 2015-08-13 2017-02-22 阿里巴巴集团控股有限公司 Resource scheduling method and resource scheduling system
CN106548262A (en) * 2015-09-21 2017-03-29 阿里巴巴集团控股有限公司 For the dispatching method of the resource of process task, device and system
CN109324894A (en) * 2018-08-13 2019-02-12 中兴飞流信息科技有限公司 PC cluster method, apparatus and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296880A (en) * 2020-10-30 2021-08-24 阿里巴巴集团控股有限公司 Container-based application management method and device
WO2022089281A1 (en) * 2020-10-30 2022-05-05 阿里巴巴集团控股有限公司 Container-based application management method and apparatus
CN112395158A (en) * 2020-11-17 2021-02-23 北京乐我无限科技有限责任公司 Information processing method and device and computer readable storage medium
CN113518002A (en) * 2021-05-24 2021-10-19 平安普惠企业管理有限公司 Monitoring method, device, equipment and storage medium based on server-free platform
CN113518002B (en) * 2021-05-24 2022-11-25 平安普惠企业管理有限公司 Monitoring method, device, equipment and storage medium based on server-free platform

Similar Documents

Publication Publication Date Title
CN103620561B (en) The method and system of interoperability debugging when running for n road
US10042744B2 (en) Adopting an existing automation script to a new framework
CN111611086A (en) Information processing method, information processing apparatus, electronic device, and medium
US9483314B2 (en) Systems and methods for fault tolerant batch processing in a virtual environment
CN110399271B (en) Log processing device, method, electronic device, and computer-readable storage medium
CN109033814B (en) Intelligent contract triggering method, device, equipment and storage medium
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN107045475B (en) Test method and device
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN110717992B (en) Method, apparatus, computer system and readable storage medium for scheduling model
US11550697B2 (en) Cross jobs failure dependency in CI/CD systems
CN112953769B (en) Data transmission method, device, computer system and readable storage medium
CN111367783A (en) Application program testing method and device and electronic equipment
CN114356713A (en) Thread pool monitoring method and device, electronic equipment and storage medium
CN113032237A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112596987A (en) Application program availability monitoring method and device, electronic equipment and medium
CN113094084A (en) Version construction method, version construction device, electronic equipment and readable storage medium
CN112579282A (en) Data processing method, device, system and computer readable storage medium
CN114398233B (en) Load abnormality detection method and device, server and storage medium
CN112202640B (en) Monitoring method and device applied to container cloud platform
CN112817573B (en) Method, apparatus, computer system, and medium for building a streaming computing application
CN115373802A (en) Method and device for restarting agent system, electronic equipment and storage medium
CN114760233A (en) Service processing method and device, electronic equipment and storage medium
CN112783797A (en) Method and apparatus for testing user interface, electronic device, and medium
CN114138245A (en) Data processing method and device based on pipeline communication

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