[Distributed Lock] 03-Redisson for RedLock principles

Preface You've learned the principles of Redission reentrant locks and fair locks before, and then you'll see how Redission implements RedLock. RedLock principle RedLock is a redis-based distributed lock that guarantees the following features: Mutual exclusion: At any time, only one client can hold a lock; avoid deadlocks: When the clie ...

Posted by Shendemiar on Sat, 27 Jun 2020 02:29:15 +0200

Copy constructor of C + + (copy constructor)

Copy constructor (copy constructor) 1, Copy constructor concept Copy constructor is a special kind of constructor. When creating an object, it uses the previously created object in the same class to initialize the newly created object. Copy constructors are commonly used for: Initialize the newly cr ...

Posted by bnownlater on Fri, 26 Jun 2020 07:54:49 +0200

Source code analysis of working principle of nacos Distributed Configuration Center

nacos Distributed Configuration Center Personal Alibaba nacos Renovation Project: alibaba_nacos 1. Service Startup Configuration Loading Source: NacosPropertySourceLocator Workflow: Nacos customizes the PropertySourceLocator to get data from the configuration center at service startup, then add and re-run the local environment to load the confi ...

Posted by CanMan2004 on Thu, 25 Jun 2020 20:02:40 +0200

Docker 2020 detailed tutorial and summary

Super long warning!!! It is recommended to look at the catalogue first Introduction to docker and related cases It's not easy to summarize. If you agree, please like it~ If there is any mistake, please correct it! Docker directory Document introduction Docker overview Why does Docker appear? Docker ...

Posted by tron00 on Thu, 25 Jun 2020 05:47:30 +0200

LeNet-5 migration case of convolution neural network

Abstract: LeNet-5 is a convolutional neural network designed by Yann LeCun in 1998 for handwritten digit recognition. Most American banks used it to recognize handwritten digits on cheques. It is one of the most representative experimental systems in the early convolutional neural network. It can be said that LeNet-5 is equivalent to "H ...

Posted by lauriedunsire on Wed, 24 Jun 2020 05:54:39 +0200

Sping boot integrated rocketmq multi consumer

1, rocketmq installation Installation media Download Download address: http://rocketmq.apache.org/release_notes/release-notes-4.7.0/Download binary installation package Upload to the server for decompression Start command: cd /usr/local/rocketmq/ # 1. Start mqnamesrv first #Start command nohup sh b ...

Posted by jocknerd on Wed, 24 Jun 2020 04:34:39 +0200

k8s uses Nodeport to expose services

k8s uses Nodeport to expose services There are many ways to expose K8s services. Here we mainly study how to expose services through Nodeport First of all, we must understand several concepts before exposing ports: *< 1 >. Server: it is a cluster instance entry composed of accessing backend pod replicas. It consists of: ` [cluster_ip] ` ...

Posted by mrpickleman on Wed, 24 Jun 2020 04:03:57 +0200

Tungsten Fabric solution guide - Kubernetes integration

Author: Tony Liu translator: TF Compilation Group 1 integration of kubernetes and TF In the integration scheme, there are two connections between Kubernetes and Tungsten Fabric. Contract Kube manager and Kube API server Contrail CNI 1.1 contrail-kube-manager This service connects to the Kube A ...

Posted by dmrn on Tue, 23 Jun 2020 11:09:18 +0200

NetCat (nc command) for Linux command learning

brief introduction NetCat, known as "Swiss Army Knife" in network tools, is short and practical (1.84 version is no more than 25k, old version or reduced version or even smaller), and is designed as a simple and reliable network tool, which can transmit read and write data through TCP or UDP ...

Posted by sargenle on Mon, 22 Jun 2020 09:48:38 +0200

OKHttp quick start

OKHttp quick start OKHttp quick start Synchronization request get Asynchronous request get post Set request header Download File encapsulation Interceptor Application interceptor Network connector OKHttp quick start Official website: https://square.github.io/okhttp/ Code warehouse: https:/ ...

Posted by Lodius2000 on Mon, 22 Jun 2020 09:31:27 +0200