CN110780976B - Automatic operation arranging and executing method and system - Google Patents

Automatic operation arranging and executing method and system Download PDF

Info

Publication number
CN110780976B
CN110780976B CN201911018398.0A CN201911018398A CN110780976B CN 110780976 B CN110780976 B CN 110780976B CN 201911018398 A CN201911018398 A CN 201911018398A CN 110780976 B CN110780976 B CN 110780976B
Authority
CN
China
Prior art keywords
module
execution
turning
equipment
task
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
CN201911018398.0A
Other languages
Chinese (zh)
Other versions
CN110780976A (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.)
Eccom Network System Co ltd
Original Assignee
Eccom Network System 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 Eccom Network System Co ltd filed Critical Eccom Network System Co ltd
Priority to CN201911018398.0A priority Critical patent/CN110780976B/en
Publication of CN110780976A publication Critical patent/CN110780976A/en
Application granted granted Critical
Publication of CN110780976B publication Critical patent/CN110780976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an automatic operation arranging and executing method, which comprises the following steps: step 1: storing the operation task into a task queue; step 2: the operation execution module reads the operation task from the task queue and acquires an operation execution script; and step 3: reading the maximum concurrent connection number of the equipment and an operand which is executed by the equipment; judging whether the current concurrent connection of the equipment exceeds the maximum concurrent connection number or not; if yes, turning to the step 1; if not, turning to the step 4; and 4, step 4: determining whether the operand is concurrently executable on the device; if yes, turning to the step 6, and if not, turning to the step 5; and 5: judging whether the same operation is currently executed on the equipment or not; if yes, turning to the step 1, otherwise, turning to the step 6; step 6: taking the task information as a container starting parameter, starting a corresponding operation execution container, and automatically destroying the execution container after the operation execution is finished; and 7: and collecting operation execution logs and storing the operation execution logs into a log module.

Description

