Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

The Inefficiencies of Kubernetes

A report of cloud Kubernetes usage shows that these resources are being under-utiliized, over-provisioned, and costing more than necessary for many organizations. From the previous year, average CPU declined from 13% to 10%, and memory is used at only around 23%. Companies are over-provisioning their clusters, which is understandable. No one wants to have systems overloaded and users complaining about performance.

However, this is a similar tension to what we see with virtualization on-premises. Operations people want to leave plenty of CPU/RAM/IO headroom for systems to handle bursting or increasing workloads. Management wants to get all the use they can out of their investment and would prefer we provision systems as closely as possible to their expected workloads. Containers and orchestrators should allow a closer match, but only if there are workloads that burst enough to require additional containers and pods to be deployed. That does happen with memory occasionally at a little over 5% of containers exceed their memory, but that's not a significant amount.

Managing a Kubernetes cluster is a specialized skill and most organizations don't have the skills or experience to do it well. My view is that if you want to use an orchestrator, you're better off letting the cloud providers manage the infrastructure and scale up and down as needed. There are autoscaling technologies to help Operations staff better manage their capacity and costs, but this is an additional skill people need.

While I do think some companies are adopting cloud native technologies and rewriting their applications to run in containers and Kubernetes clusters, I find many more companies are hesitant to adopt a very complex technology on top of the complexity of teaching their developers to work within containers for their applications. Certainly in the Microsoft space, I don't see a lot of database servers running in containers. Despite some of the advantages of upgrades and downgrades, the unfamiliarity with the ins and outs of containers leads most teams to continue to manage the database separately.

Resource matching to a workload is a problem we've had for years and Kubernetes doesn't make this any easier to deal with. The cloud is supposed to help us better manage our resources, but there is a lot of knowledge needed to do this well. Add in the cost/performance issues in the cloud and it's no wonder that many companies have overprovisioned their resources to ensure systems continue running. I don't know whether lots of IT staffers are optimistic about their workload growth or scared of potential problems from overloaded systems, but unless organizations carefully manage all their resources, they are likely to continue to see larger cloud bills than they like.

Steve Jones - SSC Editor

Join the debate, and respond to today's editorial on the forums

 
  Featured Contents
SQLServerCentral Article

Implementing Fuzzy Search in SQL Server Using New Inbuilt Functions

utsav from SQLServerCentral

Learn about the new string similarity functions in Azure SQL Database.

External Article

Basic Regex Emulator for SQL Server

Additional Articles from MSSQLTips.com

Regular expressions (REGEX) let you adaptively investigate, employ, and authenticate text data. This makes it easy to search for simple or complex string patters. There is no direct way to do this in SQL Server, but in this article we look at some SQL functions you can create to emulate regex like functionality.

Blog Post

From the SQL Server Central Blogs - Can an AI Help Me Find a Job?

Steve Jones - SSC Editor from The Voice of the DBA

I’m not looking for a job, but I ran across an article about using AI tools for a job search. So I decided to try it out. I followed...

Blog Post

From the SQL Server Central Blogs - EightKB 2025

[email protected] from The DBA Who Came In From The Cold

EightKB is back! The biggest online SQL Server internals conference is back in 2025…it’s all happening on August the 21st! We’ve open our call for speakers, you can submit...

The Definitive Guide to Azure Data Engineering: Modern ELT, DevOps, and Analytics on the Azure Cloud Platform

The Definitive Guide to Azure Data Engineering: Modern ELT, DevOps, and Analytics on the Azure Cloud Platform

Site Owners from SQLServerCentral

Build efficient and scalable batch and real-time data ingestion pipelines, DevOps continuous integration and deployment pipelines, and advanced analytics solutions on the Azure Data Platform. This book teaches you to design and implement robust data engineering solutions using Data Factory, Databricks, Synapse Analytics, Snowflake, Azure SQL database, Stream Analytics, Cosmos database, and Data Lake Storage Gen2.

 

  Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

The Backup Space Needed

How do I calculate the amount of space needed for I/O buffers during a backup operation?

Think you know the answer? Click here, and find out if you are right.

 

 

  Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Replacing a Null

What is returned from this code in SQL Server 2022?

DECLARE @value INT = NULL; SELECT ISNULL(@value, 100.5) AS Result; 

Answer: 100

Explanation: The ISNULL function will return a value that is the same datatype as the first parameter, which is the value being checked for null. In this case, that is an INT, so the second param is implicitly converted to an int. Ref: ISNULL - https://learn.microsoft.com/en-us/sql/t-sql/functions/isnull-transact-sql?view=sql-server-ver16

Discuss this question and answer on the forums

 

 

 

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.


