Skip to main content

How Microsoft brought SQL Server to Linux




Back in 2016, when Microsoft announced that SQL Server would soon run on Linux, the news came as a major surprise to users and pundits alike. Over the course of the last year, Microsoft’s support for Linux (and open source in general), has come into clearer focus and the company’s mission now seems to be all about bringing its tools to wherever its users are.

The company today launched the first release candidate of SQL Server 2017, which will be the first version to run on Windows, Linux and in Docker containers. The Docker containeralone has already seen more than 1 million pulls, so there can be no doubt that there is a lot of interest in this new version. And while there are plenty of new features and speed improvements in this new version, the fact that SQL Server 2017 supports Linux remains one of the most interesting aspects of this release.

Ahead of today’s announcement, I talked to Rohan Kumar, the general manager of Microsoft’s Database Systems group, to get a bit more info about the history of this project and how his team managed to bring an extremely complex piece of software like SQL Server to Linux. Kumar, who has been at Microsoft for more than 18 years, noted that his team noticed many enterprises were starting to use SQL Server for their mission-critical workloads. But at the same time, they were also working in mixed environments that included both Windows Server and Linux. For many of these businesses, not being able to run their database of choice on Linux became a friction point.

“Talking to enterprises, it became clear that doing this was necessary,” Kumar said. “We were forcing customers to use Windows as their platform of choice.” In another incarnation of Microsoft, that probably would’ve been seen as something positive, but the company’s strategy today is quite different.

Kumar also noted that many enterprises were looking for an alternative to Oracle’s database products. If you want to run Linux and use a proprietary relational database with full enterprise support, you aren’t exactly spoiled for choice, after all.

As Kumar told me, this wasn’t the first time his team looked at Linux support. “We had a couple of discussions in the past where it wasn’t approved,” he told me. “It wasn’t something considered to be a strategic way for the business.” But three years ago — now with Satya Nadella at the top of the company — the team decided to pitch this idea again.”The biggest surprising part was that we were expecting a whole lot of back and forth. It was really surprising to see how quickly the decisions got made,” Kumar said.

With the decision made, the team faced a daunting task, though: how do you port the tens of millions of lines of SQL Server’s code to Linux? Kumar didn’t want to make any compromise in functionality either, so it either had to be the full core of SQL Server or nothing at all (and for now, that excludes the graphical user interfaces and tools the company offers on Windows).


Sitting over a bowl of pho at a Vietnamese restaurant in Redmond, the team found its answer: Drawbridge. Drawbridge was a research project that launched back in 2011 which basically provided a container with a small API surface and a basic version of Windows configured to efficiently run the application in the container. The idea here was basically to build better and more secure virtual machines. The library OS then executes the application, handles memory management and other vital functions, and integrates with the underlying operating system.

About two years ago, the SQL Server team decided to make this the core of its Linux efforts. “The leadership expressed the right amount of concern,” Kumar commented — and my guess is that there was indeed quite a bit of concern given that Drawbridge was very much an experimental project. But the SQL Server team took over the Drawbridge code base and added it into the SQL OS layer.

This OS layer was, in many ways, what made this project possible. Because SQL Server’s needs always went beyond what Windows and Windows Server were able to offer, especially with regard to memory management, the team had already built many of the standard OS features into SQL Server’s OS layer already. Thanks to this, SQL Server in Drawbridge could manage its own memory, too, for example. The work on this was successful enough that the team didn’t just build this for SQL Server on Linux but actually merged SQL OS and the work it did on Drawbridge into the new SQL Platform Abstraction Layer that now runs on Windows and Linux.

As a result, the SQL Server team can work from a single code base and doesn’t really have to worry about where the code will run (and this includes Microsoft’s Azure platform).

SQL Server for Linux should reach general availability later this year. Even today, a couple of companies are already using it in production, and the Linux version now runs as fast as the Windows version (assuming comparable hardware).

Looking beyond the final release, Kumar noted that the team would take a close look at what to do next. While innovation in the database space continues to accelerate, not all of Microsoft’s customers want annual (or even faster) updates for their mission-critical systems. Given that we’ve lately seen annual SQL Server releases with SQL Server 2016 and 2017, though, I’d be surprised if we didn’t hear about the first SQL Server 2018 preview releases sooner rather than later.

Source: Techcrunch.com

More@ https://www.technapping.com

Comments

Popular posts from this blog

WTF is bitcoin cash and is it worth anything?

Early yesterday morning bitcoin’s blockchain forked — meaning a separate cryptocurrency was created called bitcoin cash . The way a fork works is instead of creating a totally new cryptocurrency (and blockchain) starting at block 0, a fork just creates a duplicate version that shares the same history. So all past transactions on bitcoin cash’s new blockchain are identical to bitcoin core’s blockchain, with future transactions and balances being totally independent from each other. For practical matters, all this really means is that everyone who owned bitcoin before the fork now has an identical amount of bitcoin cash that is recorded in bitcoin cash’s forked blockchain. But it’s not exactly this easy. If you control your own private keys, or hold your bitcoin in an exchange that said it would credit users’ balances with bitcoin cash, you’re fine and can access your newfound cryptocurrency right now. If you held your bitcoin with a provider like Coinbase, which said before the fork t...

Bitcoin breaks $3,000 to reach new all-time high

Bitcoin has reached a record high valuation of $3,000 per coin to complete a rollercoaster week that begin with the long-awaited split of the cryptocurrency. A number of exchanges, including popular destinations Coinbase and Kraken , valued a single bitcoin at over $3,000, an all-time high that is up $485 on the valuation one month ago. Earlier this year, Bitcoin surged to surpass $2,000 for the first time in May going on to almost reach $3,000 in June only for the valuation to crash . Over the last twelve hours, bitcoin’s value has jumped by over 10 percent as forked currency bitcoin cash has seen its valuation crash by 30 percent. Some exchanges including China’s OkCoin even put the value of one bitcoin above $3,200 right now. Finally, the surge means that the total market cap of bitcoin is more than $50 billion — $51,737,289,581 at the time of writing according to Coinmarketcap.com . A Coinbase chart shows bitcoin’s valuation has passed $3,000 per coin One chief concern around t...

Walmart expands its grocery delivery business, powered by Uber

Walmart is expanding a test of its grocery delivery service, powered by Uber, the company announced this week. The retailer is now offering grocery delivery in two new markets — Dallas and Orlando — which join Tampa and Phoenix as locations where consumers can shop online for grocery items, then opt to have them come to their home for an additional $9.95 fee. Grocery delivery has been something Walmart has experimented with for years, starting with tests in Denver and San Jose of grocery delivery using its own service and trucks. The tests involving Uber are newer, however. In June, 2016, Walmart began a trial in Phoenix, which expanded to Tampa this March. In those locations, Walmart offers grocery delivery at five local stores per market. This week’s Dallas test is larger, with 8 stores participating. In Orlando, there are four stores involved. The grocery delivery service is available via the same online grocery shopping website where customers can place their pick-up orders — a s...