Automatic operation arranging and executing method and system
Technical Field
The invention relates to the field of IT (information technology) automation operation and maintenance, in particular to an automation operation arranging and executing method and system.
Background
A data center usually has a plurality of different types of software and hardware devices, such as network devices like routers and switches, various types of physical servers, and virtual machines on different cloud platforms. Currently, an operation and maintenance person can execute various operations on these devices by writing an operation and maintenance script and using various operation and maintenance tools. With the diversification of the device models and the complexity of operation and maintenance scenes, many operation and maintenance scenes need to execute a plurality of operation scripts on a plurality of different devices according to a certain sequence, some devices may have a limitation on the number of concurrent connections, and the operation scripts of some devices may not be executed concurrently. These increase the complexity of the operation and maintenance work and the workload of the operation and maintenance personnel. A conventional method, apparatus and medium for automated management of virtualized flow mirroring policies, as disclosed in CN109639449A, includes the following steps: arranging flow mirror image strategy information in a Network Function Virtualization (NFVO) orchestrator according to a received instruction; creating a flow mirror policy according to the flow mirror policy information, and deploying the flow mirror policy to a Virtual Network Function (VNF); and monitoring the VNF according to the flow mirror strategy, and executing corresponding management operation when preset operation is monitored.
However, most of the conventional operation and maintenance platforms adopt a centralized execution mode when performing operations, and when a system needs to execute a large amount of device operations, the execution of the operations is blocked, thereby affecting the operation and maintenance efficiency.
Disclosure of Invention
In view of the defects in the prior art, the present invention provides an automated operation arranging and executing method and system.
The invention provides an automatic operation arranging and executing method, which comprises the following steps:
step 1: storing the operation task into a task queue;
step 2: the operation execution module reads the operation tasks from the task queue and acquires corresponding operation execution scripts;
and step 3: reading the maximum concurrent connection number of the equipment and an operand which is executed by the equipment; judging whether the current concurrent connection of the equipment exceeds the maximum concurrent connection number or not; if yes, turning to the step 1; if not, turning to the step 4;
and 4, step 4: determining whether the operand is concurrently executable on the device; if yes, turning to the step 6, and if not, turning to the step 5;
and 5: judging whether the same operation is currently executed on the equipment or not; if yes, turning to the step 1, otherwise, turning to the step 6;
step 6: and taking the information of the operation tasks as container starting parameters, starting the corresponding operation execution container, and automatically destroying the execution container after the operation tasks are executed.
Preferably, the operation tasks in step 1 include: operation code, device code, input parameters, and timeout time.
Preferably, the step 2 comprises: and the operation execution module acquires the operation execution script according to the operation code and the equipment code.
Preferably, the step 6 task information includes: operation coding, device coding, and input parameters.
Preferably, the step 6 further comprises: and automatically destroying the execution container after the operation execution time-out.
The invention provides an automatic operation arranging and executing system, which comprises the following modules:
module M1: storing the operation task into a task queue;
module M2: the operation execution module reads the operation task from the task queue and acquires an operation execution script;
module M3: reading the maximum concurrent connection number of the equipment and an operand which is executed by the equipment; judging whether the current concurrent connection of the equipment exceeds the maximum concurrent connection number or not; if so, go to module M1; if not, turning to a module M4;
module M4: determining whether the operand is concurrently executable on the device; if yes, turn module M6, if not, turn module M5;
module M5: judging whether the same operation is currently executed on the equipment or not; if yes, turning to a module M1, otherwise, turning to a module M6;
module M6: taking the task information as a container starting parameter, starting a corresponding operation execution container, and automatically destroying the execution container after the operation execution is finished or overtime;
module M7: and collecting operation execution logs and storing the operation execution logs into a log module.
Preferably, the operation tasks in the module M1 include: operation code, device code, input parameters, and timeout time.
Preferably, the module M2 includes: and the operation execution module acquires the operation execution script according to the operation code and the equipment code.
Preferably, the module M6 task information includes: operation coding, device coding, and input parameters.
Preferably, the module M6 further includes: and automatically destroying the execution container after the operation execution time-out.
Compared with the prior art, the invention has the following beneficial effects:
1. the concurrent connection number of the same equipment is guaranteed not to exceed the maximum concurrent number of the equipment by uniformly issuing and executing the automatic operation, and meanwhile, the operation which can be influenced mutually is guaranteed not to be executed on the same equipment at the same time, so that the error rate of operation and maintenance operation is reduced.
2. The container technology is used for controlling the starting and stopping of operations in the container cluster, each operation is placed in an independent container environment to be executed, the operations are guaranteed not to be affected when executed, meanwhile, the container cluster is used for providing an operation execution environment capable of being expanded elastically, and efficient execution of large-batch operations is guaranteed.
3. Various equipment operations are solidified into a standard automatic operation flow through flow arrangement, and the standardization of operation and maintenance work is improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a flow chart of an automated operation orchestration and execution method according to the present invention.
FIG. 2 is a schematic diagram of an automated operation orchestration and execution system according to the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
As shown in fig. 1, the method for automatically arranging and executing operations according to the present invention includes the following steps:
step 1: storing the operation task into a task queue;
step 2: the operation execution module reads the operation tasks from the task queue and acquires corresponding operation execution scripts;
and step 3: reading the maximum concurrent connection number of the equipment and an operand which is executed by the equipment; judging whether the current concurrent connection of the equipment exceeds the maximum concurrent connection number or not; if yes, turning to the step 1; if not, turning to the step 4;
and 4, step 4: determining whether the operand is concurrently executable on the device; if yes, turning to the step 6, and if not, turning to the step 5;
and 5: judging whether the same operation is currently executed on the equipment or not; if yes, turning to the step 1, otherwise, turning to the step 6;
step 6: and taking the information of the operation tasks as container starting parameters, starting the corresponding operation execution container, and automatically destroying the execution container after the operation tasks are executed.
The operation task in the step 1 comprises the following steps: operation code, device code, input parameters, and timeout time.
The step 2 comprises the following steps: and the operation execution module acquires the operation execution script according to the operation code and the equipment code.
The step 6 task information comprises: operation coding, device coding, and input parameters.
The step 6 further comprises: and automatically destroying the execution container after the operation execution time-out.
In a preferred embodiment, as shown in fig. 1, the method for automatically arranging and executing operations includes the following steps:
step S201, inserting an operation task into a task queue; step S202, after reading the operation task from the task queue, obtaining an operation execution script from the data management module according to the operation code and the equipment code; step S203, reading the maximum concurrent connection number of the equipment and the operand which is executed by the equipment; judging whether the current concurrent connection of the equipment exceeds the maximum concurrent connection number or not; if yes, turning to S201, and turning to S204 if not; step S204, the operation can not be executed on the equipment concurrently, if yes, the step S206 is executed, and if not, the step S205 is executed; step S205, judging whether the same operation is currently executed on the equipment, if so, turning to S201, and if not, turning to S206; step S206, starting a corresponding operation execution container according to the operation type; step S207, collecting operation execution logs and storing the operation execution logs into a log module.
The invention provides an automatic operation arranging and executing system, which comprises the following modules:
module M1: storing the operation task into a task queue;
module M2: the operation execution module reads the operation task from the task queue and acquires an operation execution script;
module M3: reading the maximum concurrent connection number of the equipment and an operand which is executed by the equipment; judging whether the current concurrent connection of the equipment exceeds the maximum concurrent connection number or not; if so, go to module M1; if not, turning to a module M4;
module M4: determining whether the operand is concurrently executable on the device; if yes, turn module M6, if not, turn module M5;
module M5: judging whether the same operation is currently executed on the equipment or not; if yes, turning to a module M1, otherwise, turning to a module M6;
module M6: taking the task information as a container starting parameter, starting a corresponding operation execution container, and automatically destroying the execution container after the operation execution is finished or overtime;
module M7: and collecting operation execution logs and storing the operation execution logs into a log module.
The operation tasks in the module M1 include: operation code, device code, input parameters, and timeout time.
The module M2 includes: and the operation execution module acquires the operation execution script according to the operation code and the equipment code.
The module M6 task information includes: operation coding, device coding, and input parameters.
The module M6 further includes: and automatically destroying the execution container after the operation execution time-out.
In a preferred embodiment, each module of the system is deployed in a container cluster, as shown in FIG. 2. The system comprises a data management module 10, a process arrangement module 20, a service directory module 30, a process execution module 40, an operation execution module 50 and a log audit module 60. Wherein: the data management module 10 is configured to record device information and operation information, including configuration information such as a device name, an IP address, and login information, and operation information such as an operation name, an input parameter, and an operation script content. The process arrangement module 20 is used for arranging various automatic operations, manual processing and the like into a process template in a graphical interface mode. And the service directory module 30 is used for calling the operation and maintenance flow generated by the flow arrangement module by the end user. And the flow execution module 40 is responsible for decomposing and executing the operation and maintenance flow, and issues the equipment operation by calling the operation execution module according to the flow definition to acquire an operation result. The operation executing module 50 is configured to receive the operation task issued by the flow executing module, obtain an operation script to be executed from the data management module, start an execution container for the corresponding type of operation in the container cluster according to the script type, set an execution timeout time, and automatically complete destruction of the container after the operation execution is finished or the execution is timed out. And the log auditing module 60 is used for centralized storage and query of the operation and maintenance operation logs.
Those skilled in the art will appreciate that, in addition to implementing the system and its various devices, modules, units provided by the present invention as pure computer readable program code, the system and its various devices, modules, units provided by the present invention can be fully implemented by logically programming method steps in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system and various devices, modules and units thereof provided by the invention can be regarded as a hardware component, and the devices, modules and units included in the system for realizing various functions can also be regarded as structures in the hardware component; means, modules, units for performing the various functions may also be regarded as structures within both software modules and hardware components for performing the method.
In the description of the present application, it is to be understood that the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present application and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present application.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (8)

