Practical test of deploying rabbitMQ image cluster

Deploying rabbitMQ image cluster Version information rabbit MQ: 3.8.5 Erlang: Official recommended minimum 21.3 recommended 22.x Here's 23 Environmental preparation Host planning host node 172.16.14.3 Disk node 172.16.14.4 Memory node 172.16.14.5 Disk node Memory node: The memory no ...

Posted by JayBachatero on Tue, 30 Jun 2020 03:06:29 +0200

Late night overtime boring, imitating an EventBus based on reflection

Dry point By reading this blog, you can learn about java's reflection mechanism and how to use custom annotations to solve everyday R&D problems based on the spring lifecycle. Problem Description In daily R&D, it is common to encounter an action triggered by Business A and at the same time trigger the action of Business B. This form of ...

Posted by rross46 on Mon, 29 Jun 2020 18:57:16 +0200

Singleton singleton mode

Singleton mode is one of the creation modes. In our software development process, there are many classes that are only created once globally, such as app framework class, global management class, configuration file, log, database, etc. Using singleton mode can make our code elegant. The UML class diagram and C++ sample code are given below: ...

Posted by mightymaster on Mon, 29 Jun 2020 18:15:58 +0200

From 0 to 1, hand in hand to teach you how to get to etcd

By kaliarch Link: https://juejin.im/post/5e02fb... Background: Recently, there are some puzzles about the function of etcd in k8s application. If we study it alone, we can better understand some characteristics of k8s. 1, Overview 1.1 introduction to etcd Etcd is an open source project launched by CoreOS team in June 2013. Its goal is to bu ...

Posted by alco19357 on Mon, 29 Jun 2020 12:25:04 +0200

The development of MSF stages is not completely North oriented

Using Golang to develop stagers Last article The development of MSF stages is not completely to the North (1) We talked about how to use c to develop the stagers of msf. In this article, we discussed how to use Golang to achieve the same function Train of thought In Golang, it's important to know how to get the file descriptor of socket. In ...

Posted by pirri on Mon, 29 Jun 2020 11:17:12 +0200

Backup private key for MAC decentralized wallet development

1, Private key   in this lesson, we will continue to register the Token, which is to backup the private key. Each public chain will have a private key, but it is different. There are four private keys in MAC. namely Wallet Key Wallet key is one of the necessary information to open MAC wallet. ...

Posted by doodmon on Mon, 29 Jun 2020 10:36:56 +0200

The meaning of hasQueuedPredecessors method and head node of ReentrantLock class

Part of the inspiration comes from the article Java Concurrent Programming -- Lock PART 1 1. If h==t is true, h and T are both null or the same specific node, and there is no successor node. false is returned.2. If h!=t holds, head.next Whether it is null. If it is null, it returns true. When h!=t and h.next==null?? , may appear the first tim ...

Posted by ram4nd on Mon, 29 Jun 2020 09:57:37 +0200

Simple implementation of gesture Sliding Monitoring in Android, the source of PHP live platform

realization Declaration and creation of gesture monitor The statement is as follows: private GestureDetector detector = null;// Declare a gesture monitor Create the following: // Create a GestureDetector object and override the relevant methods detector = new GestureDetector(this, new GestureDe ...

Posted by shadownet on Mon, 29 Jun 2020 09:45:43 +0200

Self cultivation of the whole stack: 002 using @ vue/cli vue.js Environment construction

<h1>Self cultivation of the whole stack: using @ vue/cli vue.js Environment construction</h1> Success, real success, is being willing to do the things that other people are not. Success, real success, is willing to do what others don't want to do. Table of Contents @[TOC] When you read this article, I think you are interested in h ...

Posted by haddydaddy on Mon, 29 Jun 2020 09:27:29 +0200

Chapter 13: concurrent deadlock and enterprise solutions (deadlock, livelock, starvation)

1. What is a deadlock? What's the harm? 1.1 what is deadlock? Occurs in concurrency [mutually exclusive]: when two (or more) threads (or processes) hold each other's resources required by each other, but do not actively release them, all of them can't move forward, resulting in endless blocking o ...

Posted by ollmorris on Mon, 29 Jun 2020 08:23:19 +0200