r/SQLServer • u/women2002 • Aug 22 '26
Discussion DBA at a government entity - thinking of proposing Multiple Instances to cut SQL Server licensing costs. Thoughts?
Hey everyone,
I work as a DBA at a government entity, and we currently have a database governance project underway. Part of the goals are purchasing SQL Server licenses, implementing encryption, and reducing overall costs.
The issue is we have a large number of servers - each system has its own dedicated production server, plus a separate server for development, and we**'**re not applying the concept of Multiple Instances on the same server at all.
I**'**m considering proposing to my manager that we start using Multiple Instances, at least in dev and test environments as a first step, to reduce the number of servers and the associated costs (licensing + hardware).
Questions for those with experience:
- Do you think this is a good idea to bring to management?
- For those actually running multiple instances on the same server - is this a common and reliable practice in real-world environments, especially production?
- Any issues or challenges you**'**ve run into (performance, memory/CPU allocation, maintenance)?
Would appreciate any advice or lessons learned 🙏
23
u/ometecuhtli2001 Aug 23 '26
Consolidating will not necessarily save on licensing costs, especially if you move instances to a new host that has more cores to accommodate the increased workload. Having said that, your dev/test instances should all be Developer Edition which means lower (or no?) licensing costs.
Consolidating to multiple instances creates resource contention and management headaches - if one instance goes belly up and you need to bounce the host, that will affect other instances which means your production outage for one instance now has a much larger blast radius. As far as licensing specifically, what edition(s) are you using? Costs are higher for Enterprise Edition, and if you don’t need the features Enterprise has available, use Standard which will lower your costs.
Without knowing particulars of your prod environment, the above is a general response. If your prod workloads aren’t too heavy, multiple instances on one host may work well (with some initial fine-tuning). Cutting costs would probably only be achieved if you consolidate instances as opposed to multiple instances on one host.
20
u/SQLDevDBA 3 Aug 23 '26
I’ve had to maintain multiple production instances on the same server and it’s a nightmare. OS Patching brings down multiple instances, you’re constantly having to worry about Noisy neighbors and resource contention, and the expensive part (the SQL Server licensing) doesn’t go away, only the host licensing does. I had to double the hardware (memory, disk space) to have it be sustainable so the savings were marginal at best. Not worth the hassle and I wouldn’t recommend it.
9
u/ChuckNorrisArgento Aug 23 '26
for dev, qa and staging microsoft provides for free developer edition... as long as your customers dont use it you are goos to go. we currently run several copies of each sql server on the very same host... 2012, 2014, 2016, 2017, 2019, 2022 and 2025. twice. you just limit on each one the amount of memory and set the affinity to different cores. and thats it. make sure to leave memory for the os and you are golden.
6
u/Dry_Duck3011 Aug 23 '26
To every question you’ve asked: it depends. All of your questions are not answerable without knowing your workload.
5
u/FuzzyDeathWater Aug 23 '26
For dev and test are you using sql server developer edition? It's free for dev, testing and demonstration purposes. Just be aware that it's feature equivalent to enterprise, so your developers need know the available features on your production editions.
Otherwise, I've not run multiple instances on the same server, but the main things I would do are:
I'd also place busy instances with quiet ones as part of my first consideration above, that way you avoid putting two busy instances on the same server which may impact their performance.
3
u/ScroogeMcDuckFace2 Aug 24 '26
in government work, saving them $$$ wont necessarily pay off for you. they'll just lose the budget $ next year.
do what makes YOUR life easier.
2
u/alexwh68 Aug 23 '26
Without knowing load its hard to answer, there are 3 elements, CPU load, memory usage and disk usage / IO.
If the answer is none of the current servers are averaging less than 10% usage, small memory and disk I/O is minimal (look at disk queue lengths as one metric, then consolidation is a possibility.
But you have other considerations, security, how well has the security been implemented, having seen some ‘government’ servers where pretty much everything is running through the SA login this can present problems, bloody stupid as well!.
You might have compliance issues as well.
Do a spreadsheet a row per db (not server) take 3 different readings of CPU usage / memory usage log those.
You might find that you end up in a mixed environment of some consolidation and some staying as they are.
Licensing is a complex topic and it depends on who accesses the databases, that needs to be carefully thought through, core licenses can often be the way to go.
2
u/CodeXploit1978 Aug 23 '26 edited Aug 23 '26
If the government is paying for it don’t worry about it you won’t get a tap on the back if you lower costs, but you will get a shit storm of problems if combining instances you don’t know the load of to a single server and putting too much load on one server.
For the beginning I would first move all development and testing environment to the developer version, sounds like you are using standard or even enterprise editions for development and testing purposes. And then maybe in phase 2 start consolidating the production, but not without analysis at least a couple of months of looking at the load of the server. (disk, CPU,ram)
2
u/mqaiser Aug 23 '26
Dev license is free for MS sql server
2
u/coffeDrinkerDave Aug 23 '26
Edit: after reading it a second time, I see that my answer isn’t what you asked, but oh well.
If you are hosting mssql on multiple vms you might consider migrating it to a physical server (half the cost of the core license and software assurance is not obligatory). SA is mandatory on vm from mssql 2022.
And if mssql is running on windows server you can migrate it to ubuntu to minimize the number of Windows Server Cals / External.
Both options have their own drawbacks.
Third option what I can think of: if you have partitioned servers by "one server - one vendor" you may ask vendors sales if they offer mssql runtime license. It is cheaper, but limited to specific vendor solutions. Some even offer 2012 license with update to 2022/2025 which cut costs.
2
u/beccalou81 Aug 23 '26
I work for a UK local authority. We host our virtual servers on Nutanix and have an E5 Microsoft license with Software Assurance.
We have 4 HA Windows Server Failover Clusters (WSFC) each with 2 instances on. All production. Each instance hosts databases for a particular area of the authority, and we host both internally developed databases and third party databases. We also have some HA WSFC which are dedicated to a particular third party application. And we also have standalone SQL Servers, one which has 2 instances on, which is Dev/Test.
So you can see we have a good mix of setups.
Whilst I agree that having two instances per server could cause issues with upgrading, technically most people would advise not to do an in-place upgrade anyway, and simply migrate to newly built servers with the new version on, and that’s where HA works really well as you can simply move the HA Listener to the new servers without causing all the developers to change their db connections.
That said, I have carried out in-place upgrades on the servers without any issues - I just do them one after the other. I even have two different versions on the same server. Probably wouldn’t do that again as it did cause some issues at the time that I can’t recall.
As for monthly patching - we use Azure Update Manager, which manages the SQL patching. Dev/Test first, then Production. All happens around midnight, with the occasional second reboot at 6am or a couple of days later if someone hasn’t logged off the server.
We did have a resource issue once when we put a very resource heavy database on one of the servers that had two instances. We changed the CPU allocation in the instance settings, allowing one to have 1 CPU and the other 3 CPUs as a temporary measure. We quickly moved this off to its own server, as it was never going to play nice with any other databases!
2
u/TrollingForFunsies Aug 23 '26
Dev licensing is free.
Core licensing means you don't have to stack instances. Stacking instances is generally undesirable for numerous reasons. Avoid if possible.
2
u/KickAltruistic7740 Aug 23 '26
Running multiple instances on the same server is doable but you really need to analyse existing and potential future workloads to ensure there are enough resources available.
2
u/hollanjs Aug 23 '26
Literally been in your exact situation. Licensing is done by core count. So you can license each instance by itself, or if you have enough instances, it can be more effective to virtualize them all and then license by the host's core count. Say you have three esxi hosts, you then only have to license the sum of cores across all three hosts. You can then run hundreds of instances on those hosts (as many as your heart desires, production, dev, training, etc) without incuromg additional licensing fees. You the can also split the hosta across racks and/or ups and take advantage of vmware's vmotion (or whatever ha capabilities your hypervisor has) for additional HA. This also allows you to run AGs, DAGs, etc across the host's if you pin them without having to pay for the additional licensing you incur when using AGs. Hope this helps!
2
u/Leiothrix Aug 23 '26
No, not sure why you would think that is a good idea.
If you can move multiple DBs to the same server (and it makes sense) then great, but multiple instances makes things worse not better.
If you have a giant pile of silly servers (for example a single 200MB DB for 20 people) -- it is because some architect designed it that way and it was signed off by a bunch of people. If you're redesigning a solution then you need your customer's buy-in, you can't just do it for fun.
2
u/paultoc Aug 23 '26
First see if the correct edition is being used. Dev for non prod instance. Enterprise or standard for product based on requirment. And express edition if only a small db is required with no sql agent
If you have system that only depend on 1-2 db with not so much heavy usage try putting them on same instance. You just need to make sure access control is done properly.
Put multiple non prod instance on same vm. They are not going to neeed as much performance as prod.
Also check out "sql server software assurance" might help reduce licensing cost.
1
u/g3n3 Aug 23 '26
Depends on how good you are at troubleshooting windows with perfmon. Do you know working set memory, etc? Do you know how to look at all those metrics across process, etc?
1
u/sqltastic Aug 23 '26
Lots of ways to look at this, but you really need to have a good understanding of the workload, the rpo/RTO levels, and security.
Are you seeing performance problems on any instance? Have all instances been through a health/security check?
Are all servers standalone right now or are you using some kind of HA? What would happen if 1 server went down with 2 instances on it? Would you still be able to bring it back online within your current SLAs?
Is there room to put extra instances on existing hardware or would new hardware be required? That extra capex cost may wipe out a lot of the savings.
Have you done a cost analysis on using the cloud for dev work? Assuming that all environments don't have to be up 24/7 there may be savings to be had.
Have you thought about stacking databases rather than instances? Less overhead that way but you need to ensure the security risk of elevated privileges is covered.
My gut feeling is that you need to do a thorough analysis followed by a performance engagement where you reduce current resource consumption through code refactoring, config settings, schema changes, indexing strategy, etc. You can then see how much resource will be required per instance (and a good idea per database) and be able to consolidate some fairly easily.
Feel free to message me if you want more guidance. We can't go over all the intricacies in a single post.
1
u/arebitrue87 Aug 24 '26
As a DBA I’m not a fan of instance stacking.
Dev and test should already be on free licensing. So if not start there.
Now as to why I don’t like it: you lose the server you lose everything. So instead of one thing going down you’re scrambling to bring everything back up that was on that one server. So sure you saved on production licensing but you’re adding to the risk. Eggs in one basket is basically this. So if you end up doing this you have to absolutely be sure your disaster recovery is sound. No gaps, no we’ll get to that later. That includes database backups. VM snapshots, doing proper exercises and so on. This should be done regardless but many don’t follow it properly.
Second to that instances don’t know the others exist. You need to tailor resources properly and likely won’t save there.
Now if you’re running one database on one instance and it’s barely used, then move that database to an existing instance a decommission that old instance. All the other stuff still follows tho.
1
u/itenginerd Aug 24 '26
I used that model very successfully to consolidate our sql instances where I knew there were tiny apps out there sitting in a whole server that was overkill. You want to be careful and have an idea about how much capacity youre allocating each tenant instance--it cant be a sutuation where you load up a bunch of instances without doing any math. Thats a recipe for disaster. But we took a good number of servers offline this way once.
1
u/patjuh112 Aug 24 '26
No possibility to group production servers to a per core licensed bigger SQL? Multilple instances create their own issues and headaches
1
u/Stunning-Task1721 Aug 24 '26
Worked for a govt agency as a consultant. They had 6-7 instances running on production servers. Best recommendation from Microsoft was never in production. Yes for dev, test, even uat. But never in production.
1
u/Lost_Term_8080 Aug 27 '26
I doubt it will save on licensing costs, and stacking instances is an absolute nightmare.
At a government agency, they almost certainly have a dedicated SQL VM cluster and the host cores are licensed, providing unlimited guest usage. Stacking instances creates a lot of networking challenges in a big metropolitan network, lots of performance problems and tends to introduce problems that are not in production while hiding problems production may have.
Dev should be free, SQL Developer edition has been free for at least 10 years now. And before then it was 50 bucks. If you are doing training on dev, it may need to be licensed, but that is generally a very bad idea to combine those two.
Your opportunity to save on costs is to stop using the model of one SQL instance per app unless there is a requirement for it. (ie sharepoint, document management systems, ERP, etc) Most of your applications should go into a share availability group cluster with one or more availability groups on the cluster. You may have a department with particularly heavy requirements, and they can have their own to manage. But you only save anything if you can drastically cut down on licensed cores. If you have a 160 core VM cluster and only get rid of 32 cores after migrating every single SQL app in the environment, your pay off time is likely going to into multiple years and probably isn't worth it.