Talking about Keepalived Double-machine Hot-up

1. Basic knowledge of Keepalived dual-machine warm-up Official keepalived website: www.keepalived.org/ Ke keepalived can also be used as a hot standby software in non-LVS environments. 1. Keepalived role Kekeepalived was originally designed as a powerful assistive tool for LVS, primarily to provide failover and health check functions - to dete ...

Posted by 2levelsabove on Tue, 10 Dec 2019 22:17:26 -0800

JavaEE Foundation (02):Servlet Core API Usage Detailed

Source code for this article: GitHub. Click here || GitEE. Click here 1. Introduction to Core API s 1. Servlet Execution Process Servlet is one of the three components of JavaWeb (Servlet, Filter, Listener), which is a dynamic resource.Servlets are used to process requests, and the server hands the received requests to the Servlet for process ...

Posted by Zemnon on Tue, 10 Dec 2019 17:01:02 -0800

How to use Intent in Android to pass class objects

There are two ways to pass objects with Intent: Serializable and Parcelable. 1 Serializable mode Suppose there is an Account class of POJO, which implements the Serializable interface: public class Account implements Serializable { //Full name private String name; //Password private String pwd; public ...

Posted by wayz1229 on Tue, 10 Dec 2019 15:18:42 -0800

Spring Cloud Article 4 | Client Load Balancing Ribbon

​ This is the fourth article in the Spring Cloud column. Understanding the first three articles will help you better understand this article: First Spring Cloud | An overview of the Spring Cloud preamble and its common components Spring Cloud Part 2 | Use and Know the Eureka Registry Spring Cloud Article 3 | Build a highly available Eurek ...

Posted by kylebuttress on Tue, 10 Dec 2019 13:09:09 -0800

Boost.Asio source reading: services and asynchronous operations

Based on Boost 1.69, this article cuts out some deprecated or different configured code blocks that are not related to the topic of this article when displaying the source code. Service type resolving service socket/file operation timer ... service resolution Here, take the reactive socket service that provides services around reactor as an e ...

Posted by phpforever on Tue, 10 Dec 2019 11:49:23 -0800

Common operations of docker swarm

1. description This document is for docker swarm operations. The system for is a local test system. The machine information is as follows, 172.16.1.13 is the manager of docker swarm.   Machine list information for local test: host name Simulated extranet Intranet IP To deploy a module mini01 10.0.0.11 172.16.1.11 tomcat [swar ...

Posted by ryanschefke on Tue, 10 Dec 2019 11:09:12 -0800

How to build a Web cluster using Haproxy

Common Web Cluster Schedulers At present, the common Web cluster scheduler is divided into software and hardware. Software usually uses open source LVS, Haproxy, Nginx. Hardware usually uses F5 more. Many people also use some domestic products, such as pike, green league, and so on. Haproxy application analysis LVS has a strong anti-load capab ...

Posted by Niel Roos on Tue, 10 Dec 2019 09:25:56 -0800

python crawler -- multitask asynchronous process, hurry up, hurry up

Multitask asynchronous process asyncio Special functions: -Is the definition of a function modified by async keyword -Special points: -When a special function is called, it returns a co program object -The internal program statement is not executed immediately after a special function call - Association - ob ...

Posted by skaforey on Mon, 09 Dec 2019 19:16:32 -0800

A comparative analysis of golang socket and Linux socket

After posix standard was introduced, socket has been well supported on all major OS platforms. Golang is a cross platform programming language with runtime. The socket API provided to developers in Go is based on the native socket interface of the operating system. But the behavior of socket interface in golang is different from that of native ...

Posted by art15 on Mon, 09 Dec 2019 18:41:31 -0800

[template] minimum cost and maximum flow

Title Description For example, give a network diagram, its source point and sink point, each edge has known its maximum flow and unit flow cost, and find out its maximum flow and minimum cost in the case of maximum flow. I / O format Input format:   The first row contains four positive integers N, M, S, and T, which respec ...

Posted by Mistah Roth on Mon, 09 Dec 2019 18:31:52 -0800