当前位置:网站首页>Sub process call - process arrangement in complex O & M scenarios
Sub process call - process arrangement in complex O & M scenarios
2022-06-24 05:49:00 【Tencent blue whale assistant】
Introduction
Subprocess call , It is a function of standard operation and maintenance . The sub process call function gives the operation and maintenance personnel , Higher dimensional process choreography capability .
Standard operation and maintenance is a set of mature and stable task scheduling engine , Integrate the work between multiple systems into one process , Assist operation and maintenance to realize cross system dispatching automation SaaS application . The standard operation and maintenance has a visual graphical interface , The operation and maintenance personnel can realize task flow arrangement and execution through it , Including publishing 、 change 、 Open area 、 Expansion and contraction, etc .
The standard operation and maintenance will cover all basic platforms of blue whale 、 And the capabilities of third-party systems within the enterprise , In the form of a plug-in node , Give the operation and maintenance personnel the ability to arrange . The operation and maintenance personnel sort out the actual scenario steps of releasing changes , Standardize the operation and maintenance steps 、 Standardization , So as to arrange the process , To form a realistic scene 、 Reusable 、 One click automated task flow .
Introduction to subprocess invocation
Blue whale community version 6.0、 Enterprise Edition 3.0 in , Standard operation and maintenance has launched “ Subprocess call ” New functions . This function allows the user to view the current process ( Parent process ) in , Reference other processes ( I.e. sub process ), So as to realize the process arrangement ability of a higher dimension .
When we put a certain kind of scene , After being arranged into a process with relatively complete functions , This standardized process , It has the value of reuse . In addition to performing this process task alone , The standard operation and maintenance provides the following functions in the parent process , How to invoke the process , Make it a sub process to be referenced , To achieve a higher level of process orchestration capability .
Advantages of subprocess invocation
Subprocess call function , It can bring these conveniences to the operation and maintenance personnel :
1、 Maintain a single process content , Avoid asynchronous multi-source maintenance .
When the operation and maintenance personnel need to work in multiple task processes , When the same steps need to be arranged , For one click Automation , There may be more than one task , There will be some steps with the same function . When these functions need to be modified , We need to understand the process that involves all these steps , All of them are modified . If the sub process function is adopted , We only need to maintain a single process content , Process update of sub process , When the parent process is referenced, it is the latest content .
2、 Global variables for streamlining process orchestration , Only the variables in the sub process that need to be output from the outside .
In a task flow , Contains global variables that require user input , Also included in each step of the process itself “ Input / output parameter transfer “ Required global variables . Sub processes can be configured selectively , Global variables that will need to be exported , Marked as “ Output ” Global variable of . here , When the sub process is referenced by the parent process , Marked as ” Output “ Global variable of , Will be used as the output parameter of the sub process , After being converted to the global variable of the parent process , Reference... In the orchestration for subsequent steps .
3、 Decouple the functional processes of different scenarios , Improve the ability of multi person collaboration
The appearance of sub process functions , Be able to decouple functional processes in different scenarios . Let the professional team focus on the automation construction of its own operation and maintenance process , for example :SA The team can focus on the corresponding sub process construction of the machine system initialization ,DBA The team can focus on DB Sub process construction related to release change , Front end module development and operation and maintenance personnel can focus on client Sub process construction of the end release change scenario , The development and operation and maintenance personnel of the back-end module can focus on the sub process construction of the backup release scenario of the server ……
The final application o & M is released according to the actual scenario , In a higher dimension , Automatic arrangement of O & M operation .
How to implement a sub process call
The calling of sub processes is very simple to configure , It only takes two steps to achieve .
1、 Mark... In the sub process “ Output global variables ”.
Usually , We are in a process , Will use a lot of global variables , To realize the complex logic of asynchronous inter step input and output parameter transfer . There may be only a few global variables , It needs to be exposed , For subsequent steps of the parent process . Just mark these global variables as ” Output global variables “, It can help us reduce the number of global variables , Simplify the orchestration of the parent process .
As shown in the figure below , In the global variables in the subprocess , open “ Output ” switch , Marked as ” Output global variables “, Other global variables will not be introduced into the parent process .
2、 Reference the sub process in the parent process .
In the parent process , Drag the left ” Sub process node box “ Go to the canvas , stay ” Process list “ Select the name of the sub process to be referenced in the , That is, complete the reference .
Same as other common node boxes , You can configure the input and output of this node 、 Mobile connection 、 Parallel serial gateway configuration and other orchestration operations .
In the parent process , Open the “ Output ” Global variables of the switch , You will see in the output parameters of the sub process node box . It can be converted to a global variable of the parent process , Use as a parameter in subsequent steps .
Examples of scenarios referenced by actual sub processes
1、 Machine initialized subprocess calls .
Usually , After the host is delivered to the operation and maintenance personnel , A series of initialization operations are required for the host , For example, modify the host name 、 To configure dns、 Change the default password 、 To configure yum Source 、 Install the specified base software python Wait for the operation . Choreograph these steps into machine initialization subprocesses , For one key expansion 、 One click game open new area and other function calls .
2、 Sub process call of backup process .
The necessary operation for server-side file publishing is to back up the files to be published . Take the backup process as a sub process , Can be referenced in any other publishing process , Implement backup operations .
3、 The business module releases the front and back end sub process calls .
Business modules are usually divided into different modules , For example, the division of front-end module and back-end module . Front end publishing and back-end publishing , The operation and maintenance personnel will work out two processes , Each time the corresponding module is released , Perform tasks independently .
But when the big version is released every month , It needs to be done on the front end 、 The back end is published at the same time , You also need to include some steps to prepare the version file . here , The release process compiled by the operation and maintenance personnel , In the form of sub processes , Call the front-end and back-end publishing tasks , So as to achieve the automation of large version release .
Experience address
1、 Open source co construction
Standard operation and maintenance SaaS Is open source , Please visit github Page blue whale smart cloud standard operation and maintenance (SOPS):https://github.com/Tencent/bk-sops , Click on star Button , Light up the little stars , You are also welcome to submit issue and pr, We appreciate your support and attention .
2、 Download experience
New functions called by subprocess , You can go to the official website of blue whale Zhiyun (https://bk.tencent.com/download/ ), Download Community Edition 6.0 Version base package , Install standard O & M SaaS, Experience .
Related reading
Play with task arrangement - Flexible application layer process engine
边栏推荐
- PV and PVC analysis and use in kubernetes
- test
- Where to register the HK domain name? What should I pay attention to when registering the domain name
- Intelligent monitoring era - the way of monitoring construction
- How to use ffmpeg one frame H264 to decode yuv420p in audio and video development?
- [industry outlook] future development forecast of UHD video application
- Inferior administrator and black heart Haikang
- How to apply for a primary domain name? Is primary domain name good or secondary domain name good?
- What should I pay attention to in server hosting and migration?
- Why storage?
猜你喜欢
随机推荐
What is a first level domain name? What are the steps to purchase a primary domain name?
Kubernetes configures two ways of hot update
Net domain name how to choose a domain name
Script updates CLB type ingress Certificate in tke cluster
Is the prospect of cloud computing in the security industry worth being optimistic about?
The website cannot be opened after windows installs the dongle
How to file a personal domain name? What are the benefits of domain name filing?
ZABBIX enterprise distributed monitoring
What is the meaning of domain name being walled and what is the solution
Malicious software packages are found in pypi code base. Tencent security threat intelligence has been included. Experts remind coders to be careful of supply chain attacks
MySQL optimization
Tencent cloud ceontos server patrol script
Why storage?
How to check the domain name of the website? Are there any skills to speak of
What enlightenment does it consulting giant Accenture get from the blackmail attack?
How to apply for a domain name? Why should domain names be filed in advance?
What domain name is top? What are the advantages of the top domain name?
Analysis and summary of the packet capturing artifact tcpdump - covering major use scenarios and advanced usage
Pylin tool usage
test