{"id":31598358,"url":"https://github.com/payscale/load-test-script","last_synced_at":"2026-04-10T03:44:57.420Z","repository":{"id":44098342,"uuid":"200305070","full_name":"payscale/load-test-script","owner":"payscale","description":"A node script that can download Cloudfront logs and then replay them against a different host/environment to load test your site.","archived":false,"fork":false,"pushed_at":"2022-12-09T20:57:18.000Z","size":80,"stargazers_count":4,"open_issues_count":5,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T06:11:37.815Z","etag":null,"topics":["aws","cloudfront","cloudfront-logs","load-test","load-testing","node","node-js","nodejs","s3","script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/payscale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-02T22:31:29.000Z","updated_at":"2024-02-29T10:07:49.000Z","dependencies_parsed_at":"2023-01-25T21:45:10.577Z","dependency_job_id":null,"html_url":"https://github.com/payscale/load-test-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/payscale/load-test-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payscale%2Fload-test-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payscale%2Fload-test-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payscale%2Fload-test-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payscale%2Fload-test-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/payscale","download_url":"https://codeload.github.com/payscale/load-test-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/payscale%2Fload-test-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278562667,"owners_count":26007232,"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-10-06T02:00:05.630Z","response_time":65,"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":["aws","cloudfront","cloudfront-logs","load-test","load-testing","node","node-js","nodejs","s3","script"],"created_at":"2025-10-06T05:40:28.076Z","updated_at":"2025-10-06T05:40:30.250Z","avatar_url":"https://github.com/payscale.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Load Testing Script using Cloudfront Logs\nA load testing script in NodeJS that pulls cloudfront logs and replays them.\n\n## Getting Started\nThese instructions will get this script up and running on your local machine.\n\n### Prerequisites\n* node\n* yarn\n* You need to have the .aws/credentials file locally with the default credentials (See [this article](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) for details)\n\n### To Run the load test\n* Install packages: `yarn`\n* Download an hour's worth of logs: `node .\\download-cloudfront-logs.js --timestamp \u003cYYYY-MM-DD-HH\u003e --bucketName \u003ccloudfrontLogsBucketName\u003e --cloudfrontId \u003cdistribution id\u003e --s3folder \u003cfolder where logs are kept\u003e` \n  * NOTE: the timestamp is in UTC\n* Replay the logs against the host of your choice: `node ./load-test.js --urlHost 'www.\u003cyourHost\u003e.com' --prefix '/\u003cthe path subset you want to test\u003e' --maxPings 100`\n  * NOTE: if you run out of memory, run node such as with 4gb:`node --max-old-space-size=4096 ...`. \n\n### Parameters for download-cloudfront-logs.js\n| Name          | Required      | Description     | Default Value\n| ------------- |:-------------:| ---------------:|----------------:|\n| timestamp     | required      | A timestamp in the format of: YYYY-MM-DD-HH. This is used to grab all S3 logs with that file prefix           | - \n| bucketName    | required      | The S3 bucket that contains the Cloudfront logs | -\n| cloudfrontId  | required      | The ID of the cloudfront distribution in question | -\n| s3folder      | required | The folder within S3 to get logs from | -\n\n### Parameters for load-test.js\n| Name          | Required      | Description     | Default Value\n| ------------- |:-------------:| ---------------:|----------------:|\n| urlHost       | required      | The url host that you want to ping | -\n| prefix        | optional      | A path prefix for the urls that you want to replay (if you don't want to replay all logs, but instead just a subset) | - \n| maxPings      | optional      | If you want to limit the load test to a certain number of pings | -\n\n## Contributing\nPlease read CONTRIBUTING.md for contributing to the project and submitting pull requests to us. For details on our code of conduct, visit Code of Conduct.\n\n## Authors\n[dani.fenske@payscale.com](mailto:dani.fenske@payscale.com)\n\n## License\nThis project is licensed under the Apache 2 License - see the LICENSE file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayscale%2Fload-test-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpayscale%2Fload-test-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayscale%2Fload-test-script/lists"}