A note on the problem of non aware updating program of nginx+tomcat cluster users

Before, nginx+tomcat cluster configuration was a simple polling mechanism upstream servers{ #server 172.25.67.29:9091 weight=1 max_fails=1 fail_timeout=50; server 172.25.67.29:9091; server 172.25.67.27:9091; server 172.25.67.27:8380; } As shown above. In this way, it's OK to restart one of the t ...

Posted by w.geoghegan on Mon, 04 May 2020 19:49:02 -0700

Talk about maxwell's MysqlPositionStore

order This paper mainly studies MysqlPositionStore of maxwell MysqlPositionStore maxwell-1.25.1/src/main/java/com/zendesk/maxwell/schema/MysqlPositionStore.java public class MysqlPositionStore { static final Logger LOGGER = LoggerFactory.getLogger(MysqlPositionStore.class); private static final Long DEFAULT_GTID_SERVER_ID = new Long(0); priv ...

Posted by pcjeffmac on Mon, 04 May 2020 19:38:25 -0700

Web static server

Web static server Programming micro Web static server-1-display fixed page #coding=utf-8 import socket def handle_client(client_socket): "Serving a client" recv_data = client_socket.recv(1024).decode("utf-8") request_header_lines = recv_data.splitlines() for line in request_header_lines: print(line) # Organize corr ...

Posted by magaly on Mon, 04 May 2020 18:50:22 -0700

Codeforce 915e (dynamic open point of line tree)

Link: Click to open the link Alex graduated from high school. He is now a freshman. Although he studied programming, he still had to take physical education, which was a complete surprise to him. It's almost the end of the term, but unfortunately Alex's PE credits are still zero! Alex doesn't want to be fired. He wants to know how many workin ...

Posted by farkewie on Mon, 04 May 2020 11:45:06 -0700

How Spring AOP generates proxy objects

The framework is to leave the complex to itself, the simple to coden, as simple as writing hello world When developing Spring AOP programs in the early years, aop was configured with xml files (now xml is not popular, annotation @ EnableAspectJAutoProxy is popular), and then framework parsing, For example: How is this configuration reso ...

Posted by slaeya on Mon, 04 May 2020 09:55:18 -0700

Summary of hook function in PHP

Hook explanation Hook definition Hook is a common concept in programming, which is very important. It makes the system very easy to expand (without understanding its internal implementation mechanism, which can reduce a lot of work). It can be understood that when a glass ball falls from the air and is about to hit a person, an event will h ...

Posted by Rusnoff on Mon, 04 May 2020 07:00:59 -0700

Java multithreading overview

Thread overview Almost all operating systems support running multiple tasks at the same time. A task is usually a program, and each running program is a process. When a program is running, it may contain multiple sequential execution flows, each of which is a thread. Threads and processes         Almost all operating sys ...

Posted by jackliu97 on Mon, 04 May 2020 04:23:08 -0700

Depth first traversal and breadth first traversal of Graphs

In recent days, the examination of reviewing data structure is also a process of checking the defects and making up the omissions, so write down the handwritten code. In addition, the problem that it's better not to duplicate the name of the actual participating parameter in c/c + + class has puzzled and drunk for a lon ...

Posted by Fakcon on Mon, 04 May 2020 03:05:09 -0700

Common commands for troubleshooting online problems

Memory bottleneck free free is to view memory usage, including physical memory, swap memory, and kernel buffer memory. Free-h-s 3 represents the output of memory every three seconds with the following commands [1014154@cc69dd4c5-4tdb5 ~]$ free total used free shared buff/cache available Mem: 119623656 ...

Posted by jdavidbakr on Mon, 04 May 2020 01:08:35 -0700

A tutorial of using JAX-RS client WebClient

JAX-RS client programming – > There are two ways: ① Using the http client tool, we need to customize and parse the HTTP protocol ② This article focuses on the use of WebClient tool class (Brought by CXF) to explain RS client programming. Using RS WebClient requires importing coordinates in pom.xml file & ...

Posted by vineld on Sun, 03 May 2020 21:16:32 -0700