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
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
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
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
CPU
1 vCPU
Cores
2 vCores
Memory
4 GB
System disk
20 GB
System and application
Database disk
10 GB
Database storage
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
CPU
1 vCPU
Cores
2 vCores
Memory
2 GB
System disk
20 GB
System and application
Split architecture - 10 000 to 15 000 agents
CPU
1 vCPU
Cores
2 vCores
Memory
12 GB
System disk
20 GB
System and application
Database disk
30 GB
Database storage
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
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

