I'm new and slow apparently. What are you saying is the actual issue. They're set to autogrow w/ no limit causing your data partition / disk to fill and crash SQL? What is good practice to avoid that if I'm even luke warm in trying to understand what you're referencing.
No worries. The files were set to grow at a set amount (512mb) this is different than the default of 10%. Setting a discrete file growth amount this way is a good practice for larger databases. Only the mistake here was that the radio button for percent vs mb was not selected properly at the time this was done and the file was set to grow by 512%! The incurred file growth on a ~1TB file was ~5TB. Only we didn't have that much free space. There seems to be some kind of logic in play here where it's either the full 512% or the remaining available space whichever is less. The end result was our data drive reached its capacity and the server engine halted. This was in our qa environment.
While we're on things that should be deleted you should not be able to put user data in the primary filegroup. There's no sane reason for it, yet almost every DB I've worked on prior to current role there was only primary and some DBs were around 10-15TB.
I suppose that also goes for the dbo schema, right? Why even have schemas if we're not going to use them? Chalk these up to things people should use but don't I guess.
Well schemes had significant issues at scale until the last couple of releases. If you used schemes you could hit spinlock contention, we did, just for security checking. We had to move everything back to dbo just to continue to scale. Now that is not an issue we've split thugs back out again.
Fundamentally I agree, dbo shouldn't be used the way it is.
5
u/cachedrive Mar 10 '16
I'm new and slow apparently. What are you saying is the actual issue. They're set to autogrow w/ no limit causing your data partition / disk to fill and crash SQL? What is good practice to avoid that if I'm even luke warm in trying to understand what you're referencing.