{"id":26051348,"url":"https://github.com/scalesql/popmaint","last_synced_at":"2025-08-20T15:04:42.092Z","repository":{"id":281031151,"uuid":"832328658","full_name":"scalesql/popmaint","owner":"scalesql","description":"Command-line SQL Server maintenance solution","archived":false,"fork":false,"pushed_at":"2025-06-20T13:08:25.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T14:23:54.492Z","etag":null,"topics":["dbcc","mssql","mssqlserver","sql-server"],"latest_commit_sha":null,"homepage":"","language":"Go","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/scalesql.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,"zenodo":null}},"created_at":"2024-07-22T19:52:35.000Z","updated_at":"2025-06-20T13:08:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"78d17327-6206-4b0b-921e-13af1ff6d06f","html_url":"https://github.com/scalesql/popmaint","commit_stats":null,"previous_names":["scalesql/popmaint"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/scalesql/popmaint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalesql%2Fpopmaint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalesql%2Fpopmaint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalesql%2Fpopmaint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalesql%2Fpopmaint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalesql","download_url":"https://codeload.github.com/scalesql/popmaint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalesql%2Fpopmaint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271337912,"owners_count":24742057,"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-08-20T02:00:09.606Z","response_time":69,"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":["dbcc","mssql","mssqlserver","sql-server"],"created_at":"2025-03-08T04:10:47.237Z","updated_at":"2025-08-20T15:04:42.079Z","avatar_url":"https://github.com/scalesql.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"POPMAINT\n========================================\nPOPMAINT is a command-line SQL Server maintenance solution similar to SQL Server Maintenance Plans.  It is based on GIT-friendly configuration files.  **This is currently under active development and EVERYTHING is subject to change.**\n\nGoals\n----------------------------------------\nThis project exists for two reasons.  First, I want a way to centralize SQL Server maintenance.  I am tired of deploying jobs to every server and then trying to change their schedules or activities.  And I even wrote a tool to [deploy jobs to every server](https://www.sqldsc.com/)!\n\nSecond, I want to handle blocking.  Indexing can block. Other maintenance tasks can block.  POPMAINT polls the server every second and kills the maintenance if it is blocking anything.  I hope to expand this to Availability Group send and redo queue sizes.\n\nOur use case for this is to add a new server by editing a file and committing to GIT.  Everything beyond that should be automated.\n\nFeatures\n----------------------------------------\n* Command-line application that supports scheduling through SQL Server Agent or other job scheduling application.  I run it from our central ActiveBatch server.\n* Configuration via GIT-friendly files\n* Log to the console or JSON\n* Cancel maintenance tasks if they block other requests\n* Spread load across servers, time, and time zones\n* Track state to resume where it left off and limit load\n* CHECKDB\n    * Support all DBCC CHECKDB options\n    * Limit cores and runtime to throttle load\n\n\n\nGetting Started\n---------------\n1. Unzip the files to a local folder\n2. Create `./plans/sample.toml`\n\n    ```toml\n    servers = [\"localhost\"]\n\n    [checkdb]\n    time_limit = \"60m\"\n    included = [\"master\", \"msdb\", \"model\"]\n    no_index = true \n    physical_only = true \n    ```\n3. Run the executable and execute the plan: `popmaint sample`.  This will run as the current user.  It requires `sysadmin` or `db_owner` permissions on these databases.\n4. See `DOCS.html` for further documentation\n\nThis will run DBCC against the system databases.\n\nReleases\n--------------------------------------------------------------------\n### vNext (June 2025)\n* Improved MAXDOP calculation\n* Improved logging\n* Fixed formatting on the documentation\n* Skip database snapshots\n* Add `statement_timeout` option\n\n### 0.22 (March 2025)\n* CHECKDB skips `tempdb`\n* MAXDOP settings now include an option to set a percentage of the server MAXDOP\n* Fixed the display format of the last time DBCC ran in the log\n\n### 0.21 (February 2025)\n* First public release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalesql%2Fpopmaint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalesql%2Fpopmaint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalesql%2Fpopmaint/lists"}