https://github.com/adaptive-scale/dbchaos Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} adaptive-scale / dbchaos Public * Notifications * Fork 1 * Star 57 Stress-test your database with pre-defined queries. Validate slow and expensive queries that breaks your database. adaptive.live License View license 57 stars 1 fork Activity Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights adaptive-scale/dbchaos This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 1 tag Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/a] Use Git or checkout with SVN using the web URL. [gh repo clone adapti] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @debarshibasak debarshibasak Update README.md ... 41c924c Jan 1, 2024 Update README.md 41c924c Git stats * 21 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time cmd Run tests December 30, 2023 14:12 pkg yaml updated December 29, 2023 20:16 .gitignore gitignore updated December 29, 2023 20:18 LICENSE Run tests December 30, 2023 14:12 README.md Update README.md January 1, 2024 11:45 go.mod yaml updated December 29, 2023 20:16 go.sum yaml updated December 29, 2023 20:16 main.go readme updated December 30, 2023 12:52 View code DBChaos Installation Run your first test Run bunch of queries in parallel README.md DBChaos Stress-test your database with pre-defined queries. Validate slow and expensive queries that breaks your database. Installation go install github.com/adaptive-scale/dbchaos@v0.4.1 Run your first test Create a file name config.yaml with the following content: dbType: postgres connection: "host=localhost port=5432 user=postgres password=postgres dbname=postgres sslmode=disable" query: | SELECT pg_database.datname as "Database", pg_size_pretty(pg_database_size(pg_database.datname)) as "Size" FROM pg_database; parallelRuns: 100 runFor: 30m To run the above config file: dbchaos runTest config.yaml Run bunch of queries in parallel Create a file called scenario.yaml with the following content: dbType: mysql connection: "root:root@tcp(host:port)/db" scenarios: - query: select * from information_schema.statistics parallelRuns: 10000 runFor: 15m - query: | SELECT table_schema "Database", ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) "Size (MB)" FROM information_schema.tables GROUP BY table_schema; parallelRuns: 10000 runFor: 15m To run the above scenario file: dbchaos runScenario scenario.yaml About Stress-test your database with pre-defined queries. Validate slow and expensive queries that breaks your database. adaptive.live Topics database chaos Resources Readme License View license Activity Stars 57 stars Watchers 0 watching Forks 1 fork Report repository Releases 1 tags Packages 0 No packages published Languages * Go 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.