In a SQL Replicated environment (Connected Workgroups) it is necessary to run regular SQL Maintenance plans on each site to keep the database healthy and optimized for performance. This should be done from one Vault Server in each workgroup. Autodesk has observed significant performance benefits specifically in the merge replication by using the ADMS Console defragmenting tool immediately prior to running a SQL maintenance plan.
The ADMS Console defragment command can be run via
A) the User Interface
B) a windows CMD line by running a batch command as follows:-
Connectivity.ADMSConsole.exe -Odefragmentvault –NVaultDB -VUAdministrator -VPadmin -S
Connectivity.ADMSConsole.exe -Odefragmentlibrary –NCustom_Library -VUAdministrator -VPadmin –S
(If you run a custom SQL Maintenance Plan you can the above lines before or after your existing defragmenting batch scripts.)
If the command is run via the User Interface or without the –S switch, the following message will appear requiring user input
“This operation cannot be performed if the vault is unlocked and available to users. Would you like to lock this vault now? Selecting ‘No’ will abort the operation.”
This message will remain on the screen until Yes or No is clicked. Similarly if you run the command whilst the ADMSConsole is open you will see this message.
Run the ADMS Console defragmentation to see how long it takes. It will vary from one time to another dependent on user activity since the previous ADMS Console defragmentation. One example may be… if it takes 1 hour to process an ADMS Console defragmentation on all databases, double it, then use that time to schedule it before running the SQL Maintenance plan.
An example could be, the following.
The Administrator responsible for running SQL Maintenance on each database, has configured a SQL Maintenance plan to run at mid-day on each Saturday. Testing has revealed that defragmenting all the Vault and Library databases takes 5 hours. Allowing for fluctuations in user activity, since the previous defragmentation, (in the near future) they choose to run the ADMSConsole defragmentation 10 hours prior to the scheduled SQL Maintenance plan.
|
Defrag |
SQL Maintenance |
|
|
1 Vault Site Server in Workgroup1 |
Run Weekly on Saturday @ 0200 |
Run Weekly on Saturday @ midday |
|
1 Vault Site Server in Workgroup2 |
Run Weekly on Saturday @ 0200 |
Run Weekly on Saturday @ midday |
|
1 Vault Site Server in Workgroup3 |
Run Weekly on Saturday @ 0200 |
Run Weekly on Saturday @ midday |
Note:
The ADMS defragmentation only needs to be run from 1 Vault Site server in each Connected Workgroup.
Subscribe