Skip to content

Ceng23333/InfiniLM-SVC

Repository files navigation

InfiniLM-SVC

A distributed service virtualization and control system for InfiniLM, providing centralized service discovery, load balancing, and health monitoring.

Overview

InfiniLM-SVC implements a distributed architecture with three core components:

  • Service Registry - Centralized service discovery and health monitoring
  • Distributed Router - Model-aware load balancer with request proxying
  • Enhanced Babysitter - Service lifecycle management wrapper

Features

  • Model-Aware Routing - Routes requests to services based on requested model
  • Service Discovery - Automatic registration and health monitoring
  • Load Balancing - Weighted round-robin across healthy services
  • Streaming Support - Full support for Server-Sent Events (SSE)
  • Health Monitoring - Automatic health checks and service recovery
  • Multi-Instance Support - Deploy multiple service instances easily

Quick Start

Rust Version (Recommended)

# Build binaries
cd rust
cargo build --release --bin infini-registry --bin infini-router --bin infini-babysitter

# Launch all services
cd ..
export BABYSITTER_CONFIGS=("config/babysitter1.toml" "config/babysitter2.toml")
./script/launch_all_rust.sh

Python Version

# Launch all services
./script/launch_all.sh

Project Structure

InfiniLM-SVC/
├── rust/              # Rust implementation (recommended)
│   ├── src/           # Source code
│   └── tests/         # Integration tests
├── python/            # Python implementation
├── script/            # Launch scripts
├── config/            # Configuration files
├── docker/            # Docker files
└── docs/              # Documentation

Documentation

Requirements

Rust Version

  • Rust 1.70+ (nightly recommended)
  • Cargo

Python Version

  • Python 3.8+
  • Dependencies: aiohttp, requests

CI/CD

The project includes GitHub Actions CI/CD pipeline:

License

[Add your license here]

Contributing

[Add contribution guidelines here]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors