Вы находитесь на странице: 1из 20

The Power OSS on Azure

Nuestro enfoque hacia el código abierto en


AZURE

Enable Integrate Release Participate


Enable Linux and Open Source Embrace leading Open Source Release key Microsoft Microsoft engineers to
technology to be first class ecosystems and integrate technologies into the Open participate in communities
citizens on Microsoft Platforms Microsoft products with agility Source domain to build a and contribute to key Open
and consistency strong ecosystem Source projects

R Server autorest
.NET Core PowerBI Visuals
Roslyn Office UI Fabric
TypeScript Tools plugins
F#

Open Source Partners & Ecosystem


Microsoft + Open Source: Empoderando a
los Clientes
Our Products Our Offerings
Azure M arketplace
60% of all images in Azure
SQL Server on Linux Marketplace are based on
Acquisition Linux/OSS
HD Insight managed
service on Linux
C:\Users\markhill> bash 1 out of 3 VMs on Azure run
root@localhost: #
1 out of 3 Linux, and more than half of all
Run Linux on Windows natively new VMs run Linux

Our Partnerships Our Employees

Ross Gardler Miguel de Icaza


Partnership Jenkins project on Azure President Apache GNOME Creator
Xamarin
SW Foundation Ximian-Mono .NET Linux
Joins Microsoft
Partnership with the
Linux Foundation for 600 Million+ Brendan Burns
Microsoft joins Linux on Azure Lines of open source code Co-Founder of
Eclipse Foundation certification Microsoft Open Source Hub Kubernetes
SQL SERVER 2017 EN LINUX
SQL Server 2017
• Next major release of SQL Server
• Currently in Customer Technology Preview (CTP 2.1)
• Monthly releases of new features and fixes
• Release notes
• CTP 1.0 (Nov 2016),…,CTP 2.0 (Apr 2017), CTP 2.1 (May 2017)
• Lots of new features (beyond just SQL Server on Linux)
• Production support with Early Adoption Program (EAP)
• SQL Server R Services or Machine Learning Services
https://aka.ms/eapsignup
Microsoft SQL Server 2017 ya está disponible de forma
Productiva

A partir del 2 de octubre de 2017, Microsoft SQL Server 2017 ya está disponible de forma general.
Use el rendimiento y la seguridad líderes del sector de SQL Server en los contenedores de Linux y
Docker para las cargas de producción, permitiendo a los desarrolladores compilar aplicaciones
inteligentes mediante el lenguaje y entorno de su preferencia
Donde puedo ejecutar SQL SERVER 2017?
• Windows 64-bit (ISO and CAB)
• Linux (supported Linux distributions)
• Red Hat Enterprise (RHEL) 7.3
• Azure VM template (RHEL 7.3)
• Docker 1.8
• on Windows Image
• on Linux Image
• What about macOS or XYZ Distro?
• Not planned for support but likely to work or use Docker
¿Cómo se ejecuta SQL Server en Linux?
• SQL Server Operating System (SOS/SQL OS)
• Internal abstraction layer for tasks, schedules,
memory,…
• Drawbridge project SANDBOX on linux seccomp

• MSFT Research late 2011


• Application sandboxing – isolating,
picoprocesses, library OS,…
• https://www.microsoft.com/en-us/research/project/drawbridge/

• SQL Platform Abstraction Layer (SQL PAL)


Performance Analysis of Logs
¿Cómo se ejecuta SQL Server en Linux?

Outcome:
Efectivamente, el mismo código para Windows se ejecuta en Linux
https://cloudblogs.microsoft.com/sqlserver/2016/12/16/sql-server-on-linux-how-introduction/
SQL Server on Linux
• Minimum system requirements:
• 2 GB memory (tested up to 1TB to date)
• 6 GB disk space minimum Processor speed 2 GHz

Processor cores 2 cores

• Supported file systems: Processor type x64-compatible only

•XFS or EXT4 (other file systems, such as BTRFS, are unsupported)


