Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A brief understanding of tengine

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Tengine is a Web server project initiated by Taobao. On the basis of Nginx, it adds a lot of advanced functions and features to meet the needs of high-volume websites. The ultimate goal is to create an efficient, stable, secure and easy-to-use Web platform.

1. Basic HTTP server features

1. Handle static files, index files, and automatic indexing; turn on file descriptor caching

two。 Use caching to accelerate reverse proxies; simple load balancing and fault tolerance

3. Remote FastCGI,uwsgi,SCGI, and cache acceleration support for memcached services; simple load balancing and fault tolerance

4. Modular architecture. Filters include gzip compression, ranges support, chunked response, XSLT,SSI, and image scaling. In a SSI filter, a page containing multiple SSI can be processed in parallel if processed by FastCGI or reverse proxy

5. SSL,TLS SNI is supported.

The proxy server generally refers to the server that the machine in the local area network sends the request to the Internet through the proxy server, and the proxy server generally acts on the client.

The reverse proxy server acts on the server side, it receives the request from the client on the server side, then distributes the request to the specific server for processing, and then feeds back the corresponding results of the server to the client.

1. Web server: provides access to Http

2. Application server: can be used to run applications

3. Proxy server: proxy server is usually a behavior of client access

4. Reverse proxy: distribute the request and work on the server side

5. Backend server: name method

6. CDN cache server: CDN is a content distribution network built on the network. Relying on the edge servers deployed everywhere, through the load balancing, content distribution, scheduling and other functional modules of the central platform, users can get the content they need nearby, reduce network congestion, and improve user access response speed and hit rate. The key technologies of CDN are content storage and distribution technology. The basic principle of CDN is that all kinds of cache servers are widely used, and these cache servers are distributed to the areas or networks where users are relatively concentrated. When users visit the website, the global load technology is used to direct the user's access to the nearest working cache server, and the cache server directly responds to the user's request.

During the development of the project, Nginx and Tomcat are mainly used to build a high-performance load balancing cluster, even if the reverse proxy function of Nginx is used to distribute requests.

Features of Tengine:

1. Inherits all the features of Nginx-1.4.7 and is 100% compatible with Nginx configuration

two。 Dynamic module loading (DSO) support. Adding a module eliminates the need to recompile the entire Tengine

3. Supports SPDY v3 protocol and automatically detects SPDY and HTTP requests on the same port

4. Stream upload to HTTP backend server or FastCGI server to greatly reduce the pressure on the machine.

5. More powerful load balancing capabilities, including consistency hash module and session persistence module. It can also actively check the health of the back-end server and automatically go online and offline according to the server status.

6. Input filter mechanism support. It is more convenient to write Web application firewall by using this mechanism.

7. Support setting the number of retries of proxy, memcached, fastcgi, scgi, and uwsgi when the backend fails

8. Dynamic scripting language Lua support. The extension is very efficient and simple.

9. Support for pipe and syslog (local and remote) logs and log sampling

10. Support to collect Tengine running status by specified keywords (domain name, url, etc.)

11. An access request that combines multiple CSS and JavaScript files into a single request

twelve。 Automatically remove white space characters and comments to reduce the size of the page

13. Automatically set the number of processes and binding CPU affinity according to the number of CPU

14. Monitor the load and resource consumption of the system to protect the system

15. Display error messages that are more friendly to operators, making it easy to locate error machines

16. More powerful defense (access speed limit) module

17. More convenient command line parameters, such as listing compiled modules, supported instructions, etc.

18. You can set the expiration time according to the type of access file

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report