kubernetes notes Pod resource scheduling stain and tolerance
summary:Taints are key value attribute data defined on the node, which is used to make the node refuse to run Pod scheduling on it, unless the Pod object has the tolerance of accepting node taints. Tolerance tolerances are key value attribute data defined on the Pod object, which is used to configure its tolerable node stains, and the scheduler ...
Posted by mrobinson83 on Tue, 30 Nov 2021 15:46:58 +0100
Summary of 40 commands necessary for Linux operation and maintenance
1. Delete 0 byte file
find -type f -size 0 -exec rm -rf {} \;
2. View process
Sort by memory size
PS -e -o "%C : %p : %z : %a"|sort -k5 -nr
3. Sorted by CPU utilization from large to small
ps -e -o "%C : %p : %z : %a"|sort -nr
4. Print the URL in the cache
grep -r -a jpg /data/cache/* | strings | grep "http:" | awk -F'http:' '{print "ht ...
Posted by $Three3 on Mon, 29 Nov 2021 04:53:23 +0100
Thread synchronization and mutex
The concept of thread synchronization
Thread synchronization means that when a thread makes a function call, the call will not return until the result is obtained. At the same time, other threads cannot call this function to ensure data consistency.
Examples of thread synchronization
Create two threads, let the two threads share a glo ...
Posted by scross on Mon, 29 Nov 2021 00:54:03 +0100
Introduction and deployment of Prometheus
1. Introduction to Prometheus
Prometheus is an open source system for monitoring and alarming. It has now joined the CNCF Foundation as the second CNCF-hosted project after k8s. In the kubernetes container management system, Prometheus is often used for monitoring. It also supports multiple exporter s for data collection and pushgateway fo ...
Posted by vintox on Sun, 28 Nov 2021 19:16:18 +0100
Linux Basics
file
Directory tree
/Bin: bin is the abbreviation of Binaries. This directory stores the most frequently used commands./boot: here are some core files used when starting Linux, including some connection files and image files./Dev: dev is the abbreviation of device. External devices of Linux are stored in this directory. The way to access de ...
Posted by Magicman0022 on Sun, 28 Nov 2021 08:00:44 +0100
Kubernetes runtime migration from docker to containerd
01 Preface
Kubernetes (hereinafter referred to as k8s) announced that docker will be abandoned as a container after version 1.20, and the dockershim component will be completely removed in version 1.23 released at the end of 2021. Dockershim is a built-in component of kubelet. Its function is to make k8s it possible to operate dockers through ...
Posted by corruption on Sat, 27 Nov 2021 03:12:44 +0100
Use jdbc, java and database connection to realize the method of accessing data in the database in java code ---- the simplest entry level
I am a computer white, just started self-study, slowly improving
It's lucky to knock the code and correct the mistakes. Please leave your praise. It's my greatest encouragement and gives the little girl the confidence to continue to improve! Thank you
jdbc download address Click here to download
For specific download methods, please refer to ...
Posted by jack_wetson on Fri, 26 Nov 2021 19:22:06 +0100
What if Redis memory is full? Let you understand 8 memory elimination strategies
We know that redis is a very common memory database, and reading data from memory is one of the reasons why it is very efficient. However, if one day, "What if redis's allocated memory is full?" ? Don't panic when you encounter this interview question. We can answer this question from two angles:
"What will redis d ...
Posted by nemonoman on Fri, 26 Nov 2021 15:19:59 +0100
Java code modularization - method
Java code modularization - method
1. Concept of method
The purpose of Java method: modularity, reusability and simple application
2. Structure
3. Grammar
public satatic int add(int a,int b,int c){
int sum = a+b+c;
return sum;
}
public: access control characterStatic: static / /!!!int /double/void: enlarged return typeadd: na ...
Posted by chomedey on Mon, 22 Nov 2021 14:44:19 +0100
Linux kernel learning 4 -- print process descriptor task_ Fields in struct
Let's practice printing process descriptor task_ Fields in struct
The method used here is to insert the kernel module, and the method used is to traverse the process linked list
1, Task_ A preliminary interpretation of struct
First, download your own source code. You can refer to my previous blog https://blog.csdn.net/weixin_45730790/article ...
Posted by shaunie123 on Sat, 20 Nov 2021 17:02:59 +0100