CN116643846B - Timed task processing method and device based on container cluster arrangement management platform - Google Patents

Timed task processing method and device based on container cluster arrangement management platform Download PDF

Info

Publication number
CN116643846B
CN116643846B CN202310645773.4A CN202310645773A CN116643846B CN 116643846 B CN116643846 B CN 116643846B CN 202310645773 A CN202310645773 A CN 202310645773A CN 116643846 B CN116643846 B CN 116643846B
Authority
CN
China
Prior art keywords
configuration data
timing task
task
target
container
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.)
Active
Application number
CN202310645773.4A
Other languages
Chinese (zh)
Other versions
CN116643846A (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.)
Capitalonline Data Service Co ltd
Original Assignee
Capitalonline Data Service 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 Capitalonline Data Service Co ltd filed Critical Capitalonline Data Service Co ltd
Priority to CN202310645773.4A priority Critical patent/CN116643846B/en
Publication of CN116643846A publication Critical patent/CN116643846A/en
Application granted granted Critical
Publication of CN116643846B publication Critical patent/CN116643846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

According to the embodiment of the application, first configuration data and second configuration data can be acquired respectively, and then an application program package tool is called to create a timing task to be executed based on the container cluster arrangement management platform according to the second configuration data, so that the container cluster arrangement management platform automatically creates a target container management group for executing the timing task according to the timing task, wherein the target container management group comprises container instances for executing the timing task; acquiring at least one target timing task to be executed, which is created by the container cluster arrangement management platform, wherein the target timing task to be executed is correspondingly configured with target configuration data; and starting the target timing task to be executed under the condition that the target configuration data is matched with the first configuration data acquired by the database.

Description