1. An automated operation arranging and executing method is characterized by comprising the following steps:
step 1: storing the operation task into a task queue;
step 2: the operation execution module reads the operation tasks from the task queue and acquires corresponding operation execution scripts;
and step 3: reading the maximum concurrent connection number of the equipment and an operand which is executed by the equipment; judging whether the current concurrent connection of the equipment exceeds the maximum concurrent connection number or not; if yes, turning to the step 1; if not, turning to the step 4;
and 4, step 4: determining whether the operand is concurrently executable on the device; if yes, turning to the step 6, and if not, turning to the step 5;
and 5: judging whether the same operation is currently executed on the equipment or not; if yes, turning to the step 1, otherwise, turning to the step 6;
step 6: taking the information of the operation tasks as container starting parameters, starting corresponding operation execution containers, and automatically destroying the execution containers after the operation tasks are executed;
the operation task in the step 1 comprises the following steps: operation code, device code, input parameters, and timeout time.
2. The automated operation orchestration and execution method according to claim 1, wherein step 2 comprises: and the operation execution module acquires the operation execution script according to the operation code and the equipment code.
3. The automated operation orchestration and execution method according to claim 2, wherein the step 6 task information comprises: operation coding, device coding, and input parameters.
4. The automated operation orchestration and execution method according to claim 1, wherein step 6 further comprises: and automatically destroying the execution container after the operation execution time-out.
5. An automated operation orchestration and execution system, comprising:
module M1: storing the operation task into a task queue;
module M2: the operation execution module reads the operation task from the task queue and acquires an operation execution script;
module M3: reading the maximum concurrent connection number of the equipment and an operand which is executed by the equipment; judging whether the current concurrent connection of the equipment exceeds the maximum concurrent connection number or not; if so, go to module M1; if not, turning to a module M4;
module M4: determining whether the operand is concurrently executable on the device; if yes, turn module M6, if not, turn module M5;
module M5: judging whether the same operation is currently executed on the equipment or not; if yes, turning to a module M1, otherwise, turning to a module M6;
module M6: taking the task information as a container starting parameter, starting a corresponding operation execution container, and automatically destroying the execution container after the operation execution is finished or overtime;
module M7: collecting operation execution logs and storing the operation execution logs into a log module;
the operation tasks in the module M1 include: operation code, device code, input parameters, and timeout time.
6. The automated operation orchestration and execution system according to claim 5, wherein the module M2 comprises: and the operation execution module acquires the operation execution script according to the operation code and the equipment code.
7. The automated operation orchestration and execution system of claim 6, wherein the module M6 task information comprises: operation coding, device coding, and input parameters.
8. The automated operation orchestration and execution system of claim 5, wherein the module M6 further comprises: and automatically destroying the execution container after the operation execution time-out.
CN201911018398.0A 2019-10-24 2019-10-24 Automatic operation arranging and executing method and system Active CN110780976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911018398.0A CN110780976B (en) 2019-10-24 2019-10-24 Automatic operation arranging and executing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911018398.0A CN110780976B (en) 2019-10-24 2019-10-24 Automatic operation arranging and executing method and system

