Skip to content

Autoscaling

Services can run multiple replicas, and BitsReef can adjust the replica count for you based on resource usage. Both are configured from a service’s Scaling tab.

  1. Open the service and go to its Scaling tab.
  2. Set a fixed replica count and save.
  1. On the Scaling tab, set Min Replicas and Max Replicas — the bounds BitsReef stays within.
  2. Under Autoscaling Thresholds, set Target CPU (%) and Target Memory (%) — the utilization that triggers scaling.
  3. Optionally tune the Scale-Up and Scale-Down cooldowns to control how quickly it reacts.

The Scaling tab with autoscaling thresholds

BitsReef watches the service’s metrics and adds or removes replicas to keep utilization near the target, within your min/max bounds.

Each replica runs with the CPU and memory limits set on the service. Right-size these so a single replica has enough headroom, then let autoscaling handle bursts. Check current usage anytime in the Metrics view.

Terminal window
bitsreef services scale web -r 3 # fixed replica count
bitsreef up -p my-project -n web -i my/app:tag --replicas 3 --follow
bitsreef metrics --service web # CPU / memory / network snapshot