Skip to content
Notifications
Clear all

Switched from SonarCloud back to self-hosted SonarQube. The control is worth the pain.

3 Posts
3 Users
0 Reactions
24 Views
(@danielg)
Reputable Member
Joined: 2 months ago
Posts: 297
Topic starter   [#17061]

Just had to share this shift back after a year on SonarCloud. For our team, the promised simplicity of the SaaS version started to feel like a straitjacket. The control we gave up over scan configurations, plugin compatibility, and even data retention became a real bottleneck as our projects diversified.

It’s not all roses, of course. The initial setup and maintenance overhead is real, especially around managing the database and updates. But being able to tailor quality gates per team, integrate a niche plugin for legacy code analysis, and keep our scan data completely in-house has been a game-changer for our security posture and workflow. The pain is in the ops, but the gain is in the granularity.

Curious if others have made a similar round-trip? I’m particularly interested in how teams are handling the resource trade-off. Are you running it on-prem, or in a private cloud? What’s been the biggest ops headache versus the biggest flexibility win?

✌️


✌️


   
Quote
(@alexh42)
Reputable Member
Joined: 3 months ago
Posts: 227
 

Senior engineer here at a mid-sized fintech (~120 devs, Java/Scala/Python stack). We run SonarQube Developer Edition self-hosted on our own K8s cluster, managing about 300 projects.

You're right about the control trade-off. Our team did the same evaluation last year. Here's a breakdown from our notes:

* **Real Operational Cost:** The SaaS pricing was around $4-8 per developer per month. Self-hosted licensing is a flat annual fee that dropped our per-head cost significantly, but you must add ~15-20 hours per quarter for DB maintenance, version upgrades, and pipeline plugin compatibility checks. It's not free labor.
* **Configuration Flexibility:** With self-hosted, we built custom quality profiles for each service tier. Our payment gateway service has stricter security rules (OWASP Top 10 for 2021) than internal tools. In SonarCloud, we were locked to a single profile per language for the whole org.
* **Plugin & Data Sovereignty:** We integrated a third-party plugin for analyzing legacy framework security flaws, which isn't available in the cloud marketplace. More critically, scan data never leaves our network, which was a mandatory checkbox for our infosec team's audit.
* **Performance & Scale Gotcha:** The initial setup was deceptively easy, but the breaking point was database performance. At around 250 active projects, we had to migrate from the embedded H2 database to PostgreSQL and tune the connection pool. Scans would time out during peak CI hours otherwise.

I'd recommend self-hosted if you have over 50 developers, stringent internal security policies, or need heterogeneous quality gates across teams. If your org is under 30 people, uses mostly standard languages, and values zero-ops, stick with SonarCloud.

To make a clean call, tell us your team size and if you have any compliance requirements like SOC 2 or handling PII in your codebase.



   
ReplyQuote
(@davidh)
Honorable Member
Joined: 3 months ago
Posts: 410
 

Our team made the exact same round-trip about 18 months ago, and your point about configuration feeling like a straitjacket hits home. The operational cost you mentioned is real, but we've found a middle ground by containerizing the entire stack and running it on a dedicated, isolated Kubernetes namespace in our private cloud. This mitigates some of the traditional on-prem database maintenance pain, as we treat the SonarQube instance like any other stateful application, with automated backups via Velero and resource limits.

The biggest flexibility win for us, beyond the custom quality gates, has been the ability to integrate the analysis directly into our developer inner loop. We have a custom plugin that posts detailed, context-aware findings into our internal code review tool, something SonarCloud's API rate limits and generic webhooks couldn't support. The biggest ops headache remains the version upgrade process, specifically the lag time for third-party plugin developers to certify compatibility with new SonarQube releases, which can stall our security updates for weeks.


Data over dogma


   
ReplyQuote