码迷,mamicode.com
首页 >  
搜索关键字:upstream    ( 928个结果
Nginx 中的 upstream 与 subrequest 机制
Nginx 提供了两种全异步方式与第三方服务进行通信:upstream 和 subrequest。upstream 在与第三方服务器交互时(包括建立 TCP 连接、发送请求、接收响应、关闭 TCP 连接),不会阻塞 Nginx 进程处理其他请求。subrequest 只是分解复杂请求的一种设计模式,它可以把原始请求分解为多个子请求,使得诸多请求协同完成一个用户请求,并且每个请求只关注一个功能。subrequest 访问第三方服务最终也是基于 upstream 实现的。 upstream 被定...
分类:其他好文   时间:2015-01-14 21:26:09    阅读次数:272
Linux Runtime PM介绍
一、Runtime PM引言 1. 背景 (1)display的需求 (2)系统整机动态功耗优化的需求 (3)upstream 2. 解决方案 (1)引入debounce (2)使用统一的workqueue来管理任务 (3)实时地关闭不需要工作的device (4)当device作为parent时,所有的child不工作时,关闭该device (5)引入pm_rutim...
分类:系统相关   时间:2015-01-13 17:46:09    阅读次数:513
nginx反向代理,动静态请求分离,以及nginx缓存应用,以及使用ngx_cache_purge清除指定URL
一,nginx反向代理配置        #tomcat Java代码      upstream tomcat_server{   server 127.0.0.1:8080;        }            erver{   listen 80;   server_name www.wolfdream.com;      lo...
分类:Web程序   时间:2015-01-12 19:18:43    阅读次数:408
nginx upstream轮询配置
nginx upstream nginx的upstream官方地址为:http://nginx.org/cn/docs/http/ngx_http_upstream_module.html 轮询分为多种,分为普通轮询(一个接一个的进行访问,即按加权轮转的方式将请求分发到各服务器),ip_hash.....
分类:其他好文   时间:2015-01-12 00:22:57    阅读次数:173
解析Nginx配置文件
Nginx安装完毕后,会产生相应的安装目录,根据前面的安装路径,Nginx的配置文件路径为/opt/nginx/conf,其中nginx.conf为Nginx的主配置文件。这里重点介绍下nginx.conf这个配置文件。          Nginx配置文件主要分成四部分:main(全局设置)、server(主机设置)、upstream(负载均衡服务器设置)和 location(URL匹配特定位...
分类:其他好文   时间:2015-01-08 13:25:48    阅读次数:128
Nginx反向代理、缓存、 负载均衡、upstream以及fastcgi模块应用
Nginx反向代理,缓存,负载均衡,upstream及fastcgi模块应用Nginx版本为nginx-1.6.2-1.el6.ngx.x86_64.rpm可以去官网下载:http://nginx.org/packages/centos/6/x86_64/RPMS/[root@node1~]#rpm-ivhnginx-1.6.2-1.el6.ngx.x86_64.rpm[root@node2~]#vim/var/www/html/index.html[root..
分类:其他好文   时间:2015-01-08 07:16:46    阅读次数:809
常用服务器软件nginx、jvm、centOS网络环境等配置
nginx配置说明 典型nginx配置文件请参考文件说明。这里只解释nginx负载均衡功能实现。 1、轮询(默认) 每个请求按时间顺序逐一分配到不同的后端服务器,如果后端服务器down掉,能自动剔除。 2、weight 指定轮询几率,weight和访问比率成正比,用于后端服务器性能不均的情况。 例如: upstream bakend{ server192.168.159.10 ...
分类:其他好文   时间:2015-01-06 17:58:06    阅读次数:229
nginx proxy超时报错 upstream timed out (110: Connec...
环境介绍服务器:centos6.4服务:nginx proxy问题描述:然后查找/opt/usr/nginx/1.4.0/logs 错误 error.log日志提示如下2015/01/04 15:44:13 [error] 10112#0: *994662 upstream timed out (1...
分类:其他好文   时间:2015-01-04 18:53:40    阅读次数:202
nginx connect() failed (111: Connection refused) while connecting to upstream,请求无响应错误
2015/01/02 16:01:36 [error] 29002#0: *714153 connect() failed (111: Connection refused) while connecting to upstream, client: 172.16.3.32, server: biz...
分类:其他好文   时间:2015-01-02 17:30:02    阅读次数:2558
nginx demo
server_names_hash_bucket_size 512;upstream node_app { server 127.0.0.1:3000; }server { listen 80; server_name www.abc.n...
分类:其他好文   时间:2015-01-01 18:31:56    阅读次数:174
928条   上一页 1 ... 85 86 87 88 89 ... 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!