多用户请求且单用户执行任务时间较长得场景,看了lua-resty-http的代码,用到了协程,但是协程同一时刻只能允许一个在执行,是不是这是导致不稳定的本质?
|
陈伟 Chen Wei
多媒体业务产品部
|
| 云计算及IT产品经营部
|
Cloud Computing &
IT Product Operation
|
1/F, Building No. 3, ZTE
Corporation, Yuhuatai District, ,
Nanjing, P.R.China, 210012
Mobile: +86-18913979100
Email: chen...@zte.com.cn
More Information: VAS
、Cloud |
|
发件人:
chen...@zte.com.cn
收件人:
openresty@googlegroups.com,
日期:
2015/12/09
08:33
主题:
[probably forge
email可能是仿冒邮件]答复: Re: [openresty] 请教 openresty +proxy_pss
+ srcache + redis
发件人:
openresty@googlegroups.com
lua-resty-http测试似乎只适合小文件,如果文件超过300M,会概率出现程序挂死。
|
陈伟 Chen Wei
多媒体业务产品部
|
| 云计算及IT产品经营部
|
Cloud Computing &
IT Product Operation
|
1/F, Building No. 3, ZTE
Corporation, Yuhuatai District, ,
Nanjing, P.R.China, 210012
Mobile: +86-18913979100
Email: chen...@zte.com.cn
More Information: VAS
、Cloud |
|
发件人: YuanSheng
Wang <yuan...@iresty.org>
收件人: openresty@googlegroups.com,
日期: 2015/12/08
18:33
主题: Re:
[openresty] 请教 openresty +proxy_pss + srcache + redis
发件人: openresty@googlegroups.com
使用 resty-**** 代码劫持 一下 proxy_pass 返回内容,在
lua 中解压缩,然后调用 resty-redis 的方式完成 redis 的写入。
相对的,resty-*** 将会获得更大的自由度,尤其是内部有比较复杂的业务逻辑。
> proxy_pass 指向内部网站, 内部网站返回的内容是gzip过的
这里可以添加 HTTP 头指名不允许 gzip 压缩。
2015-12-08 14:12 GMT+08:00 Bill Liao <b...@ncix.com>:
用openresty做反向代理 , proxy_pass 指向内部网站, 内部网站返回的内容是gzip过的,
但是redis 里面的内容是ungzip的, 我想直接把gzip的内容直接存入redis,
问题可能出在
redis2_query set $key
$echo_request_body;
$echo_request_body可能是已经ungzip过了, 请教怎么直接拿到gzip的内容
--
size=3>
--
Membhis
My github: https://github.com/membphis
Our Book: OpenResty
Best Practices
--
size=3>
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail
(and any attachment transmitted herewith) is privileged and confidential
and is intended for the exclusive use of the addressee(s). If you
are not an intended recipient, any disclosure, reproduction, distribution
or other dissemination or use of the information contained is strictly
prohibited. If you have received this mail in error, please delete
it and notify us immediately.
--
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.