Skip to main content

Multi-Instance Setup

Run multiple Orphelix instances simultaneously to monitor different Kubernetes clusters.

Use Cases

  • Multiple environments - Production, staging, development
  • Multiple clusters - Different regions or teams
  • Testing - Test new features without affecting production
  • Demo mode + Real cluster - Show demos while monitoring real workloads

Quick Start

Start Multiple Instances

List All Instances

Output:

Instance Naming

When using --name, Orphelix automatically prefixes with orphelix-:

Managing Named Instances

Start

Stop

Restart

View Logs

Check Status

Delete

Port Configuration

Each instance needs a unique port:

Access URLs

Each instance is accessible at:
  • http://orphelix.local:PORT
  • http://localhost:PORT
Example:
  • Production: http://orphelix.local:3000
  • Staging: http://orphelix.local:3001
  • Development: http://orphelix.local:3002

Database Isolation

Each instance uses the same database file by default. To isolate data, run instances from different directories.

Shared Database (Default)

All instances share settings:
Changes in one instance affect others (theme, GitHub config, etc.)

Isolated Databases

Create separate directories:
Each directory has its own orphelix.db.

Kubernetes Context Switching

Each instance connects to the current kubectl context when started.

Workflow

Once started, each instance maintains its connection to the original cluster, even if you switch contexts.

Auto-Startup

Enable auto-startup for all instances:
All running instances will start on system boot.

Resource Usage

Monitor resource usage across instances:

Example Setups

Scenario 1: Separate Environments

Scenario 2: Different Teams

Scenario 3: Regional Clusters

Best Practices

  1. Use descriptive names - prod, staging, dev, not instance1, instance2
  2. Consistent ports - Document which port is for which environment
  3. Separate databases - Use different directories for complete isolation
  4. Monitor resources - Check orphelix list regularly for memory/CPU usage
  5. Auto-startup - Configure for critical instances only

Troubleshooting

Port Already in Use

Solution: Use different port

Instance Name Conflict

Solution: Stop existing instance first

Wrong Cluster

If instance connects to wrong cluster:
  • start - Start instance
  • list - List all instances
  • stop - Stop instance
  • delete - Remove instance

See Also

CLI Overview

Learn more about Orphelix CLI