{"id":18150091,"url":"https://github.com/sysulq/enhanced-limit-conn-nginx-module","last_synced_at":"2025-07-06T21:02:23.085Z","repository":{"id":16809996,"uuid":"19568968","full_name":"sysulq/enhanced-limit-conn-nginx-module","owner":"sysulq","description":"An enhanced limit conn nginx module.","archived":false,"fork":false,"pushed_at":"2014-05-12T04:27:10.000Z","size":156,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T04:47:25.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysulq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-08T10:03:39.000Z","updated_at":"2020-11-17T13:02:40.000Z","dependencies_parsed_at":"2022-07-26T09:02:13.544Z","dependency_job_id":null,"html_url":"https://github.com/sysulq/enhanced-limit-conn-nginx-module","commit_stats":null,"previous_names":["sysulq/enhanced-limit-conn-nginx-module"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysulq%2Fenhanced-limit-conn-nginx-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysulq%2Fenhanced-limit-conn-nginx-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysulq%2Fenhanced-limit-conn-nginx-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysulq%2Fenhanced-limit-conn-nginx-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysulq","download_url":"https://codeload.github.com/sysulq/enhanced-limit-conn-nginx-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247563909,"owners_count":20958971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-02T00:07:33.456Z","updated_at":"2025-04-06T22:34:20.330Z","avatar_url":"https://github.com/sysulq.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Enhanced-limit-conn-nginx-module\n================================\n\nThis is an enhanced limit conn nginx module with sysguard ability.\n\n##Feature\n\n1. Combined sysguard module from Tengine.\n2. Enable to configure in main block.\n3. No bad effect on the origin limit conn function.\n4. Totally compatible with Nginx.\n\n##Notice\n1. Replace ngx_http_limit_conn_module with ngx_http_enhanced_limit_conn_module directly.\n2. Without sysguard on, this module will act the same as ngx_http_limit_conn_module.\n3. With sysguard on, this module will limit connections unless this system running nginx is overload.\n\n##Configuration\n\n```\nlimit_conn_zone $binary_remote_addr zone=addr:10m;\nlimit_conn addr 50;\n\nsysguard on;\nsysguard_load load=8;\nsysguard_mem swapratio=20%;\nsysguard_mem free=100M;\n```\n\n##Directives\n\n###limit_conn_zone\n同limit_conn模块一致\n\n###limit_conn\n同limit_conn模块一致\n\n###sysguard\n**syntax**: sysguard on | off\n\n**default**: sysguard on\n\n**context**: http, server, location, location if\n\n开始系统状态监控功能，当超过所设置的阀值，则将limit_conn的限制连接数减半，以应对HTTP DOS攻击。\n\n###sysguard_load\n**syntax**: sysguard_load load=[0-10];\n\n**default**: sysguard_load load=8\n\n**context**: http, server, location, location if\n\n设置系统CPU负载阀值\n\n###sysguard_mem\n**syntax**: sysguard_mem swapratio=[0-100]%;\n        sysguard_mem free=[0-1000]M;\n\n**default**: sysguard_mem swapratio=20%;\n         sysguard_mem free=100M;\n\n**context**: http, server, location, location if\n\n设置系统内存阀值\n\n##Contact me\nEmail: hnlq.sysu@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysulq%2Fenhanced-limit-conn-nginx-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysulq%2Fenhanced-limit-conn-nginx-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysulq%2Fenhanced-limit-conn-nginx-module/lists"}