Skip to main content

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

This Sonatype IQ Server small reference architecture describes the infrastructure for deploying a single IQ Server instance in Microsoft Azure using cloud-native services. It supports environments with 500 - 2k onboarded applications and ~5k evaluations on a typical day.

OpenSearch Optional For Deployments with up to 10,000 Applications

As of IQ version 210, deployments with up to 10,000 applications can opt to use their existing PostgreSQL database for the Nexus One search index rather than OpenSearch. This reference architecture will focus on leveraging OpenSearch. See the help documentation for setting up the Nexus One UI search index if you wish to use your existing PostgreSQL database instead.

Sonatype IQ Azure reference architecture, Size S, supporting 500–2,000 applications and 150 evaluations per hour (5,000 per day). Users and CI/CD connect through a load balancer to one IQ Server node with an 18 GB Java heap. The Azure Virtual Network al

Infrastructure Specifications

This architecture includes the following layers:

  • Compute Layer: IQ Server

  • 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

1

Deployment option

Azure Container Apps, single instance

Instance type

Container Apps: E4 workload profile, 4 vCPU, 32 GB

Memory for IQ Server

30 GB replica, 3.5 vCPU, leaving 0.5 vCPU and 2 GB of the node

Java heap

18 GB, -Xms18g -Xmx18g

Direct memory

4 GB, -XX:MaxDirectMemorySize=4g

HA license

No

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.

This architecture runs one IQ Server node, so it does not provide application-level high availability.

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_E2ds_v6 (2 vCPU, 16 GB)

Storage

128 GB, grows automatically

High availability

Zone redundancy off by default

Storage Layer (Azure Files)

Shared storage holds IQ Server's reports, scan files and logs.

Resource

Specification

Service and tier

Azure Files, Standard HDD

Protocol

SMB 3.0

Redundancy

LRS

Capacity

500 GB share quota

IOPS

Standard: up to 20,000 a share, not provisioned

Throughput

Standard: up to the storage account's limit, 60 MB/s a file

Search Layer (OpenSearch)

OpenSearch Optional For Deployments with up to 10,000 Applications

As of IQ version 210, deployments with up to 10,000 applications can opt to use their existing PostgreSQL database for the Nexus One search index rather than OpenSearch. This reference architecture will focus on leveraging OpenSearch. See the help documentation for setting up the Nexus One UI search index if you wish to use your existing PostgreSQL database instead.

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 on Azure virtual machines, created by Terraform

OpenSearch version

3.x, 3.7 recommended

Data nodes

1 x Standard_D2ps_v6

Storage per data node

50 GB

Data disk

64 GB Premium SSD (P6), the smallest Premium SSD tier at or above the storage per data node

Cluster managers

None. The one data node is its own cluster manager

OpenSearch endpoint

IQ Server connects to the one data node directly

Primary shards for component, violation and vulnerability

1

Primary shards for the other Nexus One indices

1

Nexus One index replicas

0

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.

The replica count is 0 because one data node has nowhere to place a replica. Losing that node means rebuilding the index.

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: Container Apps ingress

  • 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

Limitations

This architecture has the following limitations:

  • One IQ Server node, with no zero-downtime updates and no multi-zone redundancy.

  • The database runs in one zone by default.

  • One OpenSearch data node with no replica, so losing it means rebuilding the index.

  • Above 70% aggregate CPU, move to the next size.

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: