Using nsq to generate pdf service with puppeter under node (eggjs)

This article mainly introduces how to use nsq in nodeJs, and other implementations will be output in subsequent articles. cause Some time ago, I made a node service to generate pdf from web pages. In the process of generating puppeter and canvas, the consumption of memory is relatively large, the generation time of pages with large internal cap ...

Posted on Thu, 18 Jun 2020 05:38:47 -0400 by John Canyon

Summary of Ultra-Detailed Production-Level Load Balancing Algorithms

Detailed production-level load balancing algorithm Introduction to load balancing Load Balance, the English name for Load Balance, refers to a collection of servers that are symmetrically composed of multiple servers, each of which has an equivalent status and can be served independently without the assistance of other servers.With a load-sh ...

Posted on Mon, 18 May 2020 12:36:53 -0400 by launchcode

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