SQL Server 2017 - Administration
Log Shipping Not Able to Restore Log Files in Secondary - I'm attempting to set up log shipping from SQL Server 2005 Standard to SQL Server 2017 Standard. I have restored the database in the follow storage layout on the SQL Server 2017 machine: D:\Data\.mdf L:\Logs\.ldf When I execute the restore job and it skips all log backups. I ran restore verifyonly for the log backups […]
SQL Server 2017 - Development
Fax/Phone Area code Substring - Hello, For the below SQL, why the column "Phone_Country_Code" Code is showing "0" instead of Empty String, tried various logical function but always display 0.   WITH SM AS (SELECT 'US' country_code, '8009222820' order_phone UNION ALL SELECT 'US','' order_phone UNION ALL SELECT 'CA', '15403262611' order_phone UNION ALL SELECT 'CA', null order_phone UNION ALL SELECT 'CA', […]
SQL Server 2016 - Administration
Migrating MDS model individually using MDS UI - Hi All,   Is there a way i can create package for an individual model from MDS and then import to another sql server? I tried using MDSModelDeploy command, however it failed as below without much details   Creating a package for model My_Model MDSModelDeploy operation failed. Elapsed time: 00:00:00.9550522 Error: A database error has […]
SQL Server 2016 - Development and T-SQL
Update records based on several common columns - I have 4 tables (apologies for the formatting of the tables,  I don't know how to better show it) Order lines table: | Id | RateTierIds | price| | -----|-------------|---| | 1 | 1 | 20 | | 2 | 2 | 30 |   Rate plans table: | Id | Name | | ---|--------| […]
Eliminate a function by writing out the code is now throwing an error - /* I'm trying to eliminate (write out) this function 'largest_date', but SQL Server 2016 is telling me implicit conversion from datetime2 to float can not be done. Is there a way I can get around this, while still ellimating (writing out) the function? dbo.to_numb is just another function, shouldn't effect the CASE this query works […]
SQL Server 2019 - Administration
ExecutionLog3 table in Reportserver Database - I have a SSRS report for which users are complaining to be slow, but from querystore, I can see that the SP (Report only has this SP execution) is taking less than 15sec. In ExecutionLog3 table, timedataretrieval for the same report is showing up to be for more than 20 mins. Could anyone tell me […]
SQL Server Maintenance Plan Feedback - Hi I set this up today.  I wanted to get some feedback.  I have some questions: 1. How often should I be running each subplan? 2. What order should each subplan be run? Here is the plan (proposed): Thank you
Error when trying to enable cdc . Could not update the metadata - Server and db in SQL SERVER 2019. I have multiple tables that are enabled for CDC , however starting in the last two weeks I started getting this error Msg 22832, Level 16, State 1, Procedure sys.sp_cdc_enable_table_internal, Line 673 [Batch Start Line 6] Could not update the metadata that indicates table [DBO].[XXXX] is enabled for […]
Server Role for User Database Access - I am looking to simplify a development server access issue.  Databases are constantly being added to this server/cluster which requires me to add the developer AD group to the new database as a DB_OWNER to allow them to do the needful.  This is a PITA! I have in the past used a job created to […]
SQL Server Migration - Redirecting Old Instance Connections to New AG Listener - Hi everyone, I’ve been tasked with migrating a Standalone SQL Server instance to a highly available environment with minimal disruption (Not wanting to update the connection strings) I’d love to get some advice from the community on the best approach. Current Setup (For the sake of this post) Existing SQL Server: SQLSERVER\INSTANCE New SQL Server […]
SQL Azure - Administration
Create managed identity on Azure SQL MI/ Azure SQL DB using sql login -   I am able to successfully create managed identity on Azure SQLMI & Azure SQLDB, i login through MFA and my account has sysadmin privileges.  I need to be able to create managed identity using sql login and that sql login only has db_owner permissions, when i try to create managed identity it fails with […]
Azure SQL database import permissions - What the required permissions are for "Database import" on an Azure SQL database   Trying to import a database or copy it from another Azure sql With database import, before you get to the selection of subscription ... Extension: SqlAzureExtension Content: DatabaseImportBlade Resourceid /subscriptions/1ec..... Error: 403
SSRS 2012
Parameter dataset doesn't show results in dropdown - My report has been working fine. Now, when I run the report, the Location parameter randomly loses its data. When I use the dropdown, it is blank. It's filling in now but, tomorrow it may be blank. Any thoughts
SQL Server 2022 - Administration
Installing SQL FCI Instance certificates - SQL FCI Instance certificates I have a client who has a requirement for certificates bound to the instance in a FCI environment. I have create the certificate and installed on both nodes, but I get a cluster error when failing over. The environment setup Node1 Node2 FCI Instance name\SQLInstance   Have set the FCI and […]
Merge Replication - Lost Change - I have a server set up as publisher/distributor and another as subscriber to a merge publication that includes tables/views/sprocs. The merge process runs every 10 seconds and is generally working fine. Recently, a change was pushed to a table included in the publication that added a column and assigned an FK constraint to another table […]
 

 

RSS FeedTwitter

This email has been sent to [email protected]. To be removed from this list, please click here. If you have any problems leaving the list, please contact the [email protected]. This newsletter was sent to you because you signed up at SQLServerCentral.com.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
[email protected]

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -