java current limiting algorithm

preface Due to the limited server resources, it is necessary to limit the speed and number of requests to prevent too many requests from causing the server to crash. Once the number of requests received by the server exceeds the given maximum value or the speed of requests is greater than the processing speed of the server, these requests shou ...

Posted by aks.it on Sun, 28 Nov 2021 05:37:20 -0800

Linux file system and log analysis (more content, take your time)

catalogue 1, Linux file system 1. inode and block overview 1.1 block 1.2 inode (index node) 1.3 inode contains the meta information of the file 1.4 three main time attributes of Linux system files 1.5 when the user opens a file through the file name, the internal process of the system 1.6 method of viewing inode number   1.7 str ...

Posted by lorri on Sat, 27 Nov 2021 20:00:14 -0800

Weekly leetcode - 5/NC17/121/122/123/112/309/714/2/415

leetcode - 5. Longest palindrome substring Give you a string s and find the longest palindrome substring in S. Example 1: Input: s = "babad" Output:"bab" Explanation:"aba" The same answer is in line with the meaning of the question. Example 2: Input: s = "cbbd" Output:"bb" Example 3: Input: s = "a" Output:"a" Example 4: Input: s = "ac" ...

Posted by ripcurlksm on Fri, 26 Nov 2021 12:07:01 -0800

PM2 one click, multiple servers deploy and publish Node.js project at the same time!

1, Usage scenarioWhen deploying and publishing the node.js project, SSH is often used to connect multiple servers respectively. For each server, the latest git pull code should be executed to compile and start the application. The operation is trivial and easy to forget some of them. pm2 can solve this problem. It can be completed automatically ...

Posted by sandthipe on Thu, 25 Nov 2021 19:58:41 -0800

On the use of gray routing in spring cloud

In microservices, for high availability, the same service is often deployed in cluster mode, that is, there are several same services at the same time, and the core of gray level is routing, which calls the target service line through our specific strategy 1 Introduction to gray routing Grayscale publishing (also known as Canary Publ ...

Posted by Lyleyboy on Thu, 25 Nov 2021 13:27:20 -0800

About process control

Process control Create process fork //Create child process pid_t fork(void); //Success: the parent process returns the PID of the child process, and the child process returns 0; Failure: Return - 1, set errno value The parent-child process who preempts the CPU time slice will execute first Global variables cannot be shared between p ...

Posted by kapishi on Wed, 24 Nov 2021 11:54:04 -0800

Chapter 12 Linux startup and kernel management -- CentOS startup management

Chapter 12 Linux startup and kernel management Content overview Startup process for versions prior to CentOS 6Service managementGrub managementStart troubleshootingKernel managementLaunch process of CentOS version 7 and laterUnit introductionService management and viewingStart troubleshootingCrack root passwordRepair Grub2 1.CentOS 6 startup ...

Posted by ebbatten on Mon, 22 Nov 2021 08:19:26 -0800

The 12th class of Guji class Redis distributed lock

The 12th class of Guji class Redis distributed lock Introduction to distributed locks Within the same JVM, we often use synchronized or Lock to solve the security problem between multiple threads. However, in the distributed architecture, between JVMs, a better locking mechanism is needed to deal with the thread security problem between cross ...

Posted by Megahertza on Sun, 21 Nov 2021 20:23:28 -0800

Linux: process replication (fork)

Copy process fork method Basic concepts First, let's look at the fork method: create a child process. The process calling fork function is the parent process, and the newly generated process is the child process. The format is: pid_t fork(void); Return the pid of the child process in the parent process, 0 in the child process, and - ...

Posted by cornelalexa on Sun, 21 Nov 2021 18:22:12 -0800

VFP can also be used as a front-end, cats and cats have gone through countless detours to summarize this entry to BS

Debug Server Usage Open Framework Project File Run Environment Settings.prg Run the debug server to start. Default port is 801, IP is the IP of the development machine Test Debug Server With the debugging server open, you can open the browser (recommended for 360 Speed, Google Browser) input http://192.168.0.99:801/1.fsp Modify IP based o ...

Posted by pleisar on Sun, 21 Nov 2021 09:40:45 -0800