Original: Istio source analysis--pilot-agent How to manage envoy life cycle
Statement
The source code for the analysis is 0.7.1 version
Environment for K8s
Because there is no C + + foundation, so the source analysis stops in C + +, but
Before studying the wait and WAITPID functions, I was puzzled by the use of macro wifexited to check the resulting process termination state: Typically we exit by calling the exit or _exit function in the program. So the terminating state of the
Using supervisor is not very complicated. it is used to start uWSGI, but there are still some minor problems during the test, but there is no reason in the log, the root cause can be found only after careful consideration.
After the supervisor is
GREP is the abbreviation for global search Regular Expression and Print out of the line.1. Basic usage of GREP commandsCommand format: grep [options] [mode] [file ...]
Options
Significance
-C
Output only the
Return, break, and contiue are language constructs, just like an if statement, but exit is a function. 1.exit function: Output a message and terminate the current script outputs a piece of messages and terminates the active scripts. If a section of
In my last two articles, I described in detail Error handling in the Go language, and gives you a summary of the error types, processing techniques, and design methods for the error values from two perspectives.in this article, I want to show you
The 20 good habits to be used in Unix are:
1) create a directory tree in a single command.
2) change the path. Do not move the archive.
3) combine commands with control operators.
4) exercise caution when referencing variables.
5) Use escape
I. How grep works
The grep command looks for a character mode in one or more files. If this mode contains spaces, it must be enclosed by quotation marks. In the grep command, the mode can be a string enclosed by quotation marks or a single word. All
Next, let's take a deeper and closer look at the python process. First, let's take a look at what the python process is and what issues you should pay attention to when processing the python process. Next, I will introduce and learn for you
This is a good habit that should be observed in the ten command line operation modes in linux. They not only make your operations faster, but also reduce the possibility of mistakes. They are
1. Use a mkdir statement to create a complete directory
If condition judgment of Linux shell script, linuxshellIF condition judgment1. Basic Syntax:If [command]; thenStatements that meet this conditionFi
2. Extended Syntax:
If [command]; then
Statements that meet this condition
Elif [command];
1. while Loop
While Command FormatWhile condition tableDoCommand tableDoneExecution ProcessShell first executes the condition table. If the exit status of the last statement in the condition table is zero, execute the command table in the
As mentioned above, variable names can only contain numbers, letters, and underscores, because some variables that contain other characters have special meanings. Such variables are called special variables.
For example, $ indicates the ID of the
A Unix process is created when a process calls fork. Fork splits the running executable process into two parts. The sub-process will be allocated to the kernel stack. At the end of the stack, there is a thread_struct structure, which has a pointer
Ten good habits to use are:
1. Create a directory tree in a single command.2. Change the path. Do not move the archive.3. Combine commands with control operators.4. Exercise caution when referencing variables.5. Use escape sequences to manage long
One, parenthesis, round brackets () 1, single parenthesis () ① command group. The commands in parentheses will be executed in a new sub-shell sequence, so the variables in parentheses cannot be used by the rest of the script. Multiple commands in
Variable names can only contain numbers, letters, and underscores, because some variables that contain other characters have special meanings, and such variables are called special variables.For example, $ represents the ID of the current shell
In this tutorial we create a variety of dialog boxes in the Linux interactive shell script, the dialog box can be friendly to the operator in Linux, interested friends can refer to learning about.When you install new software in the terminal
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.