Set up a pseudo cluster + remote connection in Linux (the steps are very detailed)

What is Redis Redis (Remote Dictionary Server) is an open source in-memory data storage system, also known as a cache database. It is widely used to build high-performance, scalable, real-time applications. Redis supports a variety of data structures, such as strings, hashes, lists, sets, ordered sets, etc., and can be used for various purposes, including […]

Netty core principles: 2. Intermediate expansion-08: Netty heartbeat service and disconnection reconnection

Article directory 1. Introduction 2. Code implementation 2.1 Engineering structure 2.2 Netty client 2.2.1 Client Processor 2.2.2 Client channel initialization 2.2.3 Client channel listener 2.2.4 Client 2.3 Netty server 2.3.1 Server-side processor 2.3.2 Server channel initialization 2.3.3 Server 3. Unit testing 1. Introduction When using Netty, it is necessary to monitor whether the service is […]

Solve ERROR oslo_messaging.rpc.server UnixHTTPConnectionPool(host=localhost, port=None) Read timed out

zun.common.exception.ZunException: Unexpected error: UnixHTTPConnectionPool(host=localhost’, port=None): Read timed out. (read timeout=60) 2023-09-13 17:26:08.649 8468 ERROR oslo_messaging.rpc.server [req-6ff62c08-fd25-4df6-8a81-d144956cbbd9 7db25ffff6314194822f5ada52569de5 ce76b778ff0b 453aa7b486f9934f694e default – -] Exception during message handling: zun.common.exception.ZunException: Unexpected error : UnixHTTPConnectionPool(host=’localhost’, port=None): Read timed out. (read timeout=60) 2023-09-13 17:26:08.649 8468 ERROR oslo_messaging.rpc.server Traceback (most recent call last): 2023-09-13 17:26:08.649 8468 ERROR oslo_messaging.rpc.server File “/usr/local/lib/python3.6/site-packages/urllib3/”, line […]

webrtc-m79-webclient-p2p-demo for testing peerconnectionserver

1 Background There are examples of peerconnectionclient and peerconnectionserver in the webrtc code, but there are no corresponding examples on the web side. Here is a simple test example, as follows: 2 Specific operations 2.1 Operation process 2.2 Test effect The test results using webclient and peerconnectionclient are as follows: 3 Front-end code <html> <head> […]

[The differences and connections between profile, bashrc, ~/.bash_profile, ~/.bashrc, ~/.bash_profile in Linux systems and the order of execution]

1. Difference: 1./etc/profile: This file sets environment information for each user of the system. When the user logs in for the first time, this file is executed. And collects shell settings from the configuration file in the /etc/profile.d directory. 2./etc/bashrc: This file is executed for each user running the bash shell. This file is read […]

What are the maximum number of connections and the maximum number of concurrencies in SpringBoot? ? ?

Each Spring Boot version and built-in container are different, and the results are also different. Here we take Spring Boot version 2.7.10 + built-in Tomcat container as an example. Overview The built-in Tomcat version in SpringBoot2.7.10 is 9.0.73. The default settings of SpringBoot’s built-in Tomcat are as follows: Tomcat’s connection waiting queue length, the default […]

MQTT connection optimization guide

Blogger Maotouhu () takes you Go to New World? Blog homepage–Mao Touhu’s blog “Complete Column of Interview Questions” Articles with pictures and textsVivid imagesEasy to learn! Everyone is welcome to step in~ “IDEA Development Cheats Column” Learn the common operations of IDEA and double your work efficiency~ “Master Golang in 100 Days (Basic Introduction)” Learn […]

Analysis of the principle of HikariCP database connection pool in SpringBoot 2.0

As a background service development, we deal with the database every day in our daily work, and we are always performing various CRUD operations, and we all use the database connection pool. According to the development history, the well-known database connection pools in the industry include the following: c3p0, DBCP, Tomcat JDBC Connection Pool, Druid, […]

TCP establishment and disconnection

TCP establishment and disconnection The establishment and disconnection of TCP connections is a common problem encountered in interviews and work. I have recently made up my mind to learn it carefully. The article mainly refers to the “Internet Protocol” course by Mr. Liu Chao from Geek Time (the content is really good, you can learn […]

Druid database connection pool

Article directory Preface What is a druid? Why use a druid? How to use Druid connection pool in Java project? Advantages and Disadvantages of Druid Summarize Foreword Druid is a very popular database connection pool and performance optimization tool. It is used to manage database connections, monitor database performance, and provide connection pool statistics and […]