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

Building Hadoop using virtual machine (pseudo distributed building, distributed building)

After learning Hadoop for a semester, I finally chewed off this big bone, tears!!! This article is more like a summary of learning Hadoop 1, Preparatory work 1. hadoop compressed package There will be this official website. Download the compressed package and prepare it. I use version 2.7.1 2. jdk compressed package This is the Java r ...

Posted by many_pets on Sat, 01 Jan 2022 19:05:16 +0100

Implementing Redis distributed lock from zero to one coding

Some students are so pissing. You can understand it. If you don't do it yourself, how can you understand it thoroughly? Let's do it together! Usage scenario and model selection The distributed multi node deployment mode makes it possible for shared variables to be operated at the same time. In case of data consistency requirements, global loc ...

Posted by oeb on Sat, 01 Jan 2022 03:03:06 +0100

[Spring Cloud Alibaba] Seata distributed transaction

[Spring Cloud Alibaba] Seata distributed transaction 1,Spring Cloud Alibaba Seata Seata is an open source distributed transaction solution, which is committed to providing high-performance and easy-to-use distributed transaction services under the microservice architecture. Before the opening of Seata, the corresponding internal version o ...

Posted by at0mic on Fri, 31 Dec 2021 19:58:03 +0100

Redis foundation - master-slave replication

concept Master slave replication refers to copying data from one Redis server to other Redis servers. The former is called master / leader and the latter is called slave / follower. Data replication is unidirectional and can only be from master node to slave node. Master mainly writes, Slave mainly reads. By default, each Redis server ...

Posted by skaforey on Thu, 30 Dec 2021 20:39:25 +0100

Remember the Nacos distributed transaction seata1 3 integration of

Recently, seata was used in a new project. Because it had not been used before, I was at a loss when I went to the Internet to find information. I stuck a little here and deducted a little there. Then I felt that all kinds of problems had been encountered. I continued to do it for two or three days. Finally, I can use it now. Here, I record the ...

Posted by Kurrel on Wed, 29 Dec 2021 14:06:05 +0100

Suggestions on the use of RabbitMQ

After more than 4 years of use experience, Found that there are many misunderstandings and wrong codes on the Internet. In order to clarify some wrong ideas and ways of use. I specially wrote this article to unify everyone's programming standards and naming standards, Facilitate system development and system integration. Added some common q ...

Posted by Master Zen on Wed, 29 Dec 2021 12:11:57 +0100

kafka monitoring tool: kafka eagle installation pit

1. Background: I use Xiaobai in kafka. When I use kafka product production data, it is inconvenient to see whether there is data in kafka topic from the background. I looked online and found that an open source tool kafka eagle works better. 2. Software preparation: Official website link: EFAK Just started to download an official latest ver ...

Posted by madavies on Wed, 29 Dec 2021 03:42:05 +0100

[source code analysis] PyTorch distributed elastic training -- Rendezvous architecture and logic

[source code analysis] PyTorch distributed elastic training (4) - Rendezvous architecture and logic 0x00 summary In the previous article, we have learned the basic modules of PyTorch distribution and introduced several official examples. Next, we will introduce the flexibility training of PyTorch. This is the fourth article to see the str ...

Posted by allanonschick on Tue, 28 Dec 2021 23:16:19 +0100

Scrapy_ Use of splash component

1. Understand scratch_ splash? scrapy_splash is a component of scratch The loading of js data by scratch Splash is implemented based on Splash.Splash is a Javascript rendering service.The final response obtained by using scratch splash is equivalent to the web page source code after the browser is fully rendered. splash official document ...

Posted by scheinarts on Tue, 28 Dec 2021 19:22:10 +0100