• If you use Network File System (NFS) remote shares in production, note the following support requirements:
• Use NFS version 4.2 or higher. Older versions of NFS do not support required features, such as fallocate and
sparse file creation, common to modern file systems.
• Locate only the /var/opt/mssql directories on the NFS mount. Other files, such as the SQL Server system
binaries, are not supported.
• Ensure that NFS clients use the 'nolock' option when mounting the remote share.
SQL Server on Linux - INSTALL
• Install & config
• mssql-server
• command-line tools
• Sql server agent
• Restore a database
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo

sudo yum install -y mssql-server

sudo /opt/mssql/bin/mssql-conf setup

systemctl status mssql-server

sudo firewall-cmd --zone=public --add-port=1433/tcp --permanent

sudo firewall-cmd --reload


SQL SERVER 2017 EN ADMINISTRACION EN LINUX
SQL Server on Linux - Administration
• Connecting – via ssh protocol – putty, ssh,...
• Command pipeline – similar to PowerShell’s |
• Admin commands
su/sudo – “run as” admin
• File
nano/vi/emacs,… - console text editing and more
grep/sed/ack – text file patterns, regex, stream & transform
ls/find/mkdir/rmdir/touch – navigate and modify files & folders
• Process and performance related
top/htop - displays process and resource usage
ps/kill – active processes, signal or terminate a process
SQL Server on Linux - Administration
• Network
ifconfig – view, config & control interfaces
traceroute & ping
• Storage
parted – partition/formatting
mkfs – format file system on a partition
mount/unmount – attach/detach into the root file system
df – mounted file system free space & usage
du – used space for given directory
chown/chmod/setfacl – file permissions/ACL’s
lvcreate/lgcreate – create lvm disk, groups

* General Linux admin support links in the slide notes


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
SQL Server on Linux – High Availability
• Shared-disk clustering using Pacemaker
• Pacemaker != WSFC
• Availability Groups
• All features supported
• Read-only routing
• Auto-seeding High Availability Add-On
• Distributed/subnets
• Failover options
High Availability Add-On
Red Hat® Enterprise Linux® High Availability Add-On allows a service to fail over from 1 node to another with no
apparent interruption to cluster clients, evicting faulty nodes during transfer to prevent data corruption. This
Add-On can be configured for most applications (both off-the-shelf and custom) and virtual guests, and
supports up to 16 nodes. The High Availability Add-On features a cluster manager, lock management, fencing,
command-line cluster configuration, and a Conga administration tool.
Configure your Red Hat Enterprise Linux High Availability Add-On
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,…
SQL Server on Linux - TOOLS
• INSTALACION MICROSOFT • Visual studio Code
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup https://www.visualstudio.com/es/downloads
Log Shipping on Linux
• INSTALACION REDHAT https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-use-log-shipping?view=sql-
server-linux-2017
https://access.redhat.com/articles/3205051
Configuracion Especiales SQL LINUX
• https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-mssql-
• SQL Manager Studio conf?view=sql-server-linux-2017
https://github.com/Microsoft/sqlopsstudio
• SQL SERVER MIGRATION ASSITENTE
• SQL Server command-line tools • https://docs.microsoft.com/en-us/sql/dma/dma-overview?view=sql-server-2017
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools • https://docs.microsoft.com/en-us/sql/dma/dma-assesssqlonprem?view=sql-server-
2017
• https://docs.microsoft.com/en-us/sql/ssma/sql-server-migration-assistant
• Install SQL Server Agent on Linux
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-sql- • Migration On Premise.
agent https://docs.microsoft.com/en-us/sql/dma/dma-migrateonpremsql?view=sql-server-
2017
• Install SQL Server Integration Services (SSIS) on Linux
https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-ssis • SQL Server R
• Tunning SQL on Linux https://docs.microsoft.com/en-us/sql/advanced-analytics/tutorials/sql-server-r-tutorials

https://docs.microsoft.com/en-us/sql/linux/sql-server-linux- • Documentacion General


performance-best-practices?view=sql-server-linux-2017 https://docs.microsoft.com/en-us/sql/sql-server/sql-server-technical-
documentation?view=sql-server-2017
Demo instalación en Linux
¡Muchas Gracias!

Вам также может понравиться