Publications (2)

Publication Number Publication Date
CN110780976A CN110780976A (en) 2020-02-11
CN110780976B true CN110780976B (en) 2022-03-15

Family

ID=69386322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911018398.0A Active CN110780976B (en) 2019-10-24 2019-10-24 Automatic operation arranging and executing method and system

Country Status (1)

Country Link
CN (1) CN110780976B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940612A (en) * 1995-09-27 1999-08-17 International Business Machines Corporation System and method for queuing of tasks in a multiprocessing system
CN103942052A (en) * 2014-04-17 2014-07-23 中国联合网络通信集团有限公司 Service container engine
CN108614688A (en) * 2016-12-30 2018-10-02 上海华讯网络系统有限公司 Visualization application layout applied to mixing cloud environment and method
CN110262871A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Container instance start and stop method, apparatus, computer equipment and the storage medium of container application
CN110287018A (en) * 2019-07-04 2019-09-27 中国工商银行股份有限公司 Batch tasks method of combination and device
CN110286884A (en) * 2019-06-21 2019-09-27 北京百度网讯科技有限公司 Micro services method of combination, device, equipment and computer readable storage medium
CN110333932A (en) * 2019-06-13 2019-10-15 上海金融期货信息技术有限公司 Service orchestration and relationship managing method and system based on container cloud

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940612A (en) * 1995-09-27 1999-08-17 International Business Machines Corporation System and method for queuing of tasks in a multiprocessing system
CN103942052A (en) * 2014-04-17 2014-07-23 中国联合网络通信集团有限公司 Service container engine
CN108614688A (en) * 2016-12-30 2018-10-02 上海华讯网络系统有限公司 Visualization application layout applied to mixing cloud environment and method
CN110262871A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Container instance start and stop method, apparatus, computer equipment and the storage medium of container application
CN110333932A (en) * 2019-06-13 2019-10-15 上海金融期货信息技术有限公司 Service orchestration and relationship managing method and system based on container cloud
CN110286884A (en) * 2019-06-21 2019-09-27 北京百度网讯科技有限公司 Micro services method of combination, device, equipment and computer readable storage medium
CN110287018A (en) * 2019-07-04 2019-09-27 中国工商银行股份有限公司 Batch tasks method of combination and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Docker环境下容器编排工具的选择;徐珉;《集成电路应用》;20170731;第34卷(第7期);全文 *

Also Published As

Publication number Publication date
CN110780976A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
US8990372B2 (en) Operation managing device and operation management method
CN110098952B (en) Server management method and device
CN114064213B (en) Quick arranging service method and system based on Kubernets container environment
WO2015009318A1 (en) Virtual machine resource management system and method thereof
CN109684038B (en) Docker service container log processing method and device and electronic equipment
CN109117141A (en) Simplify method, apparatus, the electronic equipment, computer readable storage medium of programming
CN105653401A (en) Method and device for scheduling disaster recovery, operation and maintenance, monitoring and emergency start-stop of application systems
CN111953809B (en) Method, device, equipment and system for managing resource address
CN110278101A (en) A kind of method for managing resource and equipment
US12130713B2 (en) Autonomous organization and role selection of homogenous workers
CN116820908A (en) Locust-based performance test method, device, equipment and medium
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN114255016A (en) Workflow system application method, system, computer and readable storage medium
CN114527962B (en) Automatic process processing device and method and computing equipment
CN110011827A (en) Towards doctor conjuncted multi-user's big data analysis service system and method
CN110780976B (en) Automatic operation arranging and executing method and system
EP4152715A1 (en) Method and apparatus for determining resource configuration of cloud service system
CN107025126B (en) Resource scheduling method, NFVO and system
CN115525413A (en) Cluster-based model training method, system, equipment, medium and product
CN101997715A (en) Gateway software upgrading management method
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
CN114461233B (en) System and method for realizing automatic deployment of data center software based on cloud environment
CN114861773A (en) Model training visualization method and device and cloud platform
US20200344305A1 (en) Commissioning a virtualised network function
CN105630634A (en) Application system disaster recovery backup switching method and device

Legal Events

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