大家好! 现在项目在需要用resty调用GM来动态生成缩略图,现在用os.execute调GM命令做的,这会阻塞nginx,不知道有没有其它的调用方法? 2013-05-13 wgm.china
https://github.com/liseen/ngx-gm-filter这个中不中在 2013年5月13日星期一UTC+8下午5时10分41秒,wgm.china写道: 大家好! 现在项目在需要用resty调用GM来动态生成缩略图,现在用os.execute调GM命令做的,这会阻塞nginx,不知道有没有其它的调用方法? 2013-05-13 wgm.china
https://github.com/liseen/ngx-gm-filter 这个中不中在 2013年5月13日星期一UTC+8下午5时10分41秒,wgm.china写道: 大家好! 现在项目在需要用resty调用GM来动态生成缩略图,现在用os.execute调GM命令做的,这会阻塞nginx,不知道有没有其它的调用方法? 2013-05-13 wgm.china
Hello! 2013/5/13 Andy Chen: > 这个是非阻塞的吗? ^-^ > 对于用时足够短的 CPU 密集型计算,一般不值得通过 OS 线程或者 fork + pipe 等方式进行规避,因为后者开销反而会更高(毕竟整个系统可用的 CPU 资源是一个常数,关键是是否存在浪费)。 Best regards, -agentzh
进展怎么样
谢谢,春哥的解答。 2013-05-15 wgm.china 发件人:agentzh <age...@gmail.com> 发送时间:2013-05-14 02:21 主题:Re: [openresty] Re: 关于lua调GM动态生成缩略图 收件人:"openresty"<openresty@googlegroups.com> 抄送: Hello! 2013/5/13 Andy Chen: > 这个是非阻塞的吗? ^-^ > 对于用时足够短的 CPU 密集型计算,一般不值得通过 OS 线程或者 fork + pipe 等方式进行规避,因为后者开销反而会更高(毕竟整个系统可用的 CPU 资源是一个常数,关键是是否存在浪费)。 Best regards, -agentzh -- -- -- #xA0;
谢谢,春哥的解答。 2013-05-15 wgm.china 发件人:agentzh <age...@gmail.com> 发送时间:2013-05-14 02:21 主题:Re: [openresty] Re: 关于lua调GM动态生成缩略图 收件人:"openresty"<openresty@googlegroups.com> 抄送: Hello! 2013/5/13 Andy Chen: > 这个是非阻塞的吗? ^-^ > 对于用时足够短的 CPU 密集型计算,一般不值得通过 OS 线程或者 fork + pipe 等方式进行规避,因为后者开销反而会更高(毕竟整个系统可用的 CPU 资源是一个常数,关键是是否存在浪费)。 Best regards, -agentzh -- -- -- sp;