Requests and query time
Requests and query time
A week at a glance: the daily peak, the slow hour, the day a deploy changed the query time.
A single-tenant ndb with its own disk, token and encryption key. TLS on port 7070, a daily backup off the machine, and the charts that tell you how it runs. Add a copy in another region and your apps read local.
NDB_URL=tcp+tls://:•••@qzu-mkfs-gan.br-sp-1.ndb.clowk.in:7070
Example numbers of a made-up server. They change every second.
From the ndb bench and the replication kill loops on one machine (ndb 1.27 and 1.28). Your numbers depend on your data and your network.
Not a bare endpoint. The Cloud samples each server, keeps a week of history, and tells you before your users do.
A week at a glance: the daily peak, the slow hour, the day a deploy changed the query time.
An email when an alarm starts and when it ends.
One a day, online, kept 7 days. Restore into the same server or a new one.
How fast the data grows, so you resize before it is full.
What is inside, without a query.
One owner per database takes the writes. A copy in another region follows its WAL. Apps next to the copy read in microseconds, and their writes go to the owner and come back before the answer.
Example numbers of a made-up copy. They change every second.
Pick the server and the region of your workers. The Cloud makes the token, sets the copy and gives it the same encryption key.
The copy takes a snapshot, then follows the WAL in real time. You see the progress, the lag and the round trip.
Point the worker at the copy. Reads are local; a write goes to the owner and the next read sees it.
Promote is one click with a typed name, never automatic, so a short network cut never makes two owners.
The routes and filters your team already knows: _search, _count, _bulk, date math and index patterns; $in, $regex, $elemMatch; a pipeline with $match, $group, $dateTrunc and $lookup.
Filters, sort, pages, a time range that skips whole months.
POST /cdrs-2026-*/_search { "query": { "account_id": 4821, "call_status": { "$in": ["answered", "missed"] }, "ori_start_time": { "$gte": "now-30d/d" } }, "sort": { "ori_start_time": -1 }, "limit": 20 }
Group and count on the columns, on every core. This is the chart a dashboard draws.
POST /cdrs/_aggregate { "pipeline": [ { "$match": { "account_id": 4821 } }, { "$group": { "_id": { "$dateTrunc": { "date": "$ori_start_time", "unit": "day" } }, "calls": { "$sum": 1 } } }, { "$sort": { "_id": 1 } } ] }
of memory at any data size. ndb keeps data on disk in Parquet segments with zone maps and indexes, so a big collection does not need a big machine.
From make bench on one machine (ndb 1.11 to 1.28). Your numbers depend on your data, your queries and your size.
A daily backup goes to object storage, out of the server's machine, and stays 7 days. Point in time recovery puts a collection back as it was at any instant of the last 24 hours, into a new name, while the server runs.
Test a backup without touching production, then point your app at it if you want.
A few minutes of stop, with the typed name to confirm.
One file, yours. ndb backups restore on any ndb, also on your own machine.
Mark a field as encrypted and ndb seals it before it reaches the WAL. A CPF, a card token or a key never sits on disk, in a backup or in a log as plain text, and you can still find it by equality.
{
"name": "Ana Souza",
"cpf": "123.456.789-00",
"plan": "pro"
}{
"name": "Ana Souza",
"cpf": "ndb:e1:k1:Qm9yZGFzIGRlIGNoYWxlIGVt…",
"plan": "pro"
}A certificate per server that renews by itself. The daemon has no public port: TLS ends at the edge, on the server's own name.
Read, write or admin, on some collections only. A bad token locks out its address for a while.
Your own process, disk and key. No data is shared with another customer.
Set NDB_URL and keep your code. Use the Elasticsearch routes and MongoDB filters you know, and open Dev Tools in the Cloud to try a query.
# .env NDB_URL=tcp+tls://:$TOKEN@qzu-mkfs-gan.br-sp-1.ndb.clowk.in:7070 # any HTTP client POST /cdrs/_search { "query": { "account_id": 4821, "ori_start_time": { "$gte": "now-7d/d" } }, "limit": 3 } # 200 OK · 4 ms · 3 of 1240
TLS on 7070 that renews by itself. A token per app, with only the rights it needs.
Encrypted fields with a key kept by the Cloud, so a restore never needs a key you lost.
Daily and online. Download one, or restore it into a new server to test it.
A new ndb release is one button, one server at a time, with the release notes next to it.