Skip to main content

Size XL - Sonatype IQ - Azure Cloud-Native Reference Architecture

This Sonatype IQ Server extra-large reference architecture describes the infrastructure for deploying a high-availability IQ Server environment of 3 to 5 nodes in Microsoft Azure using cloud-native services. It supports environments with 30k - 100k onboarded applications and ~25k evaluations on a typical day.

High availability is required at this size.

Sonatype IQ XL reference architecture for 30,000–100,000 applications (450 evaluations per hour; 25,000 per day) in an Azure Virtual Network. Users and CI/CD connect through a load balancer to four IQ Server nodes across Availability Zones A–D, each c

Infrastructure Specifications

This architecture includes the following layers:

  • Compute Layer: IQ Server as a high-availability cluster

  • Database Layer: PostgreSQL

  • Storage Layer: Shared file storage for IQ Server data

  • Search Layer: OpenSearch for Nexus One and Advanced Search

  • Network Layer: Load balancing, connectivity, and security controls

Compute Layer (IQ Server)

The compute layer runs IQ Server and processes application evaluations, policy evaluations, reports and related user activity.

Resource

Specification

IQ Server nodes

3 to 5

Deployment option

Azure Container Apps (HA) or AKS

(AKS recommended at this scale)

Instance type

Container Apps: E16 workload profile, 16 vCPU, 128 GB

AKS: Standard_E16ps_v6 (ARM) or Standard_E16s_v7 (x86) node

Memory for IQ Server

126 GB replica

110 GB AKS pod

Java heap

80 GB on Container Apps

-Xms80g -Xmx80g

73 GB on AKS

-Xms73g -Xmx73g

Direct memory

8 GB

-XX:MaxDirectMemorySize=8g

HA license

Required

The Java heap is at most two thirds of the memory IQ Server gets, rounded down to a whole GB, following Estimating Heap Sizes. Direct memory and the JVM's own memory come out of the free third.

ARM instances are the default for AKS nodes and OpenSearch VMs. If you use the x86_64 equivalent instead, verify its performance is similar for your workload.

Every node needs an HA-capable license. See IQ Server High Availability Installation.

Database Layer (Azure Database for PostgreSQL)

The database stores IQ Server metadata, policy data, configuration and operational state. Terraform provisions it.

Resource

Specification

Service

Azure Database for PostgreSQL, Flexible Server

PostgreSQL version

A version PostgreSQL still supports

Instance class

MO_Standard_E16ds_v6

(16 vCPU, 128 GB)

Storage

512 GB, grows automatically, expected to grow to about 2 TB

IOPS and throughput

P20 tier

High availability

Zone redundant with automatic failover

Storage Layer (Azure Files)

Shared storage holds IQ Server's reports, scan files and logs, and the cluster directory every node shares.

Resource

Specification

Service and tier

Azure Files, Premium SSD

Protocol

SMB 3.0 on Container Apps

NFS v4.1 on AKS

Redundancy

ZRS

Capacity

4,096 GB share quota

IOPS

Premium: 7,096 baseline, bursting to 12,288

Throughput

Premium: 510 MB/s

Container Apps mounts the share over SMB, so Standard HDD serves M and L there. AKS mounts it over NFS, which needs Premium SSD, so the Kubernetes architecture uses Premium at every size, and XL uses Premium everywhere.

Search Layer (OpenSearch)

OpenSearch is required for deployments of this size. One OpenSearch cluster serves Advanced Search and the Nexus One index behind the Nexus One list pages, typeahead, and dashboard. Terraform creates the cluster.

Resource

Specification

Service

Self-managed OpenSearch 3.7, created by Terraform:

Virtual machines on Container Apps

OpenSearch Kubernetes Operator on dedicated node pools on AKS

OpenSearch version

3.x, 3.7 recommended

Data nodes

3 x Standard_E8ps_v6

Storage per data node

250 GB

Data disk

256 GB Premium SSD, the smallest Premium SSD tier at or above the storage per data node

Cluster managers

3 x Standard_D2ps_v6

2 vCPU

8 GB

OpenSearch endpoint

Standard SKU internal load balancer on Container Apps

A Service selecting the data nodes on AKS

Primary shards for component, violation and vulnerability

3

Primary shards for the other Nexus One indices

1

Nexus One index replicas

1

Azure has no managed OpenSearch service, so Terraform builds the cluster with TLS between IQ Server and the cluster, and generates its certificate authority, certificates and passwords. You own upgrades, snapshots, and node replacement on this cluster.

A replica is a full second copy of every shard. It is what makes losing a data node survivable.

The storage per data node covers a rebuild, which needs room for a second copy of the Nexus One index. A rebuild is not a backup: rebuilding a lost index leaves search unavailable until it finishes.

Network and Security

  • Load balancer: Application Gateway

  • Health checks depend on the deployment:

    • The Container Apps HA Application Gateway probes /

    • The AKS load balancer probes /ping

    • The single-instance Container Apps ingress has no health check configured

  • A VNet created by Terraform, with OpenSearch in private subnets when enabled and the database in a delegated subnet with public access disabled. AKS compute runs in private subnets; Container Apps exposes IQ Server through public ingress

  • Security groups or firewall rules restricting access between the layers

  • Secrets management varies by deployment:

    • Container Apps stores the initial admin password, IQ license, and OpenSearch credentials (when enabled) in Azure Key Vault

    • The database password is also stored there for infra-azure-ha

    • AKS stores secrets in Kubernetes Secrets and does not use Key Vault

  • Identity: Managed Identity

  • All databases and storage encrypted at rest

  • Logs on Container Apps: Azure Monitor Log Analytics, and log files on an Azure Files share

  • Logs on AKS: Azure Monitor Container insights

Limitations

This architecture has the following limitations:

  • The Kubernetes architecture needs Kubernetes expertise.

  • Above 70% aggregate CPU, add nodes, up to 5.

Deploying this Architecture

Deploy this architecture with Sonatype's IQ Terraform configuration for Azure. The guided deploy.sh at the top of the repository asks for the cloud, the architecture and the size, and applies this size's values.

For full deployment details, see the README that accompanies each architecture's Terraform: