> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arjex.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Playback and failover

> Understand Lavalink-first routing, local fallback, timeouts, and session recovery.

When Lavalink nodes are configured, requests go to the node first. When no node is available, the local engine can keep playback moving.

![Example playback diagram showing sources, Lavalink nodes, and local fallback](https://mintcdn.com/arjex/cTgG-Lo_1BxmEdu7/images/music/slides/playback.png?fit=max\&auto=format\&n=cTgG-Lo_1BxmEdu7\&q=85\&s=d57bd3d7916bcfc4b37afc6adf7678ce)

Example: playback engines and nodes

## Cluster behavior

The client tracks node health, spreads players across healthy nodes, and resumes sessions after a node failure or restart. A failed track can be retried on another healthy node before local playback. A removed node drains its current track before release. Node changes require a restart.

Pause and resume target the engine that is currently playing. Paused time is excluded from profile listening time and Curtain Call duration. A failed engine response is bounded by request timeouts; late results are ignored by the request flow.

## Local playback

With no node, the local engine can search and play YouTube and direct links. Spotify credentials can provide metadata for a text search before local resolution. The client maintains an Opus cache with a hard storage limit, age-based cleanup, safe eviction, and protection for tracks in use.

See [Sources](https://docs.arjex.team/music/concepts/sources.md) for provider and plugin behavior.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.