Server implementation of the Arrakis low-latency timeseries data distribution platform
Project description
arrakis-server
Arrakis server
Server implementation of the Arrakis low-latency timeseries data distribution platform. Serve historical and live detector data to clients over Apache Arrow Flight, either from a backend you provide or by acting as an information server that routes requests to other Arrakis endpoints.
Resources
Installation
With pip:
pip install arrakis-server
With Docker:
docker run --net=host -it containers.ligo.org/ngdd/arrakis-server:latest
Where to Start
- Tutorial — New to arrakis-server? Run a mock server and connect a client step by step.
- User Guide — Running the server, configuring backends, scope maps, multi-backend deployments, and production tips.
- Background — How the server works: Flight dispatch, the backend trait, retention-based routing, and the metadata model.
- API Reference — Auto-generated documentation from source code.
Features
- Pluggable backends via Python entry points
- Built-in mock backend for local testing and CI
- Information-server mode that routes requests across multiple endpoints
- Retention-aware request routing, splitting time ranges across live and historical backends
- Time-valued channel metadata for evolving detector configurations
- Publish and partition endpoints for Kafka-backed publishing backends
Quickstart
Run a mock server
The mock backend generates synthetic timeseries for a predefined set of H1 and L1 channels:
arrakis-server mock
Then connect with the Arrakis client CLI:
arrakis find "H1:.*"
Serve custom mock channels
Pass one or more TOML files defining your own channels:
arrakis-server mock my_channels.toml
A minimal channel file:
["common"]
publisher = "MY_PUBLISHER"
sample_rate = 256
data_type = "float32"
stride = 62_500_000
max_latency = 1_000_000_000
["MY:CHANNEL-NAME"]
func = "3*t + cos(t)"
func accepts any SymPy expression in t (GPS
seconds) to generate deterministic waveforms.
Run as an information server
An information server holds no data of its own; it routes client requests to other Arrakis endpoints based on a scope map:
arrakis-server --scope-map scope.yaml
The scope map lists each downstream endpoint along with the scopes and retention windows it serves. See the Scope Maps guide for the file format, and Multi-Backend Deployments for composing live and historical backends.
Write a backend
Backends plug in via the arrakis-server-backend entry-point group. A
minimal backend implements the ServerBackend protocol and registers in
its package's pyproject.toml:
[project.entry-points.arrakis-server-backend]
mybackend = "my_package.backend:MyBackend"
See Writing a Backend for the full interface and a complete example.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arrakis_server-0.11.0.tar.gz.
File metadata
- Download URL: arrakis_server-0.11.0.tar.gz
- Upload date:
- Size: 97.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ba6f6895b3417ce1eae776296c2d174f0c8389c9748ef0facd9c3712c989bbe
|
|
| MD5 |
c1c837cb735a0fead1d1ce3532b9cc00
|
|
| BLAKE2b-256 |
b44a0ab211c17b3b8db3b0c713416a0591eb39713e22bffb3d29d4bf31809cb8
|
File details
Details for the file arrakis_server-0.11.0-py3-none-any.whl.
File metadata
- Download URL: arrakis_server-0.11.0-py3-none-any.whl
- Upload date:
- Size: 86.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37ecbba9c2b07a84a5a0dabfbc409ada7d7c3ed51f409ed05688d97f4097ccb9
|
|
| MD5 |
e46fc2ef04d648862a2c65dc125672d7
|
|
| BLAKE2b-256 |
8389eb7abca8e94b622687319e3c1e9f15e9d9b2c37835c0883e93eed159506b
|