Skip to main content
What Magpie does not do today, and where it is weak. Each line names its source: a file in this repo, a test or a measurement. “Not measured” means nobody measured it yet. Magpie is not released yet (the root README.md, “Status”). These limits are of the code of main on 2026-12-04.

The store

  • One writer per store. Only one process may write to a store folder at a time. A second writer is refused; read-only opens are fine. With many app instances, send to one magpie-server: it is the one writer. (crates/core/AGENTS.md; the server README, “Limits”.)
  • No replication and no failover. There is no second live copy that takes over. With --s3, read-only servers can answer queries from the bucket, but the writer is one process on one disk. If its disk is lost, the writes after its last upload are lost: about 10 s with the defaults. (crates/server/README.md, “What can be lost”.)
  • Not encrypted on disk. Anyone who can read the folder can read all of its data. Use an encrypted disk or bucket. (SECURITY.md.)
  • No upgrade in place before release 1. A build opens only a store of its own format version (14 today). A store of another version is refused, and nothing is changed. To move it: export with the old build, import with the new one. (Operations, “Upgrades”; crates/core/src/door.rs; D250, D251 in docs/PLAN.md.)
  • No backup command. Export and import, or stop the server and copy the folder; both were run for Operations, “Backup”. A copy of the folder while a writer runs is not tested.
  • Threads and memory per open store. 13 threads and one more for each CPU up to 8 (21 on a machine with 8 or more CPUs, 17 with 4) (before any write and after a commit; crates/server/tests/threads.rs measures it) and about 7 MB before any write, 11 to 25 MB after small writes. The system limits the threads: macOS stops a process at 6,144 (sysctl kern.num_taskthreads), a container at its pids limit. With tenants the server reads the limit, keeps a reserve (an eighth of the limit, 16 to 512 threads) and does not open a store that has no room for its threads: it closes the store used longest ago first, or answers 503 THREADS with Retry-After: 1 while every open store is in use. On a Mac with 8 or more CPUs that is about 266 open stores. A pids limit of a Kubernetes POD (podPidsLimit) is not seen: on cgroup v2 a container sees only its own cgroup, and the limit of the pod is in the cgroup above it. The server then writes no warning and makes no check before an open; it still answers 503 THREADS when an open gets no thread, and opens a failed store again. With a limit of the pod, set --max-open-tenants by hand: threads of one store x stores + the server’s own threads (about 40, and up to 512 more under load) must stay under the limit. A server with one store (--dir) needs no setting. (Operations, “Memory and threads”; docs/FINDINGS.md F25, F100.)
  • New data is searchable after the next commit: the store commits 0.5 s after the first write that waits, and the commit itself takes time, more on a busy machine. On the test machine, with other builds running, a span sent over OTLP was found 1.1 to 1.2 s after its send (two runs while this guide was tested, 2026-12-04; not a benchmark).

Queries

  • No SQL, and no query language as text. Every query is JSON (the query overview). There are no joins between stores, no user-defined functions, and no sub-queries beyond and, or, not and the span conditions of a trace query. (crates/core/src/query.rs.)
  • A filter is at most 32 levels deep; a span at most 64. Deeper is refused (400). (D107 in docs/PLAN.md; testdata/query-examples.json.)
  • Some sums visit every matching span. A sum with a filter on kind, model and time only, grouped by kind, model or whole hours, reads saved sums per hour. A sum with any other filter (a text, a user, a tag, an attribute), a bucket that is not whole hours, or a percentile visits every matching span. (crates/server/README.md, “Query API”, item “groupBy”, “Cost”.)
  • A group by attribute reads, in each part of the store, the spans of every value of that path: a path with very many values is slow. (The same item.)
  • Queries have no budget. A query takes no place in the server’s queue and has no limit of work or memory. A very wide query can hold the server’s CPU. (SECURITY.md, “Not bounded yet”.)
  • Exports have no time or size limit, and each holds one thread of the server while it runs. (crates/server/README.md, “Limits”.)
  • Large numbers in JavaScript. costNanos sums above 2^53 lose precision in JavaScript (JSON numbers). (The same section.)
