SQL Server: Best Practices For System Center 2012

2y ago
32 Views
3 Downloads
1.76 MB
29 Pages
Last View : 2m ago
Last Download : 3m ago
Upload by : Albert Barnett
Transcription

Session Overview

SQL Server VersionSQL Server 2008 SP1, SP2, SP3Supported for SC2012 RTM***Not supported for SC2012 SP1***SQL Server 2008 R2 RTM, SP1Supported for SC2012 RTM*** andSC2012 SP1***SQL Server 2008 R2 SP2SQL Server 2012 RTM, SP1Only supported in SC2012 SP1***

SQL Server Version – Cloudier?

SQL Server Version – SC 2012 SP1***

SQL Server Version –ConfigMgr 2012 SP1

EditionsKey conceptsSQL Server Standard License included in System CenterGreat where advancedperformance/features are not requiredSQL Server Enterprise Higher memory, socket, core supportAdvanced high availability supportMulti-node clusteringAlways OnOnline/Parallel indexing ConfigMgr CAS – up to 50,000 clientsSuitable for test/dev/smaller deployments Recommended for the data warehouses.Recommended for ConfigMgr CAS for largeenvironments ( 50,000 clients)Benefits for SCSM Analysis cubes inprocessing time, partitions, and powerpivot,decision made at SCSM install. 8

Virtual SQL or traditional hardware?Customer by customer business decision All roles are supported on VM. Does the customer have established experience virtualizing highlytransactional SQL servers? Does the virtualization environment have the necessary resources,including compute and I/O? What are the high availability requirements? If virtual – follow strict guidance9

CAS SQL server is co-located with CASSMS provider 5 Primary sites 13 Secondary sites 225 Distribution pointsCentral Administration Site(CAS) PrimarySQLSiteServerPrimarySQLSiteServerSUPx2 MPx3 DPx8SUPx2 MPx3 DPx8No ClientsLocal SQL ServerAdministration & Reporting rySQLSiteServerSSx3 SUPx2 MPx2 DPx84SSx4 SUPx2 MPx2 DPx83SSx6 SUPx2 MPx2 DPx49Campus Site 1Campus Site 2Americas SiteEMEA SiteAPAC Site 75,000 ClientsRemote SQL ServerPrimary site with FSP andApplication Catalog role1 Physical & 15 Virtual Site Roles 75,000 ClientsRemote SQL ServerPrimary site with FSP andApplication Catalog role1 Physical & 15 Virtual Site Role 40,000 ClientsRemote SQL ServerPrimary site with FSP andApplication Catalog role1 Physical & 92 Virtual Site Roles 40,000 ClientsRemote SQL ServerPrimary site with FSP andApplication Catalog role1 Physical & 92 Virtual Site Roles 70,000 ClientsRemote SQL ServerPrimary site with FSP andApplication Catalog role1 Physical & 49 Virtual Site Roles

Hardware profile sizingEach product has unique requirements OpsMgr sizing helper px?id 29270 Service Manager sizing helper 4.aspx Configuration Manager 5.aspx11

