ZooKeeper source code analysis 13 Leader election
1, run method of QuorumPeer
Above Just preparing for the Leader election, but it hasn't triggered the election process. In the start method, after calling startLeaderElection(), the QuorumPeer thread will start. Next we'll start with his run method.
public void run() {
try {
while (running) {
switch (ge ...
Posted by spooke2k on Sun, 02 Jan 2022 06:14:24 +0100
Zookeeper entry level knowledge notes
First meet Zookeeper
Zookeeper is a sub project under the Apache Hadoop project. It is a tree directory service. The zoo keeper is used to manage Hadoop, Hive, Pig and other animals. Zookeeper is a distributed, open source, distributed application coordination service.
The most commonly used functions: configuration management, distributed lo ...
Posted by macastor on Tue, 28 Dec 2021 06:12:33 +0100
Application practice of 04 Nacos service registry
Introduction to registration center
Background analysis
In microservices, the first problem we need to face is how to find services (software is a service), and the second is how to communicate between different services? How to manage each service in the application better and more conveniently, and how to establish the link between various ...
Posted by SergiuGothic on Mon, 27 Dec 2021 17:44:50 +0100
kubernetes resource scheduling
dispatch
Create a pod workflow
kubernetes realizes the decoupling of interaction between components based on the controller architecture of list watch mechanism. Other components monitor their own resources. When these resources change, Kube apiserver will notify these components. This process is similar to publish and subscribe.
Main a ...
Posted by john-iom on Sat, 25 Dec 2021 05:20:49 +0100
k8s learning notes -- about ceph storage volume unmount exception
When dynamically allocating pv in ceph # rbd storage, I encountered the problem that pod cannot be deleted twice (the specific reason is not understood yet). All pods display the Terminating status. Use the following command to forcibly delete:
kubectl delete pods <pod> --grace-period=0 --force
However, after the pod is deleted, the pvc ...
Posted by tmaiden on Sat, 18 Dec 2021 16:46:42 +0100
ARM64 platform deploys Kubernetes based on openEuler + iSula environment
Why should Kubernetes be deployed on arm64 platform, and it is the architecture of Kunpeng 920. it's a long story... 5000 words are omitted here.
Introduce the system information;
• architecture: Kunpeng 920 •OS: openEuler 20.03 (LTS-SP1) •CPU: 4c • memory: 16G • hard disk: Several
Although the whole process refers to the post ...
Posted by wendymelon on Thu, 16 Dec 2021 22:15:15 +0100
Another city! Two communities work together to create a new tool for API log monitoring
Since Apache RocketMQ entered the vision of global developers in 2016, it has developed into the core data base of technology in e-commerce, finance, education, science and technology and other fields.According to incomplete statistics, more than 70% of domestic users (including top 100 enterprises in various fields such as finance, insurance, ...
Posted by gernot on Thu, 16 Dec 2021 12:30:12 +0100
kubernetes persistent storage PV and PVC
kubernetes persistent storage PV and PVC
1. Introduction of PV and PVC
Volume provides a very good data persistence scheme, but there are still deficiencies in manageability. Take the previous example of AWS EBS. To use Volume, Pod must know the following information in advance: The current Volume is from AWS EBS. The EBS Volume has been crea ...
Posted by DepretioN on Wed, 15 Dec 2021 03:28:25 +0100
Detailed explanation of Pod in Kubernetes
1, kubectl command
kubectl is the command line tool of Kubernetes cluster. kubectl can manage the cluster itself and install and deploy container applications on the cluster
The command format is as follows
kubectl [command] [type] [name] [flags]
parameter
command: Specifies the operations to be performed on the resource, such as crea ...
Posted by scs on Wed, 15 Dec 2021 00:53:50 +0100
Prometheus monitoring practice series 9: host monitoring
Earlier, we introduced the basic concepts of Prometheus, including data format and PromQL syntax. In this section, we will explain how to realize host monitoring through Prometheus.
Prometheus uses various exporters to monitor resources. The Exporter can be regarded as the agent side of monitoring. It is responsible for collecting the indicato ...
Posted by iNFERiON on Tue, 30 Nov 2021 16:25:02 +0100