首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

nginx-upstream-fair-master

前端 172.93KB 2 需要积分: 1
立即下载

资源介绍:

nginx-upstream-fair-master
Name nginx_http_upstream_check_module - support upstream health check with Nginx Synopsis http { upstream cluster { # simple round-robin server 192.168.0.1:80; server 192.168.0.2:80; check interval=5000 rise=1 fall=3 timeout=4000; #check interval=3000 rise=2 fall=5 timeout=1000 type=ssl_hello; #check interval=3000 rise=2 fall=5 timeout=1000 type=http; #check_http_send "HEAD / HTTP/1.0\r\n\r\n"; #check_http_expect_alive http_2xx http_3xx; } server { listen 80; location / { proxy_pass http://cluster; } location /status { check_status; access_log off; allow SOME.IP.ADD.RESS; deny all; } } } Description Add the support of health check with the upstream servers. Directives check syntax: *check interval=milliseconds [fall=count] [rise=count] [timeout=milliseconds] [default_down=true|false] [type=tcp|http|ssl_hello|mysql|ajp|fastcgi]* default: *none, if parameters omitted, default parameters are interval=30000 fall=5 rise=2 timeout=1000 default_down=true type=tcp* context: *upstream* description: Add the health check for the upstream servers. The parameters' meanings are: * *interval*: the check request's interval time. * *fall*(fall_count): After fall_count check failures, the server is marked down. * *rise*(rise_count): After rise_count check success, the server is marked up. * *timeout*: the check request's timeout. * *default_down*: set initial state of backend server, default is down. * *port*: specify the check port in the backend servers. It can be different with the original servers port. Default the port is 0 and it means the same as the original backend server. * *type*: the check protocol type: 1. *tcp* is a simple tcp socket connect and peek one byte. 2. *ssl_hello* sends a client ssl hello packet and receives the server ssl hello packet. 3. *http* sends a http request packet, receives and parses the http response to diagnose if the upstream server is alive. 4. *mysql* connects to the mysql server, receives the greeting response to diagnose if the upstream server is alive. 5. *ajp* sends a AJP Cping packet, receives and parses the AJP Cpong response to diagnose if the upstream server is alive. 6. *fastcgi* send a fastcgi request, receives and parses the fastcgi response to diagnose if the upstream server is alive. check_http_send syntax: *check_http_send http_packet* default: *"GET / HTTP/1.0\r\n\r\n"* context: *upstream* description: If you set the check type is http, then the check function will sends this http packet to check the upstream server. check_http_expect_alive syntax: *check_http_expect_alive [ http_2xx | http_3xx | http_4xx | http_5xx ]* default: *http_2xx | http_3xx* context: *upstream* description: These status codes indicate the upstream server's http response is ok, the backend is alive. check_keepalive_requests syntax: *check_keepalive_requests num* default: *check_keepalive_requests 1* context: *upstream* description: The directive specifies the number of requests sent on a connection, the default vaule 1 indicates that nginx will certainly close the connection after a request. check_fastcgi_param Syntax: *check_fastcgi_params parameter value* default: see below context: *upstream* description: If you set the check type is fastcgi, then the check function will sends this fastcgi headers to check the upstream server. The default directive looks like: check_fastcgi_param "REQUEST_METHOD" "GET"; check_fastcgi_param "REQUEST_URI" "/"; check_fastcgi_param "SCRIPT_FILENAME" "index.php"; check_shm_size syntax: *check_shm_size size* default: *1M* context: *http* description: Default size is one megabytes. If you check thousands of servers, the shared memory for health check may be not enough, you can enlarge it with this directive. check_status syntax: *check_status [html|csv|json]* default: *none* context: *location* description: Display the health checking servers' status by HTTP. This directive should be set in the http block. You can specify the default display format. The formats can be `html`, `csv` or `json`. The default type is `html`. It also supports to specify the format by the request argument. Suppose your `check_status` location is '/status', the argument of `format` can change the display page's format. You can do like this: /status?format=html /status?format=csv /status?format=json At present, you can fetch the list of servers with the same status by the argument of `status`. For example: /status?format=html&status=down /status?format=csv&status=up Below it's the sample html page: Nginx http upstream check status

Nginx http upstream check status

Check upstream server number: 1, generation: 3

Index Upstream Name Status Rise counts Fall counts Check type Check port 0 backend 106.187.48.116:80 up 39 0 http 80 Below it's the sample of csv page: 0,backend,106.187.48.116:80,up,46,0,http,80 Below it's the sample of json page: {"servers": { "total": 1, "generation": 3, "server": [ {"index": 0, "upstream": "backend", "name": "106.187.48.116:80", "status": "up", "rise": 58, "fall": 0, "type": "http", "port": 80} ] }} Installation Download the latest version of the release tarball of this module from github () Grab the nginx source code from nginx.org (), for example, the version 1.0.14 (see nginx compatibility), and then build the source with this module: $ wget 'http://nginx.org/download/nginx-1.0.14.tar.gz' $ tar -xzvf nginx-1.0.14.tar.gz $ cd nginx-1.0.14/ $ patch -p1 < /path/to/nginx_http_upstream_check_module/check.patch $ ./configure --add-module=/path/to/nginx_http_upstream_check_module $ make $ make install Note If you use nginx-1.2.1 or nginx-1.3.0, the nginx upstream round robin module changed greatly. You should use the patch named 'check_1.2.1.patch'. If you use nginx-1.2.2+ or nginx-1.3.1+, It added the upstream least_conn module. You should use the patch named 'check_1.2.2+.patch'. If you use nginx-1.2.6+ or nginx-1.3.9+, It adjusted the round robin module. You should use the patch named 'check_1.2.6+.patch'. If you use nginx-1.5.12+, You should use the patch named 'check_1.5.12+.patch'. If you use nginx-1.7.2+, You should use the patch named 'check_1.7.2+.patch'. The patch just adds the support for the official Round-Robin, Ip_hash and least_conn upstream modu

资源文件列表:

nginx_upstream_check_module-master.zip 大约有85个文件
  1. nginx_upstream_check_module-master/
  2. nginx_upstream_check_module-master/CHANGES
  3. nginx_upstream_check_module-master/README 11.24KB
  4. nginx_upstream_check_module-master/check.patch 6.78KB
  5. nginx_upstream_check_module-master/check_1.11.1+.patch 7.74KB
  6. nginx_upstream_check_module-master/check_1.11.5+.patch 8.13KB
  7. nginx_upstream_check_module-master/check_1.12.1+.patch 7.87KB
  8. nginx_upstream_check_module-master/check_1.14.0+.patch 7.87KB
  9. nginx_upstream_check_module-master/check_1.16.1+.patch 8.21KB
  10. nginx_upstream_check_module-master/check_1.2.1.patch 5.35KB
  11. nginx_upstream_check_module-master/check_1.2.2+.patch 6.96KB
  12. nginx_upstream_check_module-master/check_1.2.6+.patch 6.93KB
  13. nginx_upstream_check_module-master/check_1.20.1+.patch 8.22KB
  14. nginx_upstream_check_module-master/check_1.5.12+.patch 6.63KB
  15. nginx_upstream_check_module-master/check_1.7.2+.patch 8.1KB
  16. nginx_upstream_check_module-master/check_1.7.5+.patch 8.15KB
  17. nginx_upstream_check_module-master/check_1.9.2+.patch 8.31KB
  18. nginx_upstream_check_module-master/config 769B
  19. nginx_upstream_check_module-master/doc/
  20. nginx_upstream_check_module-master/doc/README.txt 11.24KB
  21. nginx_upstream_check_module-master/doc/README.wiki 11.14KB
  22. nginx_upstream_check_module-master/nginx-sticky-module.patch 1.67KB
  23. nginx_upstream_check_module-master/nginx-tests/
  24. nginx_upstream_check_module-master/nginx-tests/fastcgi_check.t 8.44KB
  25. nginx_upstream_check_module-master/ngx_http_upstream_check_module.c 109.46KB
  26. nginx_upstream_check_module-master/ngx_http_upstream_check_module.h 529B
  27. nginx_upstream_check_module-master/ngx_http_upstream_jvm_route_module.patch 2.78KB
  28. nginx_upstream_check_module-master/test/
  29. nginx_upstream_check_module-master/test/README 9.66KB
  30. nginx_upstream_check_module-master/test/inc/
  31. nginx_upstream_check_module-master/test/inc/Module/
  32. nginx_upstream_check_module-master/test/inc/Module/AutoInstall.pm 24.63KB
  33. nginx_upstream_check_module-master/test/inc/Module/Install.pm 12.09KB
  34. nginx_upstream_check_module-master/test/inc/Module/Install/
  35. nginx_upstream_check_module-master/test/inc/Module/Install/AutoInstall.pm 2.11KB
  36. nginx_upstream_check_module-master/test/inc/Module/Install/Base.pm 1.1KB
  37. nginx_upstream_check_module-master/test/inc/Module/Install/Can.pm 1.71KB
  38. nginx_upstream_check_module-master/test/inc/Module/Install/Fetch.pm 2.4KB
  39. nginx_upstream_check_module-master/test/inc/Module/Install/Include.pm 525B
  40. nginx_upstream_check_module-master/test/inc/Module/Install/Makefile.pm 11.51KB
  41. nginx_upstream_check_module-master/test/inc/Module/Install/Metadata.pm 17.69KB
  42. nginx_upstream_check_module-master/test/inc/Module/Install/TestBase.pm 539B
  43. nginx_upstream_check_module-master/test/inc/Module/Install/Win32.pm 1.75KB
  44. nginx_upstream_check_module-master/test/inc/Module/Install/WriteAll.pm 1.25KB
  45. nginx_upstream_check_module-master/test/inc/Spiffy.pm 15.15KB
  46. nginx_upstream_check_module-master/test/inc/Test/
  47. nginx_upstream_check_module-master/test/inc/Test/Base.pm 17.55KB
  48. nginx_upstream_check_module-master/test/inc/Test/Base/
  49. nginx_upstream_check_module-master/test/inc/Test/Base/Filter.pm 6.99KB
  50. nginx_upstream_check_module-master/test/inc/Test/Builder.pm 29.99KB
  51. nginx_upstream_check_module-master/test/inc/Test/Builder/
  52. nginx_upstream_check_module-master/test/inc/Test/Builder/Module.pm 1.39KB
  53. nginx_upstream_check_module-master/test/inc/Test/More.pm 16.35KB
  54. nginx_upstream_check_module-master/test/lib/
  55. nginx_upstream_check_module-master/test/lib/Test/
  56. nginx_upstream_check_module-master/test/lib/Test/Nginx.pm 9.31KB
  57. nginx_upstream_check_module-master/test/lib/Test/Nginx/
  58. nginx_upstream_check_module-master/test/lib/Test/Nginx/LWP.pm 13.14KB
  59. nginx_upstream_check_module-master/test/lib/Test/Nginx/Socket.pm 59.03KB
  60. nginx_upstream_check_module-master/test/lib/Test/Nginx/Util.pm 25.68KB
  61. nginx_upstream_check_module-master/test/ragel/
  62. nginx_upstream_check_module-master/test/ragel/Makefile 330B
  63. nginx_upstream_check_module-master/test/ragel/http11.c 14.79KB
  64. nginx_upstream_check_module-master/test/ragel/http11_parser.c 23.61KB
  65. nginx_upstream_check_module-master/test/ragel/http11_parser.h 1.14KB
  66. nginx_upstream_check_module-master/test/ragel/http11_parser.rl 3.47KB
  67. nginx_upstream_check_module-master/test/ragel/http11_parser_common.rl 1.85KB
  68. nginx_upstream_check_module-master/test/ragel/http11_response.c 7.98KB
  69. nginx_upstream_check_module-master/test/ragel/http11_response.h 974B
  70. nginx_upstream_check_module-master/test/ragel/http11_response.rl 2.84KB
  71. nginx_upstream_check_module-master/test/ragel/http11_response_common.rl 883B
  72. nginx_upstream_check_module-master/test/ragel/ragel_http_client.c 2.6KB
  73. nginx_upstream_check_module-master/test/ragel/ragel_http_server.c 2.66KB
  74. nginx_upstream_check_module-master/test/t/
  75. nginx_upstream_check_module-master/test/t/check_interface.t 10.52KB
  76. nginx_upstream_check_module-master/test/t/http_check.t 10.35KB
  77. nginx_upstream_check_module-master/test/t/ssl_hello_check.t 3.38KB
  78. nginx_upstream_check_module-master/test/t/tcp_check.t 3.57KB
  79. nginx_upstream_check_module-master/test/test.sh 101B
  80. nginx_upstream_check_module-master/upstream_fair.patch 3.26KB
  81. nginx_upstream_check_module-master/util/
  82. nginx_upstream_check_module-master/util/chomp.rb 90B
  83. nginx_upstream_check_module-master/util/chomp.sh 166B
  84. nginx_upstream_check_module-master/util/update-readme.sh 129B
  85. nginx_upstream_check_module-master/util/wiki2pod.pl 3.05KB
0评论
提交 加载更多评论
其他资源 NodeJS期刊投稿信息查询系统-毕业设计源码06128(源码+数据库)
基于微信小程序的期刊投稿信息查询系统有注册用户和管理员两个用户角色,下面针对两个用户角色的功能需求进行分析: 1.注册用户: 登录注册:用户可以注册新账号或使用已有账号登录。 首页:展示系统的主要信息和功能入口。 期刊信息:提供期刊的相关信息,包括期刊名称、投稿要求等。 投稿信息:用户可以查看投稿相关的信息和要求。 网站公告:显示系统发布的重要通知信息。 我的: 基本信息:用户可以查看和管理自己的基本信息。 投稿信息:用户可以查看自己的投稿记录和状态。 通知提醒:用户可以接收系统通知和提醒。 2.管理员: 后台首页:展示系统数据统计和管理入口。 系统用户:管理系统中的各类用户。 期刊信息管理:管理系统中期刊的相关信息。 投稿信息管理:管理用户的投稿信息和处理投稿状态。 通知提醒管理:发布、编辑和删除系统通知和提醒。 轮播图管理:管理系统首页的轮播图内容。 系统通知管理:管理系统发布的通知信息。 权限管理:管理系统用户的权限和角色设置。 这个系统旨在为投稿者和管理员提供一个便捷的投稿信息查询平台,同时管理员可以管理系统中的期刊信息、投稿信息和系统通知等内容,确保系统运行顺畅。
NodeJS期刊投稿信息查询系统-毕业设计源码06128(源码+数据库) NodeJS期刊投稿信息查询系统-毕业设计源码06128(源码+数据库) NodeJS期刊投稿信息查询系统-毕业设计源码06128(源码+数据库)
时间序列异常检测相关代码
时间序列异常检测代码
java swing项目购物系统mysql数据库-java课程设计毕业设计期末大作业
本资源为Java Swing项目购物系统,采用MySQL数据库,适用于Java课程设计、毕业设计以及期末大作业的学习参考。该系统使用Java Swing构建用户界面,结合JDBC与MySQL数据库实现商品查询、购物车管理等功能模块。该项目非常适合在校大学生进行参考与学习,同时为Java技术爱好者提供了极好的学习资源。通过本项目,用户可以深入学习Java图形界面编程和数据库操作的综合应用。
java swing项目汽车租赁系统mysql数据库-java课程设计毕业设计期末大作业
本资源为Java Swing项目汽车租赁系统,基于MySQL数据库,适用于Java课程设计、毕业设计和期末大作业的学习参考。系统采用Java Swing构建用户友好的图形界面,结合JDBC和MySQL数据库实现车辆信息管理功能。该系统功能丰富,结构清晰,具有良好的可扩展性,便于学习与理解。非常适合在校大学生作为课程设计或毕业设计的参考项目,同时也是Java技术爱好者进行编程实践的理想素材。本项目可以帮助用户掌握Java图形界面编程和数据库交互的技术要点。
java swing项目费用报告系统mysql数据库-java课程设计毕业设计期末大作业
本资源为Java Swing项目费用报告系统,基于MySQL数据库,适合用于Java课程设计、毕业设计以及期末大作业的学习参考。系统采用Java Swing作为用户界面,结合JDBC与MySQL数据库实现数据的录入、编辑、删除、查询等功能。源码设计简洁明了、功能模块齐全,具有良好的可扩展性和学习参考价值,非常适合在校大学生进行参考和学习。该项目不仅帮助提升Java图形界面编程和数据库管理的能力,同时为Java技术爱好者提供了优质的学习素材。
11个代码生成相关的论文,20241022更新版本-持续更新,包含代码搜索、代码搜索、代码模型survey、代码评论评估、代码评
find . -mindepth 2 -maxdepth 2 -type f -name "*.pdf" | awk -F/ '{print $(NF-1)}' | sort | uniq -c 2 代码或bug分类 1 代码搜索 1 代码生成 1 代码模型survey 1 代码评论评估 5 代码评估与提示
java swing项目电影票购票管理mysql数据库-java课程设计毕业设计期末大作业
本资源是一个Java Swing项目电影票购票管理系统,采用MySQL数据库,非常适合用于Java课程设计、毕业设计以及期末大作业的学习参考。该系统通过Java Swing实现用户友好的界面设计,结合JDBC和MySQL数据库完成电影信息展示、选座购票等功能模块。源码结构清晰,具有较高的可读性和可扩展性,非常适合在校大学生作为课程设计和毕业设计的参考项目,同时也是Java技术爱好者的学习佳作。本项目可以帮助用户快速理解Java图形界面编程与数据库交互的实现,提升编程能力。
vmware vddk 6.7
VDDK 6.7