摘要: 粘贴一段百度对gearman的解释: Gearman是一个用来把工作委派给其他机器、分布式的调用更适合做某项工作的机器、并发的做某项工作在多个调用间做负载均衡、或用来在调用其它语言的函数的系统。 lua-resty-gearman模块用于在lua中调用gearman github地址 https:/ 阅读全文
posted @ 2017-11-01 14:39 大明湖畔的守望者 阅读(608) 评论(0) 推荐(0) 编辑
摘要: function printTableItem(k, v, level) for i = 1, level do io.write(" ") end io.write(tostring(k), " = ", tostring(v), "\n") if type(v) == "table" then if not tablePr... 阅读全文
posted @ 2017-11-01 13:59 大明湖畔的守望者 阅读(949) 评论(0) 推荐(0) 编辑
摘要: 连接redis集群需要用到llua-resty-redis-cluster模块 github地址:https://github.com/cuiweixie/lua-resty-redis-cluster 下载完成后,只需要用到包中2个文件rediscluster.lua和redis_slot.c . 阅读全文
posted @ 2017-11-01 13:44 大明湖畔的守望者 阅读(10761) 评论(4) 推荐(1) 编辑
摘要: 针对我在编译在两个模块的过程中遇到的一系列问题,特此记录编译流程的一些细节 1、下载 install git git clone https://github.com/weibocom/nginx-upsync-module.git git clone https://github.com/xiao 阅读全文
posted @ 2017-11-01 10:36 大明湖畔的守望者 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: 1、概述 1.1 介绍 consul是一个服务发现和配置共享的服务软件,结合nginx的主动健康检查模块nginx_upstream_check_module和服务发现模块nginx-upsync-module,实现一套服务动态发现机制。nginx的upstream不再通过手动配置,而是定时向con 阅读全文
posted @ 2017-11-01 10:31 大明湖畔的守望者 阅读(12408) 评论(0) 推荐(4) 编辑