From the rules of the engine; each has a case in testdata/query-examples.json (the server, Node and Python tests run them).
  • contains and prefix cost more with more different words in the store, not with more text. A piece of one or two letters matches most words, and is slow.
  • A contains or prefix text of several pieces is refused (400) when its pieces match more than 16,384 different words in one part of the store. Make the first or the last piece longer.
  • A word of 256 bytes or more (a long base64 run, for example) is kept in the stored text, but it is not in the index: no text search finds it. Words up to 255 bytes (hashes, ids) are found. (crates/core/src/tokenizer.rs, MAX_WORD_BYTES.)
  • A phrase of 4,096 positions or more is refused (a position is a word, or a word too long to index between two words). So is a phrase with 64 or more words too long to index in a row between two of its words.
  • Signs and spaces are not in the index. So contains is not a byte-for-byte LIKE: a-b, a b and a,b are the same.
  • text does not look in error messages, and errorText looks only there. Attribute values have no text search: an attribute filter is an exact match of a whole value.
  • Languages with no spaces (Thai, Lao, Khmer, Burmese, Korean) are found by pairs of characters, so a word of one character is found by contains only. Chinese and Japanese are found too. 16 languages have a test sentence (docs/FINDINGS.md F30).
  • No ranking by relevance. Lists come by time (newest or oldest first), not by a score of how well a text matches. (Schema 12 keeps no field norms: D210 in docs/PLAN.md.)
  • No search by meaning (embeddings, vectors). Text search is by words.

Server

  • Not published. No binary, no image, no crate on crates.io: build from the repo. The Docker, Compose and Kubernetes files are not run. (crates/server/README.md, “Docker”.)
  • Speed of the server is not measured. The numbers in the root README.md are of the engine (bench/), not of the HTTP or gRPC path. (crates/server/README.md, “Limits”.)
  • No rate limit. API keys have no expiry date and no limits per key. (crates/server/README.md, “Limits”.)
  • No client certificates (mTLS), and a new TLS certificate needs a restart. (crates/server/README.md, “TLS”.)
  • One value for all tenants: one mask policy, one price table, one retention. (The server README, “Retention”, “Masking”, “Limits”.)
  • Tenants and S3 do not go together. --tenants-dir with --s3 is refused. (crates/server/README.md, “Limits of S3”.)
  • A delete and a purge do not touch copies outside the store folder (backups, exports, S3). A span that arrives after a delete is kept. (The server README, “Query API”, item “Deletes for privacy”.)
  • Retention gives no fixed time by which the bytes of a dropped span leave the disk; for that, use a delete and a purge. (The server README, “Retention”.)
  • Masking finds only what a rule matches. No rule finds names of people. Text with a JSON escape inside a value (bob\u0040example.com) is not found. The time a mask costs on the server is not measured. (The server README, “Masking”; with 10 rules a load of the engine took 0 to 10% longer, docs/FINDINGS.md F55.)
  • Not stored from OTLP: span links, traceState, flags, dropped counts, scope attributes, schema URLs. tags are never set from OTLP. (The server README, “Limits”.)
  • The GenAI conventions are still in development. When they change, the mapping gets a new version; spans already stored keep the old one. (The server README, “Mapping”.)
  • The largest request is 64 MiB (--max-body-bytes, the OTLP spec’s default): an SDK’s full batch of 512 model calls of 50 KB (26 MB) fits. A larger request is refused with 413, which the SDK does not send again: that batch is lost. Over HTTP, a body over the limit by at most 64 MiB is read to its end and dropped, so the client gets the 413; a longer one closes the connection, and a client that sends its whole body before it reads may see no answer. (crates/server/README.md, “Limits”; docs/FINDINGS.md F99.)
  • A busy server answers 429 (16 writes run and 64 wait; gRPC UNAVAILABLE), with Retry-After: 1. Over HTTP it reads the refused body to its end and drops it, so the client gets the 429; under overload the server so reads bytes it does not keep (at most --max-body-bytes for each refused request, within --body-timeout; no decode, no write). A body that says it is longer than --max-body-bytes is not read: its connection closes, and a client that sends its whole body before it reads may see no answer. (crates/server/README.md, “Limits”; docs/FINDINGS.md F109.)
  • Memory under load is measured on one Mac only: 16 full SDK batches at once took the server to 1.0 to 1.3 GB, 16 bodies of 64 MiB to 2.0 to 2.7 GB. The spans that one request maps to are not in the memory budget: 16 small requests made to copy a large resource into each span took it to 5.6 GB. Not measured on Linux. (F99.)
  • The memory count of a write is an estimate, checked against the real decode for the body shapes in crates/server/tests/budget_alloc.rs, not a proof. Not measured on Linux. (SECURITY.md; docs/FINDINGS.md F78.)
  • The viewer is a first look, not a dashboard: read-only, no saved views, no edits. Tested in Chromium, Firefox and WebKit (Playwright, headless), not in Safari itself or on a phone. Its summary strip reads the newest 100,000 matching traces and says so when there are more. Its files are sent compressed when the browser takes Brotli or gzip (a first visit of the trace list: about 269 KB, docs/FINDINGS.md F85). (The server README, “Viewer”.)

