For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Scalability and Performance

Sizing and performance depend on two main factors:

  • The number of agents managed by the server

  • The number of inventory submissions over a given time interval

These values impact CPU, memory, and storage needs. Additional adjustments may still be required for traffic peaks or heavy API usage, see Scalability and Performance.

Baseline assumptions

All sizing guidance below is based on PostgreSQL, which is the recommended database system.

Database choice can strongly affect resource usage, especially memory. Treat the values on this page as PostgreSQL reference values only.

The examples below also assume:

  • Inventory runs every 4 hours

  • A client device is powered on for about 12 hours per day

  • Each device sends about 3 to 4 inventories per day

  • Inventory checksum is enabled, which increases backend load and reduces database load

Load calculation example

For an environment managing 3000 agents, the baseline calculation is:

  • 3000 agents

  • 12 000 inventories per day

  • Spread across 12 active hours, this equals 1000 inventories per hour

  • This is roughly one inventory every 3 to 4 seconds

This is a simplified average. It assumes traffic is evenly distributed across the day. That is useful for baseline sizing, but it does not reflect real traffic. In practice, inventory peaks often happen in the morning and again in the early afternoon.

Architecture models

This page covers three architecture models:

Standalone architecture

All OCS components run on one server

This model is suitable for architectures with fewer than 3 000 agents

Split architecture

Frontend and backend services run on separate servers

Distributed architecture

The load is split across multiple backend instances and/or database servers, with usually one frontend server

Reference sizing examples

Standalone architecture - baseline

Requirement
Spec
Comment

CPU

1 vCPU

Cores

2 vCores

Memory

6 GB

System disk

30 GB

System, application components, and database

Package disk (optional)

XX GB

Depends on deployment package usage

In this model, WSGI workers and PostgreSQL connections are usually the main limiting factors, as they are the largest memory consumers.

Standalone architecture - 3000 agents

Requirement
Spec
Comment

CPU

1 vCPU

Cores

4 vCores

Memory

12-16 GB

System disk

40 GB

System, application components, and database

Package disk (optional)

XX GB

Depends on deployment package usage

Split architecture - baseline

Requirement
Spec
Comment

CPU

1 vCPU

Cores

2 vCores

Memory

4 GB

System disk

20 GB

System and application

Database disk

10 GB

Database storage

Requirement
Spec
Comment

CPU

1 vCPU

Cores

2 vCores

Memory

4 GB

System disk

20 GB

System and application

Package disk (optional)

XX GB

Depends on deployment package usage

Requirement
Spec
Comment

CPU

1 vCPU

Cores

2 vCores

Memory

2 GB

System disk

20 GB

System and application

Split architecture - 10 000 to 15 000 agents

Requirement
Spec
Comment

CPU

1 vCPU

Cores

2 vCores

Memory

12 GB

System disk

20 GB

System and application

Database disk

30 GB

Database storage

Requirement
Spec
Comment

CPU

1 vCPU

Cores

4 vCores

Memory

12 GB

System disk

20 GB

System and application

Package disk (optional)

XX GB

Depends on deployment package usage

Requirement
Spec
Comment

CPU

1 vCPU

Cores

2 vCores

Memory

6 GB

System disk

20 GB

System and application

Scaling strategies

  • If a third-party service makes heavy use of the OCS API, consider:

    • adding a PostgreSQL read-only standby/replica for read traffic

    • dedicating one backend server to third-party read and write operations

  • If many users simultaneously use the web console:

    • consider a replicated or pooled database setup, such as pgpool

    • add a load balancer to route inventory and frontend requests to dedicated backend servers

Need help?

Last updated