{"id":17470742,"url":"https://github.com/matsumotory/ngx_custom_worker_module","last_synced_at":"2025-09-01T08:06:52.368Z","repository":{"id":140250895,"uuid":"93020591","full_name":"matsumotory/ngx_custom_worker_module","owner":"matsumotory","description":"ngx_custom_worker_module can set the number of processes with any factor of worker_processes auto.","archived":false,"fork":false,"pushed_at":"2020-07-27T22:38:11.000Z","size":5,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T08:51:58.644Z","etag":null,"topics":["nginx","nginx-module","worker"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matsumotory.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-06-01T05:41:25.000Z","updated_at":"2025-03-12T15:43:39.000Z","dependencies_parsed_at":"2024-02-04T21:08:25.466Z","dependency_job_id":"b75e099b-6d4b-47b3-a84d-4625fe944d88","html_url":"https://github.com/matsumotory/ngx_custom_worker_module","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matsumotory/ngx_custom_worker_module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fngx_custom_worker_module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fngx_custom_worker_module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fngx_custom_worker_module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fngx_custom_worker_module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsumotory","download_url":"https://codeload.github.com/matsumotory/ngx_custom_worker_module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fngx_custom_worker_module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273093256,"owners_count":25044436,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["nginx","nginx-module","worker"],"created_at":"2024-10-18T16:06:16.849Z","updated_at":"2025-09-01T08:06:52.338Z","avatar_url":"https://github.com/matsumotory.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx_custom_worker_module\n\nngx_custom_worker_module can set the number of processes with any factor or spare of `worker_processes auto`.\n\n## Configuration\n\n- the number of worker processes is __4__ if the number of cpu threads is 4.\n\n```nginx\nworker_processes        auto;\n```\n\n### worker_processes_factor\n\n- the number of worker processes is __12__ if the number of cpu threads is 4.\n\n\n```nginx\nworker_processes        auto;\nworker_processes_factor 3;\n```\n\n### worker_processes_spare\n\n- the number of worker processes is __2__ if the number of cpu threads is 4.\n\n\n```nginx\nworker_processes        auto;\nworker_processes_spare 2;\n```\n\n### set worker_processes_factor and worker_processes_spare\n\nThe worker_processes_factor is applied before the worker_processes_spare.\n\n- the number of worker processes is __10__ if the number of cpu threads is 4.\n\n\n```nginx\nworker_processes        auto;\nworker_processes_factor 3;\nworker_processes_spare 2;\n```\n\n- the number of worker processes is __10__ if the number of cpu threads is 4.\n\n```nginx\nworker_processes        auto;\nworker_processes_spare 2;\nworker_processes_factor 3;\n```\n\n## Install\n\n- use nginx configure option\n\n```\n./configure --add-module=/path/to/ngx_custom_worker_module\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsumotory%2Fngx_custom_worker_module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsumotory%2Fngx_custom_worker_module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsumotory%2Fngx_custom_worker_module/lists"}