Skip to main content

Rule Engine

The Nife Rule Engine lets you define automated actions based on conditions — triggering deployments, scaling events, or alerts without manual intervention.

What You Can Automate

  • Auto-scale based on CPU or memory thresholds
  • Trigger redeployments when new container images are published
  • Send alerts when error rates exceed a threshold
  • Suspend applications during off-peak hours to save costs

Creating a Rule

  1. Navigate to your application in the Nife dashboard
  2. Go to AutomationRule Engine
  3. Click Create Rule
  4. Define your condition (e.g. CPU > 80%)
  5. Define your action (e.g. Scale up by 1 instance)
  6. Set the evaluation frequency
  7. Click Save

Rule Conditions

ConditionDescription
CPU UsageTrigger when CPU exceeds a threshold
Memory UsageTrigger when memory exceeds a threshold
Request RateTrigger based on incoming request volume
Error RateTrigger when error rate exceeds a limit
ScheduleTrigger at a specific time (cron expression)

Rule Actions

ActionDescription
Scale UpAdd more instances
Scale DownRemove instances
RedeployTrigger a fresh deployment
SuspendPause the application
AlertSend a notification