Linux Enterprise Operation and maintenance -- haproxy load balancing
1, Introduction to HAProxy
HAProxy provides high availability, load balancing and proxy based on TCP and HTTP applications. It supports virtual hosts. It is a free, fast and reliable solution. HAProxy is especially suitable for web sites with heavy load, which usually need session persistence or seven layer processing. HAProxy runs on the ...
Posted by erikjan on Fri, 24 Sep 2021 16:06:17 +0200
Configuration instructions for nginx static resources
Configuration instructions for nginx static resources
listen instruction
listen: used to configure the listening port.
grammarlisten address[:port] [default_server]...;listen port [default_server]...;defaultlisten *:80 | *:8000positionserver
The setting of listen is flexible. Let's familiarize ourselves with the common setting methods throug ...
Posted by FortMyersDrew on Tue, 21 Sep 2021 19:42:25 +0200
Deploy code to Django-based servers (Tencent Cloud)
Note: This article is my own note, no logic, just for myself
Essential information:
python:3.6.8 Django:2.1.15 _System: Cent OS 7 _Server: Tencent Cloud Django Official Website
One: Some linux commands used
Use django-admin to create a Django project
django-admin startproject mysite
#This mysite is the project name
Start Ser ...
Posted by Atomic Taco on Tue, 21 Sep 2021 18:23:49 +0200
Analysis of Nginx source code -- master process and worker process
1, Explain
In the previous chapter, we had a general understanding of the startup of the nginx process. We didn't go deep into what the process did. In this chapter, we'll look at what the master process is doing.
2, Function analysis
./src/os/unix/ngx_process_cycle.c>ngx_master_process_cycle(ngx_cycle_t *)
ngx_new_bina ...
Posted by caine on Tue, 07 Sep 2021 08:14:06 +0200
Aliyun CentOS7.3 Build LNMP Manually
**
1. Turn off firewalls and selinux
---------------
**
Close Firewall
[root@localhost ~]# systemctl stop firewalld.service
selinux
[root@localhost ~]# vim /etc/sysconfig/selinux
Find SELINUX=enforcing and change enforcing to disabled
[root@localhost ~]# setenforce 0
**
2. Install nginx
---------
**
wget download install ngi ...
Posted by antwown on Sat, 04 Jul 2020 17:42:46 +0200
Separation of dynamic and static state by Nginx+Tomcat
Add group groupadd www
Add user WWW: useradd - G www under www group
Modify configuration file nginx.conf :
user www www;
worker_processes 2;
events{
worker_connections 1024;
}
http{
#Set the default type to binary stream
default_type application/octet-stream;
server_names_hash_bucket_size 128;
#Specify the hea ...
Posted by dheeraj4uuu on Wed, 01 Jul 2020 16:58:12 +0200
nginx adds new modules using hot deployment
brief introduction
When nginx is first compiled and installed, http_ ssl_ The module module is not compiled into the nginx binary file by default. If you need to add SSL certificate. That is to say, use the https protocol. Then you need to add http_ssl_module module. Suppose your nginx installation pa ...
Posted by biopv on Tue, 30 Jun 2020 03:42:35 +0200
Common methods of current limiting in high concurrency system
In the development of high concurrency system, there are four tools to protect the system: diffluence, cache, degradation and flow restriction. Based on the author's experience, this paper introduces the related concepts, algorithms and conventional implementation of current limiting.
Concept interp ...
Posted by plapeyre on Mon, 29 Jun 2020 04:11:04 +0200
Tungsten Fabric solution guide - Kubernetes integration
Author: Tony Liu translator: TF Compilation Group
1 integration of kubernetes and TF
In the integration scheme, there are two connections between Kubernetes and Tungsten Fabric.
Contract Kube manager and Kube API server
Contrail CNI
1.1 contrail-kube-manager
This service connects to the Kube A ...
Posted by dmrn on Tue, 23 Jun 2020 11:09:18 +0200
Common use and configuration of Nginx
summary
What is Nginx?
Nginx (engine x) is a lightweight Web server, reverse proxy server and email (IMAP/POP3) proxy server.
What is reverse proxy?
Reverse Proxy means that the proxy server accepts the connection request on the internet, then forwards the request to the server on the internal netwo ...
Posted by neoboffins on Tue, 23 Jun 2020 06:04:08 +0200