Timed task processing method and device based on container cluster arrangement management platform
Technical Field
The application relates to the technical field of containerization, in particular to a timed task processing method and device based on a container cluster arrangement management platform.
Background
In large enterprises, the daily data volume of bills to be processed of users can reach more than ten millions, and timing billing processing is needed. The frequently used mode for executing timing tasks based on Linux at present has the problems of invisible processing process, disordered configuration, difficult distinction of different environments, simple functions and the like. And most enterprises can have multiple sets of environments such as pre-release, production and the like, and Linux is difficult to maintain and update in the multiple sets of environments. If the service is deployed in the same environment with the containerized service, a great deal of server resources are occupied when the timing task is executed, and the containerized service performance is affected.
Therefore, a new method for processing the timed task is needed to solve the problem of reducing the execution difficulty of the timed task and improving the containerized service performance.
Disclosure of Invention
The embodiment of the application provides a timed task processing method and device based on a container cluster arrangement management platform, so as to solve one or more of the technical problems.
In a first aspect, an embodiment of the present application provides a method for processing a timed task based on a container cluster arrangement management platform, where the method is applied to a server, and the method includes:
acquiring first configuration data submitted by a first user interface, and recording the first configuration data into a database corresponding to a container cluster;
acquiring second configuration data submitted by a second user interface, and inputting the second configuration data into a remote configuration warehouse corresponding to the container cluster;
calling an application program package tool to create a timing task to be executed based on the container cluster arrangement management platform according to the second configuration data, so that the container cluster arrangement management platform automatically creates a target container management group for executing the timing task according to the timing task, wherein the target container management group comprises container instances for executing the timing task;
acquiring at least one target timing task to be executed, which is created by the container cluster arrangement management platform, wherein the target timing task to be executed is correspondingly configured with target configuration data;
and starting the target timing task to be executed under the condition that the target configuration data is matched with the first configuration data acquired by the database.
In a second aspect, an embodiment of the present application provides another method for processing a timed task based on a container cluster arrangement management platform, where the method is applied to a client, and the method includes:
presenting a first user interface for writing first configuration data to submit the first configuration data in accordance with a user write operation with respect to the first configuration data;
and displaying a second user interface for writing second configuration data, so as to submit the second configuration data according to a writing operation of a user on the second configuration data, and enabling the server to execute any one of the timing task processing methods applied to the server and based on the container cluster arrangement management platform.
In a third aspect, an embodiment of the present application provides a timed task processing device based on a container cluster arrangement management platform, which is applied to a server, and the device includes:
the first data acquisition module is used for acquiring first configuration data submitted by a first user interface and inputting the first configuration data into a database corresponding to the container cluster;
a second data acquisition module for acquiring second configuration data submitted by a second user interface, and inputting the second configuration data into a remote configuration warehouse corresponding to the container cluster;
the tool calling module is used for calling an application program package tool to create a timing task to be executed based on the container cluster arrangement management platform according to the second configuration data, so that the container cluster arrangement management platform automatically creates a target container management group for executing the timing task according to the timing task, and the target container management group comprises container instances for executing the timing task;
the task acquisition module is used for acquiring at least one target timing task to be executed, which is created by the container cluster arrangement management platform, and the target timing task to be executed is correspondingly configured with target configuration data;
and the task starting module is used for starting the target timing task to be executed under the condition that the target configuration data is determined to be matched with the first configuration data acquired by the database.
In a fourth aspect, another base device is provided in an embodiment of the present application, where the base device is applied to a client, and the device includes:
the first interface display module is used for displaying a first user interface for writing first configuration data so as to submit the first configuration data according to a writing operation of a user about the first configuration data;
the second interface display module is used for displaying a second user interface for writing second configuration data so as to submit the second configuration data according to a writing operation of a user on the second configuration data, so that the server side executes any one of the timing task processing methods applied to the server side and based on the container cluster arrangement management platform.
In a fifth aspect, embodiments of the present application provide an electronic device comprising a memory, a processor and a computer program stored on the memory, the processor implementing the method of any one of the preceding claims when the computer program is executed.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements a method as in any of the above.
Compared with the prior art, the application has the following advantages:
according to the embodiment of the application, first configuration data and second configuration data can be acquired respectively, and then an application program package tool is called to create a timing task to be executed based on the container cluster arrangement management platform according to the second configuration data, so that the container cluster arrangement management platform automatically creates a target container management group for executing the timing task according to the timing task, wherein the target container management group comprises a container instance for executing the timing task; acquiring at least one target timing task to be executed, which is created by the container cluster arrangement management platform, wherein the target timing task to be executed is correspondingly configured with target configuration data; and starting the target timing task to be executed under the condition that the target configuration data is matched with the first configuration data acquired by the database.
In the specific implementation process, a solution can be provided for automatically generating and managing the timing account-out task in different environments of an enterprise based on the Kubernetes container arrangement and Helm application package tool and MySQL database configuration, the manual switching and management complexity of the multi-environment timing task are reduced, the management dimension of the timing task is expanded, and the robustness and maintainability of the timing task are provided.
The foregoing description is merely an overview of the technical solutions of the present application, and in order to make the technical means of the present application more clearly understood, it is possible to implement the present application according to the content of the present specification, and in order to make the above and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
In the drawings, the same reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily drawn to scale. It is appreciated that these drawings depict only some embodiments according to the application and are not to be considered limiting of its scope.
FIG. 1 is a schematic view of a scenario of a timed task processing scheme based on a container cluster orchestration management platform provided herein;
FIG. 2 is a flowchart of a method for processing a timing task of a container cluster-based orchestration management platform applied to a server according to one embodiment of the present application;
FIG. 3 is a flow chart of a method of timing task processing for a container cluster-based orchestration management platform applied to a client according to one embodiment provided herein;
FIG. 4 is a block diagram of a timing task processing device applied to a server-side container cluster-based orchestration management platform according to one embodiment of the present application;
FIG. 5 is a block diagram of a timing task processing device applied to a client based container cluster orchestration management platform according to one embodiment provided herein;
fig. 6 is a block diagram of an electronic device used to implement an embodiment of the present application.
Detailed Description
Hereinafter, only certain exemplary embodiments are briefly described. As will be recognized by those of skill in the pertinent art, the described embodiments may be modified in various different ways without departing from the spirit or scope of the present application. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
In order to facilitate understanding of the technical solutions of the embodiments of the present application, the following describes related technologies of the embodiments of the present application. The following related technologies may be optionally combined with the technical solutions of the embodiments of the present application, which all belong to the protection scope of the embodiments of the present application.
First, basic concepts involved in the embodiments of the present application will be described. The embodiment of the application provides a timed task processing method based on a container cluster arrangement management platform. On the container cluster orchestration management platform, the component actually responsible for running the container instances in the container cluster is a node proxy component that initiates and manages the container instances, daemon running the program processes of the container instances. The node proxy component may be provided by a container cluster management platform. In one example of an application, the container cluster orchestration management platform may be Kubernetes, and the node proxy component provided by the container cluster orchestration management platform Kubernetes is a Kubelet. Kubernetes is an open source container cluster orchestration management platform that can automatically implement Linux container operations, which orchestrates containers, and can help users save many manual deployment and expansion operations that apply the containerization process.
Helm is an application package tool for Kubernetes. Each package is called a Chart, which is a directory, and Chart is a Yaml file collection. Helm can be deployed over Kubernetes by Kubelet and manage container clusters, and Kubernetes application configuration and management can be performed based on Yaml files. Helm will deploy the application in the Kubernetes cluster according to Chart. Yaml is a format with high readability for expressing data serialization, and has the advantages of fixed file format and simple configuration. Kubernetes task execution parameters, environment variables, concurrency rules, history retention limits, etc. can be configured through the Yaml file. The problem that the timing task configuration is disordered and difficult to manage can be effectively solved.
MySQL is an open source enterprise level database. By configuring the timing task table in MySQL and recording the execution environments of different timing tasks, the execution environments of the timing tasks can be flexibly switched, the manual switching environment is not relied on, the operation is reduced, and the current environment and the execution condition of the timing tasks can be intuitively and clearly displayed.
In a specific application example, the method for processing the timing task based on the container cluster arrangement management platform provided by the embodiment of the application relates to that after the timing task is deployed in the Kubernetes cluster through the Chart configuration of Helm, the Kubernetes automatically and regularly generate an independent Pod (container management group) according to the timing task configuration, the corresponding container instance is deployed, the timing task is executed after the comparison with the MySQL timing task environment configuration, and the Pod is automatically destroyed according to the preset reserved time length after the timing task is completed.
Fig. 1 is a schematic view of a timing task processing scheme based on a container cluster orchestration management platform provided in the present application. As shown in FIG. 1, a User enters timed task configuration data into a Mysql database through a User Interface (UI) (adding timed tasks to a server through the UI). In order to divide the timed task configuration data, the timed task configuration data entered into the database is noted as first configuration data. The entered first configuration data may include a task name, an item to which the task belongs, a current execution environment, and the like. After the timing task information of the MySQL database is input, a timing task Yaml file can be configured in a remote warehouse repositisource Chart, and the configured content is matched with first configuration data of the timing task.
Wherein the remote Repository, repositisource Chart, is responsible for managing timed task configuration based on Yaml files, and deploying environment variables of container instances. Helm may automatically pull Chart from the remote silo (after Chart is added) and deploy timing tasks to the Kubernetes cluster. The Kubernetes automatically and regularly generates a Pod container management group to deploy a dock container to execute a timed task script (start the timed task) according to the timed task configuration, and the task script compares the current running environment with the environment configuration of the task in the MySQL database (namely, the current execution environment in the first configuration data) to judge whether to execute the business logic. Upon determining that the environment configurations are consistent, the Docker container may be started to perform timed tasks carried by the Docker container.
Because the container management group is specially configured for the timing task, the normal operation of the container management group for executing other services in the container cluster is not affected by executing the timing task, so that the problem that the performance of service operation in an environment corresponding to the timing task is affected due to the fact that the timing task is executed can be solved.
An embodiment of the present application provides a method for processing a timing task based on a container cluster arrangement management platform, as shown in fig. 2, which is a flowchart of a method 200 for processing a timing task based on a container cluster arrangement management platform applied to a server according to an embodiment of the present application, and may include:
in step S201, first configuration data submitted by a first user interface is acquired, and entered into a database corresponding to a container cluster.
The timing task refers to a task that needs to start a function executed at a timing. In one example of an application, the timed task may be an outbound task, i.e., a task that calculates the chargeable fee at a timed time.
In one possible implementation, the first configuration data includes at least: timing task name, project to which timing task belongs, and one data in task execution environment. The first configuration data may be entered into a database corresponding to the container cluster in response to a user submitting the first configuration data at the first user interface. The database involved may be, for example, a MySQL database. The database can correspondingly store the data such as the timing task name corresponding to one or more timing tasks, the project to which the timing task belongs, the task execution environment, the last execution time of the task and the like.
In step S202, second configuration data submitted by a second user interface is acquired and entered into a remote configuration repository corresponding to the container cluster.
The remote configuration Repository may be a remote Repository chat corresponding to a container cluster. In one possible implementation, the second configuration data includes at least: executing one of script command, cluster environment and timing start frequency. The second configuration data may be entered into a remote configuration repository corresponding to the container cluster in response to a user submitting the second configuration data at the second user interface.
In step S203, an application package tool is invoked to create a timing task to be executed based on the container cluster arrangement management platform according to the second configuration data, so that the container cluster arrangement management platform automatically creates a target container management group for executing the timing task according to the timing task, where the target container management group includes a container instance for executing the timing task.
In one example application, the application package tool involved may be Helm. In one possible implementation, a container management group corresponding to a timed task to be performed may be created based on Kubernetes according to the timed task configuration data. Wherein the container management group includes container instances for performing timed tasks. In one possible application example, kubernetes uses a Docker as the container engine, and the created container instance is a Docker container. In the scenario where the second configuration data is acquired by the Helm from the remote Repository resource as the timed task configuration data, the Helm may automatically create a container management group based on Kubernetes according to the acquired second configuration data, and deploy a container instance specifically for executing the timed task to be performed.
In step S204, at least one target timing task to be executed, created by the container cluster arrangement management platform, is acquired, where the target timing task to be executed is configured with target configuration data correspondingly.
In practical applications, a plurality of timing tasks to be performed may be created on the container cluster orchestration management platform. Therefore, it is possible to first acquire one of the above-described plurality of timed tasks to be executed as a target timed task to be executed, and record configuration data for configuring the target timed task to be executed as target timed data.
In step S205, in case it is determined that the target configuration data matches the first configuration data acquired by the database, the target timing task to be executed is started.
In this embodiment of the present application, at least one target timing task to be executed created by Kubernetes may be acquired before the timing task to be executed is started, the acquired target timing task to be executed is correspondingly configured with target configuration data, and then it is determined that the target configuration data matches with the first configuration data acquired by the database. In one possible application example, the target timed task in the container instance may be compared with the timed task execution environment in the MySQL database according to the currently injected running environment variable, and the target timed task is executed if the MySQL database timed task execution environment is the same as the environment variable in which the Docker is injected.
In one possible implementation manner, the first configuration data further includes reserved time length data, and after the target timing task to be executed is started, the timing task to be executed may be deleted according to the reserved time length data. Specifically, the Kubernetes destroys resources or reserves a certain time according to task reservation limits configured by Chart after timing task execution in the container management group, and releases occupied resources in time, so that resource consumption is reduced.
FIG. 3 is a flow chart of a method 300 of timed task processing for a client-based container cluster orchestration management platform according to one embodiment of the present application.
In step S301, a first user interface for writing first configuration data is presented to submit the first configuration data according to a user' S write operation with respect to the first configuration data;
in step S302, a second user interface for writing second configuration data is presented to submit the second configuration data according to a user writing operation with respect to the second configuration data, so that the server performs the method mentioned in the foregoing embodiment.
In an embodiment of the present application, the first user interface may include a UI page of the database, and the second user interface may include a page corresponding to hart. In the first user interface and the second user interface, the operation and maintenance personnel of the timing task can respectively perform operations such as adding, deleting and modifying on the first configuration data and the second configuration data according to the requirement of the timing task. In one possible application example, on a UI page of the database, an operator of the timed task may add or modify data such as the timed task name, the project to which the timed task belongs, the task execution environment, and the like. In the page corresponding to Chart, the operation and maintenance personnel of the timing task can add or modify the data such as the execution script command, the cluster environment, the timing starting frequency and the like by writing a Yaml file.
In response to operations such as addition, deletion and modification made by the operation staff of the timing task, the client used by the operation staff of the timing task may submit the first configuration data or the second configuration data to the corresponding storage location, so that the server performs the timing task processing method based on the container cluster arrangement management platform mentioned in the foregoing embodiment according to the submitted first configuration data and second configuration data. Specific embodiments may be referred to the above examples, and will not be described herein.
Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application further provides a timed task processing device 400 based on the container cluster arrangement management platform. Referring to fig. 4, which is a block diagram illustrating a timing task processing device based on a container cluster arrangement management platform according to an embodiment of the present application, when applied to a server, the device 400 may include:
a first data obtaining module 401, configured to obtain first configuration data submitted by a first user interface, and enter the first configuration data into a database corresponding to a container cluster;
a second data acquisition module 402, configured to acquire second configuration data submitted by a second user interface, and enter the second configuration data into a remote configuration repository corresponding to the container cluster;
a tool calling module 403, configured to call an application package tool, so that a timing task to be executed is created based on the container cluster arrangement management platform according to the second configuration data, so that the container cluster arrangement management platform automatically creates a target container management group for executing the timing task according to the timing task, where the target container management group includes a container instance for executing the timing task;
a task obtaining module 404, configured to obtain at least one target timing task to be executed, where the target timing task to be executed is created by the container cluster arrangement management platform and is configured with target configuration data correspondingly;
and a task starting module 405, configured to start the target timing task to be executed if it is determined that the target configuration data matches the first configuration data acquired by the database.
In one possible implementation, the first configuration data includes at least: timing task name, project to which timing task belongs, and one data in task execution environment.
In a possible implementation manner, the second configuration data at least includes: executing one of script command, cluster environment and timing start frequency.
In a possible implementation manner, the first configuration data further includes reserved time length data, and the apparatus 400 further includes a task deleting module, configured to delete the timing task to be executed according to the reserved time length data after the target timing task to be executed is started.
Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application further provides a timed task processing device 500 based on the container cluster arrangement management platform. Fig. 5 is a block diagram of a timing task processing device based on a container cluster arrangement management platform according to an embodiment of the present application. For application to a client, the apparatus 500 may include:
a first interface presentation module 501 for presenting a first user interface for writing first configuration data to submit the first configuration data according to a user's write operation with respect to the first configuration data;
the second interface displaying module 502 is configured to display a second user interface for writing second configuration data, so as to submit the second configuration data according to a writing operation of a user about the second configuration data, so that the server executes the timing task processing method based on the container cluster arrangement management platform related to the foregoing embodiment.
The functions of each module in each device of the embodiments of the present application may be referred to the corresponding descriptions in the above methods, and have corresponding beneficial effects, which are not described herein.
Fig. 6 is a block diagram of an electronic device used to implement an embodiment of the present application. As shown in fig. 6, the electronic device includes: a memory 601 and a processor 602, the memory 601 storing a computer program executable on the processor 602. The processor 602, when executing the computer program, implements the methods in the above embodiments. The number of memories 601 and processors 602 may be one or more.
The electronic device further includes:
and the communication interface 603 is used for communicating with external equipment and performing data interaction transmission.
If the memory 601, the processor 602, and the communication interface 603 are implemented independently, the memory 601, the processor 602, and the communication interface 603 may be connected to each other and perform communication with each other through buses. The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 601, the processor 602, and the communication interface 603 are integrated on a chip, the memory 601, the processor 602, and the communication interface 603 may perform communication with each other through internal interfaces.
The present embodiments provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods provided in the embodiments of the present application.
The embodiment of the application also provides a chip, which comprises a processor and is used for calling the instructions stored in the memory from the memory and running the instructions stored in the memory, so that the communication device provided with the chip executes the method provided by the embodiment of the application.
The embodiment of the application also provides a chip, which comprises: the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method provided by the application embodiment.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (Advanced RISC Machines, ARM) architecture.
Further alternatively, the memory may include a read-only memory and a random access memory. The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), electrically Erasable EPROM (EEPROM), or flash Memory, among others. Volatile memory can include random access memory (Random Access Memory, RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (SDRAM), double Data Rate Synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct RAM (DR RAM).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Any process or method described in flow charts or otherwise herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present application includes additional implementations in which functions may be performed in a substantially simultaneous manner or in an opposite order from that shown or discussed, including in accordance with the functions that are involved.
Logic and/or steps described in the flowcharts or otherwise described herein, e.g., may be considered a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the methods of the embodiments described above may be performed by a program that, when executed, comprises one or a combination of the steps of the method embodiments, instructs the associated hardware to perform the method.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules described above, if implemented in the form of software functional modules and sold or used as a stand-alone product, may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The foregoing is merely exemplary embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of various changes or substitutions within the technical scope of the present application, which should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A timing task processing method based on a container cluster arrangement management platform is applied to a server side, and comprises the following steps:
acquiring first configuration data submitted by a first user interface, and recording the first configuration data into a database corresponding to a container cluster, wherein the database correspondingly stores one or more timed task names corresponding to the timed tasks, items to which the timed tasks belong, task execution environments and the last execution time of the tasks;
acquiring second configuration data submitted by a second user interface, and inputting the second configuration data into a remote configuration warehouse corresponding to the container cluster;
calling an application program package tool to create a timing task to be executed based on the container cluster arrangement management platform according to the second configuration data, so that the container cluster arrangement management platform automatically creates a target container management group for executing the timing task according to the timing task, wherein the target container management group comprises container instances for executing the timing task;
acquiring at least one target timing task to be executed, which is created by the container cluster arrangement management platform, wherein the target timing task to be executed is correspondingly configured with target configuration data;
and starting the target timing task to be executed under the condition that the target configuration data is matched with the first configuration data acquired by the database.
2. The method of claim 1, wherein the first configuration data comprises at least: timing task name, project to which timing task belongs, and one data in task execution environment.
3. The method of claim 1, wherein the second configuration data comprises at least: executing one of script command, cluster environment and timing start frequency.
4. The method of claim 1, wherein the first configuration data further comprises reserve duration data, the method further comprising, after the initiating the target timing task to be performed:
and deleting the timing task to be executed according to the reserved time length data.
5. A timed task processing method based on a container cluster arrangement management platform, applied to a client, the method comprising:
presenting a first user interface for writing first configuration data to submit the first configuration data in accordance with a user write operation with respect to the first configuration data;
a second user interface for writing second configuration data is presented to submit the second configuration data in accordance with a user writing operation with respect to the second configuration data, such that the server performs the method of any of claims 1-4.
6. A timed task processing device based on a container cluster arrangement management platform, applied to a server, the device comprising:
the first data acquisition module is used for acquiring first configuration data submitted by a first user interface, inputting the first configuration data into a database corresponding to the container cluster, and correspondingly storing one or more timing task names corresponding to the timing tasks, items to which the timing tasks belong, task execution environments and last execution time of the tasks;
a second data acquisition module for acquiring second configuration data submitted by a second user interface, and inputting the second configuration data into a remote configuration warehouse corresponding to the container cluster;
the tool calling module is used for calling an application program package tool to create a timing task to be executed based on the container cluster arrangement management platform according to the second configuration data, so that the container cluster arrangement management platform automatically creates a target container management group for executing the timing task according to the timing task, and the target container management group comprises container instances for executing the timing task;
the task acquisition module is used for acquiring at least one target timing task to be executed, which is created by the container cluster arrangement management platform, and the target timing task to be executed is correspondingly configured with target configuration data;
and the task starting module is used for starting the target timing task to be executed under the condition that the target configuration data is determined to be matched with the first configuration data acquired by the database.
7. A timed task processing device based on a container cluster orchestration management platform, applied to a client, the device comprising:
the first interface display module is used for displaying a first user interface for writing first configuration data so as to submit the first configuration data according to a writing operation of a user about the first configuration data;
a second interface display module, configured to display a second user interface for writing second configuration data, so as to submit the second configuration data according to a writing operation of a user about the second configuration data, so that the server side executes the method of any one of claims 1-4.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor implementing the method of any one of claims 1-5 when the computer program is executed.
9. A computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-5.
CN202310645773.4A 2023-06-01 2023-06-01 Timed task processing method and device based on container cluster arrangement management platform Active CN116643846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310645773.4A CN116643846B (en) 2023-06-01 2023-06-01 Timed task processing method and device based on container cluster arrangement management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310645773.4A CN116643846B (en) 2023-06-01 2023-06-01 Timed task processing method and device based on container cluster arrangement management platform

Publications (2)

Publication Number Publication Date
CN116643846A CN116643846A (en) 2023-08-25
CN116643846B true CN116643846B (en) 2024-02-20

Family

ID=87618581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310645773.4A Active CN116643846B (en) 2023-06-01 2023-06-01 Timed task processing method and device based on container cluster arrangement management platform

Country Status (1)

Country Link
CN (1) CN116643846B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685055A (en) * 2021-01-05 2021-04-20 北京金山云网络技术有限公司 Cluster construction method and device
CN113157339A (en) * 2021-04-23 2021-07-23 东云睿连(武汉)计算技术有限公司 Application service expansion method, system, storage medium and device based on OSB
WO2021217871A1 (en) * 2020-04-28 2021-11-04 平安科技(深圳)有限公司 Method and apparatus for deploying micro service cluster, computer device and storage medium
CN114385211A (en) * 2022-01-12 2022-04-22 上海甄云信息科技有限公司 Multi-cloud environment upgrading method and control platform based on GitOps
CN115865718A (en) * 2022-12-05 2023-03-28 南方电网数字平台科技(广东)有限公司 Service arrangement control method and device based on Yaml template

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021217871A1 (en) * 2020-04-28 2021-11-04 平安科技(深圳)有限公司 Method and apparatus for deploying micro service cluster, computer device and storage medium
CN112685055A (en) * 2021-01-05 2021-04-20 北京金山云网络技术有限公司 Cluster construction method and device
CN113157339A (en) * 2021-04-23 2021-07-23 东云睿连(武汉)计算技术有限公司 Application service expansion method, system, storage medium and device based on OSB
CN114385211A (en) * 2022-01-12 2022-04-22 上海甄云信息科技有限公司 Multi-cloud environment upgrading method and control platform based on GitOps
CN115865718A (en) * 2022-12-05 2023-03-28 南方电网数字平台科技(广东)有限公司 Service arrangement control method and device based on Yaml template

Also Published As

Publication number Publication date
CN116643846A (en) 2023-08-25

Similar Documents

Publication Publication Date Title
CN111708586B (en) Application starting configuration item loading method and device, computer equipment and storage medium
CN110781214A (en) Database reading and writing method and device, computer equipment and storage medium
CN110427258B (en) Resource scheduling control method and device based on cloud platform
CN113407383B (en) Main and standby system switching method and device, server and main and standby system
US11245744B1 (en) Asynchronous distributed modular function calling
CN114493185A (en) Approval processing method, device, system, electronic equipment, storage medium and product
CN113760513A (en) Distributed task scheduling method, device, equipment and medium
CN109614271A (en) Control method, device, equipment and the storage medium of multiple company-data consistency
CN112463304A (en) Rollback method and apparatus for container mirror image, computer device, and storage medium
CN116302708A (en) Data backup method, device, equipment and storage medium based on load balancing
CN110362305B (en) Form component state switching method and device
CN116643846B (en) Timed task processing method and device based on container cluster arrangement management platform
CN117076096A (en) Task flow execution method and device, computer readable medium and electronic equipment
CN112948491A (en) Data synchronization method and device, terminal equipment and computer readable storage medium
CN111399999A (en) Computer resource processing method and device, readable storage medium and computer equipment
CN116488986A (en) Event-driven message touch method, system and device and storage medium
CN109800247A (en) Data search method, device, computer equipment and storage medium
CN113268183B (en) List page countdown display method and device
CN114756293A (en) Service processing method, device, computer equipment and storage medium
CN114936152A (en) Application testing method and device
CN114416689A (en) Data migration method and device, computer equipment and storage medium
CN111858234A (en) Task execution method, device, equipment and medium
CN112232027A (en) Symbol translation method, device, equipment and computer readable storage medium
CN112579237B (en) Event response method, device, equipment and medium based on MVVM mode
CN116431275B (en) Tolerance configuration method, device, computer equipment and storage medium

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