PROCESSORMEMORYNumber of cores/logical CPUMemory sized per the sizinghelpers or documentationSpeed/edition of physical coreCPU is a common bottleneckon SQL servers hosting SCSMand OpsMgr.Remember that minimumrequirements are just that MINIMUMDISKTypically the most criticalcomponent from a userexperience perspectiveSQL loves RAM!Memory is a commonbottleneck for SQL, plan forscalability and performance.This is one of the lowest costupgrades you can make.NTFS Allocation Unit size(64kb)RAID configurationSpindles per LUNHBA config (queue depth anddriverShared storageSQL Server Best ry/cc966412.aspx

For more details related to disk configurations, disk spindles RAID levels please refer below ration-used-in-microsoft-it.aspx

SQL ConfigurationCollationDB and Log fileplacementSQL ServerMemoryMonitoringHigh PerformanceTempDBDB and Log filesizingAuto GrowAuto Shrink

SQL Config - CollationWhat a mess! Microsoft primarily tested SQL Latin1 General CP1 CI AS as it was default collationon a US English OS deployment. Other countries regional settings default to different collations, which might havecaused issues. SQL * collations are being deprecated. Broke SCSM OM connections, reports, when using different locales and differentcollations. Follow each products documentation, but plan for integration. This is being addressed in SP1, we will begin to use current Windows (not SQL *)collations and streamline across the SC products for different locales.16

SQL Config – DB and log placementDifferent I/O patterns Database writes are random, log writes are sequential Separate these write I/O patterns on different Volumes/LUNS/Arrays Isolation at the physical level If you have multiple log files from numerous DB’s, you have random writing acrossthe disk. Use simple recovery model where applicable17

SQL Config – DB and log sizingPre-configure DB size Auto growths consume I/O. Preconfigure DB sizes to reduce this. Pre-sizing reduces fragmentation on disk. Different products have guidance on t-log sizes. OpsMgr OpsDB tlog is 20% - 50% of DB file size If no guidance is given, use autogrow and monitor Some products have specific free space requirements.18

SQL Config – High perf TempDBHuge performance impact - critical Default configuration is worst practice Pre-size: 8GB/2GB minimum. 20-30% of the DB file size is a rule of thumb. Isolate at the physical layer - RAID 1 0 Set Auto Grow to 500/100 Divide TempDB database file into multiple files of equal size – one per CPU/Core.Even if on same volume. (max 8) OpsMgr, SCSM, large ConfigMgr Primary site servers (non-CAS)19

SQL disk – MSIT ConfigMgr ExampleSQL 50,000 ClientsSQL 50,000 ClientsOS Volume: 2-disk RAID1OS Volume: 2-disk RAID1App Volume: 2-disk RAID1App Volume: 2-disk RAID1DB File Volume: 24-disk RAID1 0DB File Volume: 12-disk RAID1 0DB Log Volume: 20-disk RAID1 0DB Log Volume: 8-disk RAID1 0Backup Volume: 14-disk RAID1 0Backup Volume: 5-disk RAID5TempDB Volume: 12-disk RAID 6TempDB Volume: 4-disk RAID 6

SQL Config – MemorySet minimums and maximums Shared SQL and App/Reporting 80-90%: Reserve memory for the OS Cluster scenarios: A/P, A/A Monitor for SQL Memory pressure, and OS Memory \ Available Mbytes Memory \ Pages/sec Logical Disk \ Avg disk sec/Write/Read \ C: SQLServer: Buffer Manager: Buffer Cache Hit Ratio21

SQL Config – Database filesAuto-grow / Auto-shrink Pre-size is always preferred - use auto-grow as an insurance policy Set Auto-growth max size limits, and 500mb/100mb NEVER SHRINK!Recovery Model Use defaults. Simple is set for a reason! High availability scenarios Monitoring becomes more critical22

Real World – CMRAPDatabases: Autogrow set to 1MBDatabases are identified with auto grow set to percentage growthDatabases have been identified with next Auto Growth increment greater than 1GB.SQL Server maximum memory allocation is unlimitedSQL: Max server memory set to defaultSite database automatically closesSite database automatically shrinksSite database not configured with Simple recovery modelSite database not enabled for recursive triggersSite database not enabled to automatically create optimization statisticsSite database not enabled to automatically update optimization statisticsSQL: ConfigMgr database with Page Verify option not set to CHECKSUMSQL: Affinity mask set inappropriatelySQL: Min memory per query set inappropriately23

InstancesHow many instances do I need? Shared Instances risk performance SQL Memory System Center design principles, and what's next Shared reporting issues Collation conflicts25

BackupBest practices: Use SQL backup to Disk DPM Disk Tape/Offsite/Replica Schedule backups outside of predefined maintenance windows Monitor for length of job and success Frequency should be defined by your SLA On shared infrastructures, understand the I/O impact of multiple backups28

Oct 07, 2012 · SQL Server maximum memory allocation is unlimited SQL: Max server memory set to default Site database automatically closes Site database automatically shrinks Site database not configured with Simple recovery model Site database not enabled for recursive triggers Site database not enabled to automatically create optimization statistics .File Size: 1MB

Related Documents:

Server 2005 , SQL Server 2008 , SQL Server 2008 R2 , SQL Server 2012 , SQL Server 2014 , SQL Server 2005 Express Edition , SQL Server 2008 Express SQL Server 2008 R2 Express , SQL Server 2012 Express , SQL Server 2014 Express .NET Framework 4.0, .NET Framework 2.0,

MS SQL Server: MS SQL Server 2017, MS SQL Server 2016, MS SQL Server 2014, MS SQL Server 2012, MS SQL Server 2008 R2, 2008, 2008 (64 bit), 2008 Express, MS SQL Server 2005, 2005 (64 bit), 2005 Express, MS SQL Server 2000, 2000 (64 bit), 7.0 and mixed formats. To install the software, follow the steps: 1. Double-click Stellar Repair for MS SQL.exe.

SQL Server 2005 SQL Server 2008 (New for V3.01) SQL Server 2008 R2 (New for V3.60) SQL Server 2012 (New for V3.80) SQL Server 2012 R2 (New for V3.95) SQL Server 2014 (New for V3.97) SQL Server 2016 (New for V3.98) SQL Server 2017 (New for V3.99) (Recommend Latest Service Pack) Note: SQL Server Express is supported for most situations. Contact .

4395 querying data with transact -sql (m20761) microsoft sql server 6552 querying microsoft sql server 2014 (m20461) microsoft sql server 1833 sql server performance tuning and optimization (m55144) microsoft sql server 4394 updating your skills to sql server 2016 (m10986) microsoft sql server

install the SQL Server Reporting Services 2019 or 2017 installation program. For more information, see Installing SQL Server Reporting Services for SQL Server 2019 and SQL Server 2017 To use the SQL Installer to install a full version of SQL Server software (for example, SQL Server 2019 Standard editio

4. To upgrade SQL Server 2008 SP3 Express to SQL Server 2012 SP2 Express, launch th e installer for SQL Server 2012 SP2 Express, and then follow the wizard. 5. Select the Upgrade from SQL Server 2005, SQL Server 2008 or SQL Server 2008R2 option under the Installation option. The Upgrade to SQL

SQL Server supports ANSI SQL, which is the standard SQL (Structured Query Language) language. However, SQL Server comes with its own implementation of the SQL language, T-SQL (Transact- SQL). T-SQL is a Microsoft propriety Language known as Transact-SQL. It provides further capab

Bitlocker Administration and Monitoring MBAM Anforderungen: Hardware: 4 CPUs 12 GB RAM 100 GB Disk OS: Windows Server 2008 R2 SP1 Windows Server 2012/R2 Windows Server 2016 SQL Server: SQL Server 2008 R2 SQL Server 2012 SP1 SQL Server 2012 SP2 SQL Server 2014 SQL Server 2014 SP1