Skip to main content

Scale your app on Nife

This guide shows how to run more than one copy of your app, give it more CPU or memory, and release new versions safely.

Run more copies (replicas)​

  1. Open your app in the Nife dashboard and go to its application details.
  2. Change the replica count. New copies start and traffic is shared across them.
  3. To scale down, reduce the replica count.

You can also set the replica count when you create an app with nifectl: nifectl init --replica 2.

Give each copy more CPU or memory​

  1. Open your app's settings.
  2. Choose a higher CPU or memory setting.
  3. Restart the app so the new size applies.

Scale automatically​

The Rule Engine can act on conditions such as CPU or memory use. To create a rule, open your app, go to Automation, then Rule Engine, click Create Rule, set a condition and an action, and save.

Release new versions safely​

Nife supports rolling, blue-green and canary deployment strategies. To pick one, open your app and go to Deploys, then Strategies.

You can also go back to a previous version with nifectl apps revert.

What this guide does not cover​

Scaling limits and how scaling is billed. Ask support@nife.io for the limits that apply to your plan.

Need help? Email support@nife.io.