In Memory Property Graph Server using the Shared Nothing design from Seastar.
- Faster than a speeding bullet train
- Connect from anywhere via HTTP
- Use the Lua programming language to query
- Apache License, version 2.0
Bring up the main website and documentation ragedb.com while you spin up an instance on docker right now:
docker pull dockerhub.ragedb.com/ragedb/ragedb
docker run -u 0 -p 127.0.0.1:7243:7243 --name ragedb -t dockerhub.ragedb.com/ragedb/ragedb:latest --cap-add=sys_nice
If you are running Docker on a Mac or Windows Host, you may see this error message:
WARNING: unable to mbind shard memory; performance may suffer:
Run Docker on a Linux host for the best performance.
- This is work in progress, if you can make this better please help!
- Generate an SSH key if you don't already have one with
ssh-keygen -t rsa -b 4096. - Install Terraform
- Install the AWS CLI.
- Configure the AWS CLI with an access key ID and secret access key.
- Which AWS Region. The options are here.
- E.g.
eu-west-2.
- This will be in
~/.ssh/id_rsa.pubby default.
- Run
terraform init. - Run
terraform apply. - Wait a few minutes for the code to compile and the server to spin up.
- Copy the IP output by the previous command into your browser http://x.x.x.x:/7243
- Do Graphy Stuff.
- Irrecoverably shut everything down with
terraform destroy.
This will bring up an r5.2xlarge with 4 cores set to 1 thread per core with 100 GB of space.
RageDB includes comprehensive technical documentation located in the docs directory:
- API.md: Complete HTTP API endpoint reference for schema management, CRUD, traversals, and Lua script execution.
- GQL.md: Reference for GQL (Graph Query Language) features, grammar compliance, and catalog schema controls.
- SEMANTIC_LAYER.md: Architectural overview of the Python-to-C++ query lifecycle, AST fragment translations, and validations.
- SEMANTIC_OPTIMIZER.md: Mathematical foundations, rewriting axioms, and benchmarks of the 15-phase server-side Semantic Query Optimizer (SQO).
- OPTIMIZER.md: Technical guide to general query optimization, plan caching, and AST rewrite passes.
- QUERY_PLANS.md / QUERY_PLAN_OPERATORS.md: Details on graph query plans, execution operators, and parallel sharded traversals.
- WCOJ.md: Reference for Worst-Case Optimal Join (WCOJ) traversal algorithm design.
- Dockerhub.md: Deployment and configuration guide for running RageDB containers via Docker Hub.
RageDB utilizes the high-performance Seastar framework and C++23. It compiles using Clang 23 and Conan 2.0+.
To make building RageDB as simple as possible, we provide a unified build.sh script that automates system packages installation, compiler setup, Seastar setup, dependency patching, and the compilation of RageDB itself.
- Clone RageDB recursively:
git clone --recursive https://github.com/ragedb/ragedb.git cd ragedb - Build the project using the script:
- Full setup and compile (first-time build on a fresh Ubuntu 24.04 server):
./build.sh --all
- Build RageDB only (if system dependencies and Seastar are already installed):
./build.sh
- Custom build options:
./build.sh --install-deps- Install system packages, LLVM Clang 23, and Conan 2../build.sh --seastar- Build and install the Seastar framework../build.sh --ragedb- Configure and compile RageDB.
- Full setup and compile (first-time build on a fresh Ubuntu 24.04 server):
The compiled binary will be located at build/bin/ragedb.
If setting up on AWS EC2, choose an Ubuntu Server 24.04 LTS (HVM) instance (e.g. r5.2xlarge) configured with 100 GiB of storage. For optimal performance, specify CPU options with Threads per core = 1 (disabling Hyper-Threading).
If you get errors regarding conan locks, run:
conan remove --locks
If you get errors like:
Creation of perf_event based stall detector failed, falling back to posix timer: std::system_error
Then this should fix it:
echo 0 > /proc/sys/kernel/perf_event_paranoid
To make it permanent edit /etc/sysctl.conf by adding:
kernel.perf_event_paranoid = 0
If you get errors about aio-max-nr you'll want to increase it:
sudo echo 88208 > /proc/sys/fs/aio-max-nr
We allocate 11026 aio slots per shard (10000 + 1024 + 2) so 8 shards = 88208
To make it permanent edit /etc/sysctl.conf by adding:
fs.aio-max-nr = 88208
- Command Logging (started)
- Recovering (started)
- Snapshots
- Replication
- Metrics
- Everthing Else
- Take over the world
- When running KHop queries on combining the RoaringBitmaps using |=
- When importing data on the power of two growth of the tsl sparse_map
- In GetToKeysFromRelationshipsInCSV
- In PartitionRelationshipsInCSV
- Allow Node and Relationship Type handlers to take a json map defining the property keys and data types
- Allow additional data types: 8, 16 and 32 bit integers, 32 bit floats, byte, list of bytes, nested types
- NodeTypes and RelationshipTypes should allow type deletion and type id reuse
- Allow property type conversions (int to double, string to int, int to int array, etc).
pvs-studio-analyzer trace -- make
pvs-studio-analyzer analyze
plog-converter -a GA:1,2 -t tasklist PVS-Studio.log

