Forum Discussion
shockotechcom
Nov 07, 2021Iron Contributor
WSUS DB Tables - Large Tables
I have a tiny WSUS downstream server (10 clients) but the DB is 12 GB. I'm looking at the following tables that have the most records and occupy the most space:
Can anyone explain these to me or point me in the direction of their documentation?
- LainRobertsonSilver ContributorFocusing on the table you've marked in red, tbXml, this table contains the metadata for every update the server has been configured to synchronise.
Reasons this can blow out in size is that someone at some point enabled "too many" update categories to synchronise, for example all categories, all products or even just the drivers category - which has always been large.
I'm not clear on what the server clean-up task does these days, but many years ago when I last made the mistake of looking at the drivers category, the metadata remained, making the only way to shrink the database to re-sync it from the upstream parent.
Your first port of call would be to compare the number of rows on this downstream replica to the parent. If the parent is considerably less then maybe nothing's changed in which case the "best" course of action is to re-stage the downstream replica (assuming your WAN can handle it, etc.)
Also check the language settings and ensure you don't have more languages enabled than necessary.- shockoSteel ContributorYes that looks like it to me! In the past on these servers someone did indeed enable the drivers category. They started to fall over so I ran some code against the API to delete the driver updates (17000+!) because I couldn't decline them as these were downstreams servers. They had already been declined at the upstream/primary. What I should have done is make the downstream a primary and then declined them as I think when you decline it runs some stored proceedures to cleanup up the events and meta data tables.
- shockoSteel ContributorI also checked and in fact the upstream servers was also changed so these downstream servers were moved from one primary to another. I wonder does the downstream, inherit everything from the parent and remove things it doesn't (seems not?!) ?