Using TMPFS to speed up websites

Preparation 1. Backup the nginx root directory 2. View system version $ cat /etc/issue Ubuntu 18.04.4 LTS \n \l step 1. Create a directory, such as / ramdisk, and then use the tmpfs command to mount part of the memory as a hard disk mount -t tmpfs -o size=256M tmpfs /ramdisk Here, I mount the maxi ...

Posted by eideticmnemonic on Thu, 27 Feb 2020 18:23:27 -0800

Docker - building rabbitmq cluster

Article directory Docker - building rabbitmq cluster 1. First, pull the image of rabbitmq 2. Then run three instances of rabbitmq 3. Then we build the cluster and synchronize the time zone 4. How to delete a container 5. Open the firewall or port controller for port release and check the operation s ...

Posted by gabe33 on Thu, 27 Feb 2020 01:17:07 -0800

Getting Started with Ribbon Load Balancing in SpringCloud

Load balancing using Ribbon Before using Ribbon, let's think about a previous question. We registered our service provider with the eureka registry, but on the consumer side, when we still used the restTemplate call, did it write something inappropriate like http://localhost:8001?Does the application use the service name to make calls like dubb ...

Posted by xterra on Wed, 26 Feb 2020 10:46:58 -0800

nginx source code analysis: http request processing flow -- 11 stages of request processing

nginx divides the processing of http requests into 11 stages. Each stage has different functions. Some built-in modules implement their functions in different stages. These stages are defined as the following enumeration types: typedef enum { NGX_HTTP_POST_READ_PHASE = 0, NGX_HTTP_SERVER_REWRIT ...

Posted by martinchristov on Wed, 26 Feb 2020 03:41:14 -0800

Using docker to build php-fpm+nginx environment

On the server, docker can help us quickly set up the lnmp running environment, and any operation in the container has no effect on the host.This paper uses docker to create multiple containers (mysql,php-fpm,nginx) to set up lnmp running environment. Since the three containers are for communication, co ...

Posted by nick2005 on Tue, 25 Feb 2020 17:09:02 -0800

Jenkins to bring html code online and rollback

1. Case EnvironmentII. Deployment of Gitlab1) Deploy Gitlab2) Configure Secret-Free Login3) Test Secret Login3. Deployment of Jenkins4. Jenkins Integrated GitlabV. Deployment of Nginx6. Jenkins Implement Code Automatically Online7. Jenkins implements automatic code deployment, fallback and duplicate construction 1. Case Environment system ...

Posted by david-remone123 on Tue, 25 Feb 2020 08:29:14 -0800

CentOS 7 deployment million pv projects (high availability Architecture)

PV introduction PV (Page View) is the number of clicks. Generally speaking, PV is the main indicator to measure a network news channel or website or even a network news. PV's explanation is as follows: a visitor looks at several pages of the website in 24 hours (0:00-23:00). It should be noted that the same person browsing the same page of th ...

Posted by mars16 on Tue, 25 Feb 2020 02:44:51 -0800

k8s secret

secret is used to store sensitive information, such as passwords or tokens. Create with file [kubeadm@server1 secret]$ echo -n "admin" > username.txt ##Create user information [kubeadm@server1 secret]$ echo -n "aekhg777" > password.txt ##Create user password file [kubeadm@server1 secret]$ kubectl ...

Posted by rivasivan on Mon, 24 Feb 2020 23:34:29 -0800

Spring Cloud - Load Balancing Ribbon and Remote Call Feign principles and examples

Previous: Principle and Example of Spring Cloud-Eureka Registration Center Official website: https://cloud.spring.io/spring-cloud-static/spring-cloud-netflix/2.2.1.RELEASE/reference/html/#spring-cloud-ribbon In the front-end and back-end separation architecture, the service layer is divided into a numbe ...

Posted by cbcampbell on Mon, 24 Feb 2020 19:04:49 -0800

nginx http module configuration merge

When configuring the nginx.conf file, it is easy to see that some of the configuration items can be configured in either an http block, a server block, or a location block.But not all configuration items can be configured anywhere. Depending on the role they play, nginx defines where each configuration block can be used.Since a configuration it ...

Posted by meburke on Mon, 24 Feb 2020 17:51:36 -0800