{"id":37133289,"url":"https://github.com/jomkz/apache-bench-operator","last_synced_at":"2026-01-14T15:33:45.754Z","repository":{"id":64303903,"uuid":"263671989","full_name":"jomkz/apache-bench-operator","owner":"jomkz","description":"An Kubernetes operator for running Jobs using the Apache HTTP server benchmarking tool.","archived":false,"fork":false,"pushed_at":"2024-05-07T15:39:53.000Z","size":190,"stargazers_count":10,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T18:13:46.032Z","etag":null,"topics":["apache-benchmark","golang","kubernetes","operator"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jomkz.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,"publiccode":null,"codemeta":null}},"created_at":"2020-05-13T15:37:50.000Z","updated_at":"2024-05-07T15:39:48.000Z","dependencies_parsed_at":"2024-06-19T17:27:04.433Z","dependency_job_id":null,"html_url":"https://github.com/jomkz/apache-bench-operator","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"dee3a9c9164b4390310c1d1c92fa0aa96dfb9995"},"previous_names":["jmckind/apache-bench-operator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jomkz/apache-bench-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomkz%2Fapache-bench-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomkz%2Fapache-bench-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomkz%2Fapache-bench-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomkz%2Fapache-bench-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jomkz","download_url":"https://codeload.github.com/jomkz/apache-bench-operator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jomkz%2Fapache-bench-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["apache-benchmark","golang","kubernetes","operator"],"created_at":"2026-01-14T15:33:45.057Z","updated_at":"2026-01-14T15:33:45.742Z","avatar_url":"https://github.com/jomkz.png","language":"Go","readme":"# Apache Benchmark Operator\n\nAn Kubernetes operator for running Jobs using the Apache HTTP server benchmarking tool [ab][ab_docs].\n\n## Installation\n\nThe following steps will install the operator into a Kubernetes cluster. Clone this repository somewhere locally to get\nstarted.\n\nNOTE: You will need the `cluster-admin` or equivalent role on the cluster to perform several of these steps.\n\nCreate a namespace as needed for your environment.\n\n``` bash\nkubectl create ns benchmark\n```\n\nCreate the RBAC resources for the operator.\n\n``` bash\nkubectl apply -n benchmark -f deploy/service_account.yaml\nkubectl apply -n benchmark -f deploy/role.yaml\nkubectl apply -n benchmark -f deploy/role_binding.yaml\n```\n\nCreate the CRD that is managed by the operator.\n\n``` bash\nkubectl apply -f deploy/crds/httpd.apache.org_apachebenches_crd.yaml\n```\n\nCreate the Deployment to run the operator.\n\n``` bash\nkubectl apply -n benchmark -f deploy/operator.yaml\n```\n\nIf these steps all complete successfully, the operator Pod should be running in the desired namespace.\n\n``` bash\nkubectl get pods -n benchmark\n```\n\n``` bash\nNAME                                     READY   STATUS    RESTARTS   AGE\napache-bench-operator-58dfcbd5fd-ln6v9   1/1     Running   0          13s\n```\n\n## Usage\n\nWith the operator running, create a new `ApacheBench` resource that defines the desired state for the benchmark\nprocess.\n\n``` yaml\napiVersion: httpd.apache.org/v1alpha1\nkind: ApacheBench\nmetadata:\n  name: example-apache-bench\n  labels:\n    example: basic\nspec:\n  url: http://httpd.apache.org/\n```\n\nThis example is available in the `docs/examples` directory.\n\n``` bash\nkubectl apply -n benchmark -f docs/examples/apachebench-basic.yaml\n```\n\n``` bash\napachebench.httpd.apache.org/example-apache-bench created\n```\n\nView the `ApacheBench` resources.\n\n``` bash\nkubectl get ab -n benchmark\n```\n\n``` bash\nNAME                   AGE\nexample-apache-bench   106s\n```\n\nA Job will be created to run the benchmark.\n\n``` bash\nkubectl get jobs -n benchmark\n```\n\n``` bash\nNAME                   COMPLETIONS   DURATION   AGE\nexample-apache-bench   1/1           2s         2m19s\n```\n\nThe Job will create a single Pod and should not take very long to run.\n\n``` bash\nkubectl get pods -n benchmark\n```\n\n``` bash\nNAME                                     READY   STATUS      RESTARTS   AGE\napache-bench-operator-58dfcbd5fd-ln6v9   1/1     Running     0          22m\nexample-apache-bench-wwx7h               0/1     Completed   0          4m8s\n```\n\nView the logs for the Pod to get the result of the benchmark process.\n\n``` bash\nkubectl logs -n benchmark example-apache-bench-wwx7h\n```\n\n``` bash\nThis is ApacheBench, Version 2.3 \u003c$Revision: 1874286 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking httpd.apache.org (be patient).....done\n\n\nServer Software:        Apache/2.4.18\nServer Hostname:        httpd.apache.org\nServer Port:            80\n\nDocument Path:          /\nDocument Length:        9696 bytes\n\nConcurrency Level:      1\nTime taken for tests:   0.013 seconds\nComplete requests:      1\nFailed requests:        0\nTotal transferred:      9969 bytes\nHTML transferred:       9696 bytes\nRequests per second:    79.33 [#/sec] (mean)\nTime per request:       12.605 [ms] (mean)\nTime per request:       12.605 [ms] (mean, across all concurrent requests)\nTransfer rate:          772.34 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        6    6   0.0      6       6\nProcessing:     6    6   0.0      6       6\nWaiting:        6    6   0.0      6       6\nTotal:         13   13   0.0     13      13\n```\n\nSee the `docs/examples` directory for advanced usage.\n\n## License\n\nThe Apache Benchmark Operator is released under the Apache 2.0 license. See the [LICENSE][license_file] file for details.\n\n[ab_docs]:https://httpd.apache.org/docs/2.4/programs/ab.html\n[license_file]:./LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomkz%2Fapache-bench-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjomkz%2Fapache-bench-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomkz%2Fapache-bench-operator/lists"}