Presentation is loading. Please wait.

Presentation is loading. Please wait.

2017 SQL Server vNext Linux and Beyond Andrew Loree

Similar presentations


Presentation on theme: "2017 SQL Server vNext Linux and Beyond Andrew Loree"— Presentation transcript:

1 2017 SQL Server vNext Linux and Beyond Andrew Loree
SQL Server 2017 – Linux and Beyond Andrew Loree

2 Thank you to our SQLSaturday Sponsors

3 Got a question? Andrew Loree
andyloree.com @LowOnDiskSpace

4 Are you passionate about helping customers unleash the value of their data? Building mission critical solutions? Using hybrid database platforms that have everything built in – from in-memory performance and advanced security to in-database analytics? Joining a team of passionate people who share your curiosity and dedication to discovering the value of data? Come join our team of consultants and Premier Field Engineers at Microsoft Services. Send us your resume, we want to know more about you: To register for more Microsoft information: If you’re interested in other positions with Microsoft, check out our current open jobs at Microsoft.com/ServicesCareers

5 Goals To understand: What is SQL Server 2017
Install and configure on Linux Running on Docker What else is new? What is next?

6 https://aka.ms/eapsignup
What is SQL Server 2017 Next major release of SQL Server Currently in Customer Technology Preview (CTP 2.0) Monthly releases of new features and fixes Release notes CTP 1.0 (Nov 2016),…,CTP 1.4 (Mar 2017), CTP 2.0 (Apr 2017) Lots of new features (beyond just SQL Server on Linux) non-Production support with Early Adoption Program (EAP) Describe the purpose, link to source info, release notes, …

7 Where can I run SQL Server 2017?
Windows 64-bit (ISO and CAB) Linux (supported Linux distributions) Red Hat Enterprise (RHEL) 7.3 Ubuntu Linux 16.04 SUSE v12 SP2 Azure VM template (RHEL 7.3) Docker on Windows Image on Linux Image What about macOS, XYZ Distro? Not planned for support but likely to work or use Docker Windows 64-bit (ISO and CAB) - Linux (supported OS packages) Red Hat Enterprise (RHEL) Ubuntu Linux SUSE v12 SP2 - Azure VM template (RHEL 7.3) - Docker on Windows Container - on Linux Container - macOS – use Docker

8 How does SQL Server run on Linux?
SQL Server Operating System (SOS/SQL OS) Internal abstraction layer for tasks, schedules, memory,… Drawbridge project MSFT Research late 2011 Application sandboxing – isolating, picoprocesses, library OS,… SQL Platform Abstraction Layer (SQL PAL) Started with SQL 2005 design Reference

9 How does SQL Server run on Linux?
Started with SQL 2005 design Reference Outcome: Effectively the same compiled code for Windows runs on Linux

10 SQL Server on Linux Minimum system requirements:
4 GB memory (tested up to 1TB to date) 2 GB disk space minimum Supported file systems: ext4 or xfs

11 SQL Server on Linux - Demo
Install & config mssql-server command-line tools Sql server agent Restore a database

12 SQL Server on Linux - Administration
Configuration – Port, SA password, default paths, traceflags /opt/mssql/bin/mssql-conf list /opt/mssql/bin/mssql-conf set network.tcpport 1433 Service control – systemd service manager systemctl enable mssql-server systemctl disable mssql-server systemctl start mssql-server systemctl stop mssql-server systemctl status mssql-server Logging Default path for errorlog, XE - /var/opt/mssql/log syslog by default for SQLPAL, so make sure to monitor

13 SQL Server on Linux - Administration
Use Linux commands* for admin functions df – mounted file system free space & usage du – used space for given directory top/htop - displays process and resource usage ps – active processes chown/setfacl – file ownership/acl’s * General Linux admin support links in the slide notes

14 SQL Server on Linux – High Availability
Shared-disk clustering using Pacemaker Pacemaker != WSFC Availability Groups All features supported Read-only routing Auto-seeding Distributed/subnets Failover options

15 SQL Server on Linux - Performance
Hardware/virtualization and OS vendor recommendations Storage configuration & separation rules still apply Tempdb, data, log, … Kernel tunables (sysctl): vm.swappiness = 10? vm.dirty_reads fs.file-max Check out TPC-H support documents for SQL on Linux submission SQL configuration practices: max server memory, MAXDOP, trace flags,… ALWAYS BASELINE, CHANGE & TEST AGAIN!

16 Machine vs OS Virtualization (containers)
What is Docker? Machine vs OS Virtualization (containers)

17 Why Docker? Resource efficiency – shared OS
Manage apps side-by-side in isolation – higher density Not a new concept (FreeBSD Jails, Solaris Zones,…) Easy container management Portable Ready-to-run containered applications Ability to create your own Integration into DevOps world Puppet, Chef, Vagrant, Ansible,…

18 Docker - Terminology Images – collection layered file system changes
Does not have state and never changes Registry – hosting service of images 100,000 apps on Docker Hub Containers – runtime instance of an image Layered filesystem Data Volumes - persisted Network port bindings

19 SQL Server Docker - Images
Two different base-images: Linux and Windows Github - Requirements Docker Engine 1.8+ Min 4 GB disk Min 4 GB memory

20 SQL Server Docker - Demo
Docker commands Pull mssql-server-windows image Create a container, mapping port and data volume Restore a database Create more containers, using “attach_dbs”

21 SQL Server Docker – Administration
Management tooling options: Kitematic – Desktop UI interface to Hub Rancher - Orchestration Shipyard – Cluster management Deployment: Windows Server 2016 Azure – PaaS and IaaS options Resource allocation: CPU shares Specific cores Memory limit

22 SQL Server 2017 - What else is new?
Lots of Community driven enhancements! Smarter backup information – sys.dm_db_file_space_usage has modified_page counts SELECT INTO … ON FILEGROUP! – keep your staging separate Tempdb per-user database usage information VLF DMF - sys.dm_db_log_info() Sockets, cores per, numa_node_count - sys.dm_os_sys_info Improved small database backup performance

23 What else is new? – Part 2 Resumeable online index rebuilds – pause, continue Graph Processing – represent complex relationships with NODES and EDGE tables, and the new MATCH operator LOB support in Clustered Columnstore indexes Adaptive JOINS – dynamic switching of joins during query execution Query store wait stats – query level wait information Automatic Tuning – query store analysis and automation recommend and fix identified problems

24 What else is new? – Part 3 Reporting Services Stand-alone install
Power BI hosted reports Analysis Services Ragged Hierarchy members Detail row – custom row sets definable in the drill-down Tabular table-level security Machine Learning (formerly R Services) Python language support

25 What else is new? - Demo T-SQL focused fun!
BULK INSERT … FORMAT = ‘CSV’ TRIM(), TRANSLATE(), CONCAT_WS() Graph functionality MovieLens dataset - Full: 24,000,000 ratings and 670,000 tag applications applied to 40,000 movies by 260,000 users. Includes tag genome data with 12 million relevance scores across 1,100 tags. Last updated 10/2016.

26 What is next? More features coming, but bigger items:
Cross-platform, community open sourced, management UI AD authentication on Linux – host must be AD joined (realmd)

27 Need Help? Check the Release Notes Post questions
Stack Overflow (tag sql-server) MSDN Forums Search/File Bugs Microsoft Connect – report bugs/request features

28 Got a question? Andrew Loree
andyloree.com @LowOnDiskSpace


Download ppt "2017 SQL Server vNext Linux and Beyond Andrew Loree"

Similar presentations


Ads by Google