当前位置:网站首页>Openresty best practices
Openresty best practices
2022-07-03 06:09:00 【vincentwc】
openresty command
start-up
./nginx
stop it
./nginx -s stop
restart
./nginx -s reload
Check
./nginx -t
OpenResty Best practices
- Nginx The maximum number of concurrent connections supported depends on memory ,10W Far from being capped
- Low memory consumption ,1000 An inactive http keep-alive Connected to the Nginx It only consumes 2.5M Memory , This is a Nginx Support the foundation of high concurrency
- Nginx High reliability comes from the excellent design of its core framework code 、 Simplicity of module design , And these modules are very stable
- High scalability
- Thermal deployment ,master Management process and worker Work process separation design , Yes Nginx It has the possibility of hot deployment , Can be found in 7*24 Under the premise of uninterrupted service , upgrade Nginx The executable of . You can also modify the configuration file without stopping the service , Change log file and other functions
- The freedom of the BSD license agreement , Not only allow users to use it for free Nginx, Users are also allowed to modify Nginx Source code , It also allows users to use it for commercial purposes
tls When shaking hands ,ssl_certificate_by_lua Which message works 【 Conventional tcp】?
The kernel passes through epoll_wait notice nginx Of worker process … Do certificate verification control
next upstream
nginx Module and cosocket【 coroutines 】
- Network events trigger
- The timer event triggers
from http Cache view process architecture
Interprocess communication
The signal
socket pair
Shared memory
spinlocks
master process
monitor worker process
management worker process
Received signal
term,tnt
quit
hup
usr1
usr2
winch
slab Memory management mechanism
http3 Connection migration
边栏推荐
- 【系统设计】邻近服务
- [teacher Zhao Yuqiang] MySQL high availability architecture: MHA
- Alibaba cloud OOS file upload
- Cesium entity(entities) 实体删除方法
- Leetcode solution - 02 Add Two Numbers
- [teacher Zhao Yuqiang] index in mongodb (Part 2)
- Oauth2.0 - user defined mode authorization - SMS verification code login
- Maximum likelihood estimation, divergence, cross entropy
- Exportation et importation de tables de bibliothèque avec binaires MySQL
- Zhiniu stock -- 03
猜你喜欢
[Zhao Yuqiang] deploy kubernetes cluster with binary package
pytorch DataLoader实现miniBatch(未完成)
Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
Project summary --2 (basic use of jsup)
Project summary --04
[teacher Zhao Yuqiang] the most detailed introduction to PostgreSQL architecture in history
Kubesphere - build Nacos cluster
Kubesphere - Multi tenant management
arcgis创建postgre企业级数据库
ThreadLocal的简单理解
随机推荐
Kubernetes notes (VII) kuberetes scheduling
When PHP uses env to obtain file parameters, it gets strings
How to create your own repository for software packages on Debian
Loss function in pytorch multi classification
Redhat7 system root user password cracking
Cesium entity(entities) 实体删除方法
Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
Use telnet to check whether the port corresponding to the IP is open
Oauth2.0 - using JWT to replace token and JWT content enhancement
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
Analysis of Clickhouse mergetree principle
Bio, NiO, AIO details
Btrfs and ext4 - features, strengths and weaknesses
Zhiniu stock project -- 05
Oauth2.0 - Introduction and use and explanation of authorization code mode
从小数据量分库分表 MySQL 合并迁移数据到 TiDB
If function of MySQL
项目总结--2(Jsoup的基本使用)
ThreadLocal的简单理解
卷积神经网络CNN中的卷积操作详解