Kubernetes Deployment best practices

Zero, example First, give a complete demo of deployment + HPA + poddisruption budget, and then introduce each part in detail: apiVersion: apps/v1 kind: Deployment metadata: name: my-app-v3 namespace: prod labels: app: my-app spec: replicas: 3 strategy: type: RollingUpdate rollingUpdate: maxSurge: 10% # When rolling ...

Posted by isuckat_php on Tue, 30 Nov 2021 16:58:00 -0800

shell learning notes git related use

Excerpt from Chapter 6 warehouse management of Linux Shell script introduction brief introduction Git is already included in most Linux distributions. If it is not installed on your system, you can get it from yum (Redhat or SuSE) or apt get (Debian or Ubuntu) $ sudo yum install git-all $ sudo apt-get install git-all Create a new git repos ...

Posted by apw on Tue, 30 Nov 2021 16:03:40 -0800

[kali] 31 WEB penetration -- HTTP protocol and scanning tool Nikto

1, HTTP protocol Plaintext No built-in confidentiality security mechanism Sniffing or proxy truncation can view all plaintext information https can only improve transport layer security Stateless Each communication between client and server is an independent process WEB applications need to track client sessions (multi-step comm ...

Posted by lesmckeown on Tue, 30 Nov 2021 09:28:57 -0800

One Linux command a day (43): netstat command

This article is an original article of Joshua 317. Please note: reprinted from Joshua 317 blog https://www.joshua317.com/article/203 One Linux command a day (43): netstat command 1, Introduction The netstat command under Linux is used to display various network related information, such as network connection, routing table, interface statistic ...

Posted by ganeshasri on Mon, 29 Nov 2021 11:58:38 -0800

Linux system application programming -- thread recycling of multithreading

Like a process, when a child thread exits, its kernel resources are mainly recycled by the main thread. The thread recycling function provided in the thread library is called pthread_join() is a blocking function. If there are still sub threads running, calling this function will block. The sub thread exits the function to unblock and recycle r ...

Posted by kevinkhan on Mon, 29 Nov 2021 07:59:04 -0800

Implementation of mysql architecture cache in redis server environment

Build an instance based on memcache: web(php) host: 192.168.181.6 redis host: 192.168.181.5 mysql host: 192.168.181.4 First, close the firewall of the three hosts systemctl stop firewalld systemctl disable firewalld sed -i 's/enforcing/disabled/'/etc/selinux/config setenforce 0 Synchronization time yum -y install ntp ntpdate ntpdat ...

Posted by True`Logic on Sun, 28 Nov 2021 17:09:09 -0800

[C/C + + backend development and learning] 19 Redis basic data structure and commands

About Redis Redis (Remote Dictionary Service) is an in memory database, also known as KV database and data structure database. Redis is often used as data cache to cache hot data and reduce the pressure on the database. View the complete Redis command: Redis command center. Key value basic data structure Redis's external interface alw ...

Posted by rslnerd on Sun, 28 Nov 2021 14:17:54 -0800

IO multiplexing (select, poll, epoll)

The TCP server can be explained with the following diagram: Welcome is equivalent to listenfd, which has been listening to the client's requests. When a customer arrives, guide the customer to the waiter in the lobby. At this time, a connection is established. The lobby waiter is equivalent to connfd, and all interactions with the current clien ...

Posted by egiblock on Sun, 28 Nov 2021 13:28:56 -0800

WK2204-spi to uart debugging record

Hardware Chip introduction   WK2204(DataSheet) Is a spi extended UART chip, which implements spi extended 4 routes of uart. The expanded UART channel of the chip has the following features: The baud rate, word length, and check format of each channel can be set independently, providing a maximum communication rate of 2 MbpsEach channel h ...

Posted by gardnc on Sun, 28 Nov 2021 11:15:33 -0800

Explain multithreading and multiprocessing in detail. After reading it, you will understand

What are Python's support modules for concurrent programming? Module nameeffectthreadingRealize multithreading, and make use of the principle that the computer CPU and IO can execute at the same time, so that the CPU can access another task during the computer IO operation.multprocessingmultprocessingasyncioRealize asynchronous IO, and realize ...

Posted by gillypogi on Sun, 28 Nov 2021 07:02:26 -0800