nginx-upsync-module icon indicating copy to clipboard operation
nginx-upsync-module copied to clipboard

upsync与nginx_upstream_check模块同时编译报错问题

Open che88she opened this issue 7 years ago • 6 comments

你好,请问如下两个函数在check模块中没有找到,该怎么解决?,谢谢~ image image

che88she avatar Oct 15 '18 10:10 che88she

https://github.com/xiaokai-wang/nginx_upstream_check_module 使用此链接健康检测模块

xiaokai-wang avatar Oct 16 '18 17:10 xiaokai-wang

您好,该模块https://github.com/xiaokai-wang/nginx_upstream_check_module 中没有看到1.14.0+的patch,请问是否支持nginx1.14.0+?

che88she avatar Oct 18 '18 08:10 che88she

用check_1.12.1+.patch It works for nginx >= 1.12.1, including 1.13, 1.14 or 1.15

gfrankliu avatar Oct 18 '18 17:10 gfrankliu

@gfrankliu upsync:https://github.com/weibocom/nginx-upsync-module,upstream_check :https://github.com/xiaokai-wang/nginx_upstream_check_module都是用pull的master,但是打补丁报错: cd nginx-upsync-module-master patch -p1 < /nginx_upstream_check_module-master/check_1.12.1+.patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was:

|diff -burN nginx-1.12.1_orig/src/http/modules/ngx_http_upstream_hash_module.c nginx-1.12.1/src/http/modules/ngx_http_upstream_hash_module.c |--- nginx-1.12.1_orig/src/http/modules/ngx_http_upstream_hash_module.c 2017-07-11 13:24:08.000000000 +0000 |+++ nginx-1.12.1/src/http/modules/ngx_http_upstream_hash_module.c 2017-07-13 17:58:44.687213233 +0000

File to patch: Skip this patch? [y] Skipping patch.

sxauyhz avatar Nov 28 '18 07:11 sxauyhz

这个补丁是打在nginx上的。不是打在nginx-upsync-module-master

gfrankliu avatar Nov 28 '18 19:11 gfrankliu

index = ngx_http_upstream_check_add_dynamic_peer(cycle->pool, uscf, addrs); peer->check_index = index;

编译提示 nginx_module/nginx-upsync-module-2.1.0/src/ngx_http_upsync_module.c:895: error: ‘ngx_http_upstream_rr_peer_t’ has no member named ‘check_index’

hilbert36 avatar Jun 15 '19 02:06 hilbert36