S3

  • Tested with MinIO, and once on Amazon S3 from one EC2 machine with an instance role (2026-12-05, docs/FINDINGS.md F95, the EC2 run: the S3 test list without its fault tests, the writer policy in docs/S3.md, section “Amazon S3: what to set up, and what is not supported”, a deployment of 20 minutes). Not run: a renewal of a role’s keys, ECS and EKS roles, KMS, a versioned bucket, the real error answers of AWS, a load of days. Not measured: requests per day, memory. The faults of a real service are made on purpose by a test proxy, on MinIO only. (docs/S3.md, sections 5 to 8; docs/FINDINGS.md F88, F94, F95.)
  • While the bucket cannot be reached, nothing limits how far it falls behind. The writer goes on taking writes; they are on its disk only. The status shows it (notUploadedForMs); no flag refuses writes. (Operations, “S3”.)
  • Not supported on AWS: directory buckets (S3 Express One Zone), Object Lock with a default retention, access points, a profile or SSO login without exported keys, archive storage classes. A lifecycle rule that expires current objects under the prefix deletes live data. (docs/S3.md, section “Amazon S3: what to set up, and what is not supported”.)
  • One file of a store in a bucket: at most about 97.6 GiB (10,000 parts of 10 MiB). (docs/S3.md, section “Amazon S3: what to set up, and what is not supported”.)
  • In a bucket with versioning, a delete and the cleanup leave the old versions, also of data deleted for privacy, until a lifecycle rule expires them. (docs/S3.md, section “Amazon S3: what to set up, and what is not supported”.)
  • The write log is not in the bucket. Writes after the last upload live on the writer’s disk only. (crates/server/README.md, “What can be lost”.)
  • The service must refuse a second create of an object (If-None-Match: *). The server checks it at start. AWS S3 does since August 2024; checked on MinIO, and on Amazon S3 by every writer start of the EC2 run (docs/FINDINGS.md F95, the EC2 run). (The same README, “Limits of S3”.)
  • Big files (above 10 MiB, a multipart upload) are uploaded by one test, on MinIO and once on Amazon S3 (docs/FINDINGS.md F95, the EC2 run). (docs/S3.md, section “Open risks, and what to check on real S3”.)
  • An import writes to a local folder only. To import into a store in a bucket, stop the writer, import into its folder, start it again. (The server README, “Limits of S3”.)

Libraries (Rust, Node, Python)

  • Not published on crates.io, npm or PyPI yet: build from the repo. (The root README.md, “Status”.)
  • Platforms. CI runs on Linux (Ubuntu) for pushes to main and for pull requests, and on macOS only when it is started by hand (.github/workflows/ci.yml); every change is tested on a Mac before it is merged (AGENTS.md). Windows is not tested.
  • Python: no asyncio API (use asyncio.to_thread), and no wheel for the free-threaded Python build. (bindings/python/README.md, “Rules and limits”.)
  • Mastra: no store adapter for Mastra is published. Use OpenTelemetry from Mastra (OpenTelemetry guide).

Sizes and speed: what is measured

All on one laptop (Apple M5, 10 cores, 24 GB), with every answer checked against a known count. Synthetic text unless it says “real”.
  • One machine, one run per number unless the source says more. Runs from two sessions on this laptop differ by 10 to 20% (F21).
  • One race against 13 other engines has been run: the same data, the same 8 queries, one AWS machine, every answer checked (F105; the README section “Against 13 other engines”). Magpie wins some rows and loses others there: its bulk load is 3.5 to 4.6x slower than the fastest. This guide makes no other claim that Magpie is faster or smaller than another product.
  • Known weak spots of the engine are listed in F21 and, at 1 billion spans, in F106 (the load slows as the store grows; the top users by cost take 19 s). With pieces on (off by default), Q8 and Q4 are slower in the race (F105); every other result stays.