Aug 29 2023 10:21 AM
Aug 30 2023 12:29 AM
The duration is a window of time in which the database will be auto-paused if the following two conditions are true for the full duration of that window:
So, if you had a really short duration value of 3,600 (one hour), then if the number of sessions remains at zero for an hour, and the user CPU utilisation also remains at 0 for that hour, the database will be auto-paused.
Cheers,
Lain
Aug 30 2023 06:38 AM
Thanks @LainRobertson
¿What about the other two options? That is CPU Used and Memory Used. I get confused with these two, because we are talking about a scaling serverless tier that in theory doesn't have provisioned a fixed CPU or Memory
Best regards
Aug 30 2023 07:45 AM
Hey, Jonas.
"Serverless" isn't the best term as it can be a bit misleading. The servers are still there, of course, but the difference between the two relevant tiers - "serverless" and "provisioned" is how Microsoft bills you for them.
Starting with the "provisioned" tier - which is more familiar to most people since it's very much the same as a traditional server, you choose how much compute (notably, CPU and memory) and it's always there, and always "on", which in turn means you're always being charged - and at a fixed rate.
In contrast, the "serverless" tier requires that you specify minimum and maximum values for the compute, and additionally asks you for the "duration" it should wait before turning the service "off". This carries the following cost benefits:
There's performance considerations as well when deciding between provisioned and serverless, but the relationship between CPU, memory and auto-pausing is a cost relationship.
Here's some succinct summaries:
Cheers,
Lain
Aug 30 2023 08:09 AM
I completely agree with you, bou my question was around the other two items in the pricing calculator of the Azure SQL Database
¿What about the other two options? That is CPU Used and Memory Used. I get confused with these two, because we are talking about a scaling serverless tier that in theory doesn't have provisioned a fixed CPU or Memory
I appreciate very much yout time and help
Aug 30 2023 05:02 PM
I think you're getting too caught up on the term "serverless".
The CPU and memory settings shown in that screenshot are the same as those found in all decent hypervisors for over a decade now, meaning they're not anything new.
Essentially, these two settings (along with duration) relate to two concepts:
Behind the scenes, the "serverless" option is still ultimately running on a server - there's nothing magic about it.
SQL Server has actually had these variable settings for even longer than hypervisors have. If you've ever set up SQL Server before, you should already be familiar with specifying lower and upper memory limits and CPU affinity (not really the same thing as vCore limits but close enough for this conversation.)
The only thing within your control is setting the limits, which is generally in accordance with service usage patterns and financial budget constraints.
Cheers,
Lain
Aug 31 2023 07:05 AM - edited Aug 31 2023 07:05 AM
You're right, the term "serverless" got confused me. However, based on your clarification I feel much more clear.
So, we could say that CPU Used and Memory Used would be the resources this instance would use at rest, and eventually scale in the range of vCores specified
Am I right?
Best regards
Aug 31 2023 07:38 AM
Solution
So, there's two states which mean different things for the compute resources (CPU and memory):
Cheers,
Lain
Aug 31 2023 12:26 PM - edited Aug 31 2023 04:51 PM
Hi @LainRobertson , sorry if I bother you too much.
Let me find out if I get it righ now, based on picture of the first post:
If the SQL workload is light, the amount of memory and CPU will likely be towards the lower value limits you entered on the configuration page, which translates into a lower bill when it comes time to pay (since you only pay based on utilisation);
So, in this case it will scale down and use 8 vCores (minimum) and 24 GB RAM, at minimum
If the workload is busy, the amount of memory and CPU will likely be towards the upper limits you entered on the configuration page;
In this case it will scale up and use up to 14 vCores (maximum) and 42 GB RAM, at maximum
is that right?
Best regards
Jona
Aug 31 2023 04:51 PM
Aug 31 2023 04:53 PM
Aug 31 2023 07:38 AM
Solution
So, there's two states which mean different things for the compute resources (CPU and memory):
Cheers,
Lain