nginx tcp load balancing, replacing alicloud slb

We know that nginx was only used for http load balancing, while TCP and UDP used lvs or haproxy for load balancing, but both of them need to be bound with logical addresses. So the problem is that public virtual machine cannot be bound with logical addresses, so we can only use SLB provided by alicloud, so there will be two problems. 1. Spend ...

Posted on Sat, 28 Mar 2020 12:59:44 -0400 by yumico23

[Original] Linux Process Scheduler-CFS Scheduler

background Read the fucking source code!--By Luxun A picture is worth a thousand words. --By Golgi Explain: Kernel version: 4.14 ARM64 Processor, Contex-A53, Dual Core Use Tools: Source Insight 3.5, Visio 1. Overview Completely Fair Scheduler, a fully fair scheduler, is used to schedule ordinary processes in Linux systems. CFS uses a r ...

Posted on Sat, 14 Mar 2020 13:05:24 -0400 by socadmin

22 partition redistribution

When a node in the cluster suddenly goes down, if the partition on the node is a single replica, then these partitions will become unavailable; if it is a multi replica, then the leader replica on this node will change to the corresponding follower replica. In a word, if the node goes down, the partitio ...

Posted on Wed, 26 Feb 2020 06:03:32 -0500 by mazman13

#IT star is not a dream; affinity polling of distributed load balancing algorithm

No matter in the early load balancer or in the current client based load balancing of microservices, there is a basic polling algorithm, that is, requests are evenly distributed to multiple machines. Today, I will talk about how kube proxy implements the core data structure of affinity polling. I will learn about the implementation of affinity ...

Posted on Fri, 14 Feb 2020 06:39:57 -0500 by EddieFoyJr

Open source project SMSS Development Guide -- thread pool based on libevent

Libevent is a set of lightweight network library, which is based on event driven development. It can realize multi-threaded multiplexing and register event response. This article introduces the basic functions of libevent and how to develop a thread pool with libevent. 1, Use guide Listen for service and register connection events Libevent is a ...

Posted on Sat, 11 Jan 2020 03:11:24 -0500 by tendrousbeastie

Source code analysis Dubbo load algorithm

Dubbo supports load balancing algorithm for service providers in service callers. The LoadBalance interface is defined as follows: @SPI(RandomLoadBalance.NAME) public interface LoadBalance { /** * select one invoker in list. * * @param invokers invokers. * @param url refer url * @param invocation invocation. * @return selected in ...

Posted on Wed, 08 Jan 2020 07:01:44 -0500 by roneill

Learn to record Internet Projects - -- 4(Hystrix fuser, Feign remote call, feign integrated hystrix,ribbon)

4.Hystrix Fuse 4.1 Introduction Hystrix is an open source delay and fault tolerant library for Netflix that isolates access to remote services and third-party libraries to prevent cascading failures. Call alternatives when access times out 4.2 Getting started with Hystrix Step 1: Import pom dependencies Step 2: Turn on the Hystrix m ...

Posted on Thu, 12 Dec 2019 19:53:10 -0500 by seb hughes

Understanding Consistent Hash

This article starts with vivo Internet technology WeChat public. Links: https://mp.weixin.qq.com/s/LGLqEOlGExKob8xEXXWckQ Author: Qian Xingchuan In the distributed environment, we often define the data distribution through certain rules. The modulus algorithm and Consistent Hash described in this paper generate a key through certain rules ...

Posted on Mon, 25 Nov 2019 01:53:43 -0500 by Edgewalker81

nginx based on http load balancing

concept Function: improve throughput, request performance and disaster recovery Load balancing is divided into four layers: ip+tcp port; seven layers: http layer, such as scheduling according to host address Implementation principle: nginx uses the core configuration of proxy pass proxy module to realize load balancing, and ...

Posted on Wed, 20 Nov 2019 15:32:55 -0500 by jakebrewer1

Cluster, Load Balancing, Fault Tolerance, Routing Resolution in Dubbo

Links to the original text Cluster in Dubbo can disguise multiple service providers as one provider, that is, to disguise multiple Invokers in Directory as an Invoker, which includes fault tolerant processing, load balancing processing and routing processing. This article introduces the cluster related things. First, it explains the concepts of ...

Posted on Mon, 15 Jul 2019 16:39:23 -0400 by techrat