> For the complete documentation index, see [llms.txt](https://docs.storware.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.storware.eu/deployment/sizing.md).

# Sizing Guide

This chapter provides a generic sizing methodology for planning a Storware Backup & Recovery deployment.

The values and formulas below should be treated as **initial sizing guidelines only**. Actual requirements depend on the protected platforms, backup methods, storage performance, network bandwidth, backup destination, concurrency, and workload characteristics.

{% hint style="warning" icon="scale-unbalanced" %}
**Important:** Final sizing must always be validated in the target customer environment. Performance tests should be performed using representative workloads, network paths, storage systems, and backup methods before production deployment.
{% endhint %}

### Determine the amount of protected data

Identify the `TotalSizeOfData` that must be processed within the backup window.

For initial sizing, assume that all backups are full backups. This provides a conservative baseline.

If staging space is separate from the backup destination, also identify the largest VM or storage object that may require staging.

### Define the backup window

Determine the available `BackupWindow`.

Backup windows of approximately 10–12 hours are common, but the actual value should reflect the customer's operational requirements.

### Measure transfer performance

Perform a representative test transfer to determine the achievable transfer speed per task:

`SingleThreadTransferSpeed`

Tests should follow the same data path and backup method that will be used in production.

Where possible, test multiple concurrent transfers. For example, run 10 simultaneous transfers and divide the aggregate throughput by 10 to estimate average per-task performance.

This also helps identify infrastructure bottlenecks such as:

* source storage read performance,
* network throughput,
* staging storage performance,
* hypervisor or storage-provider concurrency limits.

If the backup method uses snapshots, verify snapshot creation and removal times as well. Snapshot operations may significantly affect the overall backup window, particularly when many jobs run in parallel.

### Estimate the number of Nodes

First calculate the throughput required to process the protected data within the backup window:

`RequiredBandwidth = TotalSizeOfData / BackupWindow`

Estimate the required number of concurrent export tasks:

`TotalNumberOfExportTasks = RequiredBandwidth / (0.7 × SingleThreadTransferSpeed)`

The `0.7` factor provides a conservative allowance for processing overhead and environmental variability.

As a general starting point, assume a maximum of approximately 10 concurrent export tasks per Node:

`NumberOfNodes = TotalNumberOfExportTasks / 10`

Round the result up to the next whole Node.

The actual number of Nodes may also depend on the protected platform. For example:

* some backup methods require a Node in each cluster,
* disk-attachment methods may require at least one Node per cluster,
* platform or storage-provider architecture may limit where Nodes can be deployed,
* concurrency limits imposed by the source platform may reduce the benefit of additional Nodes.

`TotalSizeOfData` can include a combination of full and incremental backups. After the initial conservative estimate, the value can be refined using the expected production backup schedule.

### Validate backup destination performance

Estimate the total write throughput that the backup destination must sustain.

When multiple Nodes are used, consider the combined traffic generated by all Nodes.

If the backup destination is accessed over the network, perform a representative transfer test from the Nodes to the destination and verify that both network and storage performance can support the expected load.

The backup destination should also be tested under concurrent load, as increasing the number of streams does not always increase aggregate throughput.

### Determine export concurrency per Node

When multiple Nodes use the same configuration, use a consistent concurrency limit where possible.

A starting value can be calculated as:

`NumberOfExportTasksPerNode = TotalNumberOfExportTasks / NumberOfNodes`

Round the result down when defining the per-Node limit.

The final value should be verified through testing, as increasing concurrency may expose bottlenecks in the source platform, network, staging storage, or backup destination.

### Determine store concurrency per Node

`NumberOfStoreTasksPerNode` primarily depends on backup destination performance.

As a starting point, use a value equal to or greater than `NumberOfExportTasksPerNode`.

Reduce this value if additional concurrent streams increase storage latency or reduce overall write throughput.

Lower store concurrency may increase staging space requirements because exported data can remain in staging for longer before being transferred to the backup destination.

### Estimate Node resources

When calculating Node resources, consider the combined number of export and store tasks:

`TasksPerNode = NumberOfExportTasksPerNode + NumberOfStoreTasksPerNode`

#### CPU

As an initial estimate:

`0.5 CPU core per concurrent task`

Use at least the minimum system requirements defined for the Node.

Workloads involving additional processing may require more CPU. For example, SSH-based transfers without an optimized data path or client-side data processing may require approximately:

`1 CPU core per concurrent task`

Round CPU allocation according to the capabilities of the underlying hypervisor or physical server.

#### Memory

As an initial estimate:

`256 MB RAM per concurrent task`

The calculated value must not be lower than the minimum memory requirement for the Node.

#### Staging space

When staging space is separate from the backup destination, a conservative estimate is:

`LargestProtectedObject × NumberOfConcurrentExportTasks`

Actual staging requirements depend on how quickly exported data can be transferred to the backup destination.

### Estimate Server resources

Server sizing depends primarily on the total number of concurrent tasks managed by the environment.

Use:

`TotalTasks = TotalNumberOfExportTasks + TotalNumberOfStoreTasks`

#### CPU

As an initial estimate:

`0.2 CPU core per concurrent task`

The calculated value must not be lower than the minimum system requirements for the Server.

#### Memory

As an initial estimate:

`256 MB RAM per concurrent task`

The calculated value must not be lower than the minimum memory requirement for the Server.

### Optimize the backup schedule

If the calculated Node count or infrastructure requirements are too high, consider reducing peak concurrency instead of increasing resources immediately.

Possible approaches include:

* distribute full backups across different days,
* combine full and incremental backup schedules,
* create multiple policies with different execution windows,
* extend the backup window where operationally acceptable.

Export operations typically place more load on the protected infrastructure than store operations. Store tasks can therefore often continue outside the primary backup window.

Storware Backup & Recovery starts scheduled backups within the configured backup window. Tasks that have already started may continue after the window ends.

## Sizing considerations by backup method

Different backup methods introduce different performance characteristics. The generic calculations above should therefore be adjusted based on the method used in the target environment.

### Disk-attachment methods

Disk-attachment methods read data from temporarily attached volumes and write it to staging or directly to the backup destination, depending on the configuration.

When sizing this method:

* test read performance from an attached volume to the target storage,
* account for volume attachment and detachment time,
* evaluate the performance of the underlying LAN or SAN,
* size each cluster independently where the architecture requires a local Node.

These methods commonly require at least one Node per cluster.

### Export storage repository methods

These methods export data from the virtualization platform to Storware Backup & Recovery staging storage, typically over NFS or another platform-supported mechanism.

Perform a representative VM export to establish the achievable throughput.

Also verify platform-specific export limits. Some virtualization platforms restrict the number of simultaneous export operations per host, storage repository, or manager. These limits may determine achievable throughput regardless of Storware Backup & Recovery Node capacity.

Where supported, staging space and the backup destination may share external storage, allowing exported data to be written directly to the target storage infrastructure.

### Direct export from hypervisors or underlying storage

For direct data-transfer methods, validate the complete path between the source storage and the Node.

Where an optimized transfer mechanism such as `netcat` is available for SSH-based transfers, it may provide significantly higher throughput than standard SSH transfer. Actual performance must be verified in the target environment.

Concurrency may also be controlled at both global and source levels. For example, a per-source limit of 5 and a global limit of 10 allows a maximum of 5 concurrent tasks against an individual source, regardless of the number of hosts managed by that source.

For Ceph RBD-based methods, including applicable KVM and OpenStack configurations, data may be transferred directly from Ceph storage rather than through the hypervisor. In such cases, performance testing should cover the actual Ceph-to-Node data path.

Tools such as `rbd export` or a representative RBD-NBD-mounted volume can be used to establish baseline transfer performance.

### Backup destination considerations

The backup destination can become the primary performance bottleneck in the backup workflow.

When sizing the destination:

* verify available bandwidth between Nodes and the backup destination,
* test sustained write throughput,
* test performance with multiple concurrent streams,
* evaluate storage latency and IOPS under expected load.

If staging and backup data share the same storage, source-side export throughput may ultimately be limited by the write performance of the backup destination.

As a general guideline, the backup destination should be capable of sustaining at least the aggregate data rate generated by the export workload.
