Upload
others
View
12
Download
0
Embed Size (px)
Citation preview
OpenResty
“ "
• Visual Studio C++
•
• APP(IOS)
• Win
• Linux
2014
OpenResty
and
• 100K QPS
• 2014 : 38 100
• 1
• 100 /38/60=4385K/100K=43.8
•
•
-•
• 100K QPS
• SQL
• KV
• Redis HandleSocket Memcached SSDB
•
C1K -> C10K -> C10MC1K ASP FastCGI Php Python JAVA
C10K Nginx-Lua(OpenResty) Golang Node.js Python(AIO) JAVA Netty Rust
C10K C100K C1MOpenResty
C10M DPDKAPI
OpenResty
Nginx+LuaJIT
Web Server
NginxNginx Igor Sysoev
• F5
• F5
•
• linux epoll windows: select freebsd: kqueue
• Windows iocp
ngx c module
LuaJIT• Lua
• C
• cache
• Lua 5.1
• FFI C CPU API win/ linux
• Mike Pall
OpenResty
• Github Nginx(Tengine)
• API Server WinCentos Ubuntu
• 100% NONBLOCK
• API Nginx +PHP
• c module: ngx_redis2 5000
• lua: resty-redis 460
OpenResty• C Level IPC
•
• bug
• API
• Mac OS X winLinux+Docker
• Win2003 / Vista / Win7 / Win8 / Win2008 / Win2012 / centos 6.* 7.* /Ubuntu 14.* /Redhat/SUSE
• beta 5 CPU 8GBDocker CPU 8% QPS
3-5 Docker CPU 100%
•
HTTP 2.0 HTTP 2.0
• WAF reload
• nginx-lua-tcp-server
• jsonrpc memcached just for fun
• OpenRestyOpenResty
• wiki
•
•