orris-inc 94b3850f9d feat: add load balance strategy for multi-exit forward rules
Add LoadBalanceStrategy field to support two load balancing modes for
entry rules with multiple exit agents:

- failover: Priority-based selection by weight (highest first), with
  weight=0 agents serving as backup only when all others unavailable
- weighted: Traffic distribution based on weight ratios

Changes:
- Add LoadBalanceStrategy value object with validation
- Add load_balance_strategy column to forward_rules table (default: failover)
- Update ForwardRule domain entity with strategy field and validation
- Add validation: weighted strategy requires at least one non-backup agent
- Update DTOs, handlers, and usecases to support the new field
- Sync SDK with LoadBalanceStrategy type and fields
- Update all test files to include the new parameter
2026-02-02 18:37:09 +08:00

Orris

Quick Install

curl -fsSL https://raw.githubusercontent.com/orris-inc/orris/main/install.sh | bash

Or specify domain and admin credentials:

curl -fsSL https://raw.githubusercontent.com/orris-inc/orris/main/install.sh | \
  DOMAIN=orris.example.com \
  ADMIN_EMAIL=admin@example.com \
  ADMIN_PASSWORD=your-password \
  bash

Detailed Installation

See INSTALL.md for detailed installation instructions.

Update

Update to the latest version:

# From your Orris installation directory
./install.sh update

# Or remotely
curl -fsSL https://raw.githubusercontent.com/orris-inc/orris/main/install.sh | bash -s -- update

This will:

  1. Pull the latest Docker images
  2. Run database migrations
  3. Restart all services

Common Commands

docker compose ps        # Check status
docker compose logs -f   # View logs
docker compose down      # Stop services
docker compose up -d     # Start services
./install.sh update      # Update to latest version
./install.sh help        # Show help

License

MIT License

Description
Orris —— 面向专线 / IX 拼车的中转与订阅管理平台 梯子 科学上网
Readme MIT 56 MiB
Languages
Go 99%
Shell 0.8%
Makefile 0.2%