Repository navigation
Add HoloDb (server) - #3501
Add HoloDb (server)#3501EvaluatedApplications wants to merge 13 commits into
Conversation
neuroalexey
left a comment
There was a problem hiding this comment.
Status: Needs a fix — main's validator rejects two tags
I ran main's validate-results.py on this head. It fails: error: holodb-server/template.json: new tag 'C#' is not allowed; use one of the existing tags. The same error is reported for .NET, and for the result file. Let's drop both tags from template.json:8 and c6a.4xlarge.json:9.
Q21 is COUNT(*) with URL LIKE '%google%'. Its hot run is 0.080 sec, 240 times faster than cold (c6a.4xlarge.json:36). README.md:9 says match bits for LIKE are built from queries and saved on disk. README § Caching says caches near the end of the pipeline should be disabled. Is it such a cache?
The bits also survive the restart. Q22 has the same LIKE, and its cold run is 4.070 sec against 19.285 sec for Q21. A true cold run starts with all database caches cleared (README § Caching). How do the cold runs stay cold?
benchmark.sh:6 skips the QPS test. But HoloDb is a shared server, and lib/benchmark-common.sh:63 keeps the test for daemons. Let's remove the line.
Automated review by neuroalexey
6975cab to
3fad92e
Compare
|
Thanks for running it, and sorry for the trouble. We're new to ClickBench, so we'd like to get this right. Tags and the QPS line are fixed and pushed. On Q21/Q22, you're right that the cold run wasn't clean. HoloDb remembers which distinct values of a column match a LIKE and saves that beside the table, so a later query can use it. It's not an answer cache: every query still scans and aggregates all the rows, and the saved data only describes the column's values. But it did survive the restart, so Q22's cold run used what Q21 left behind. We'd rather not change the engine for the benchmark, since this is how it works for everyone. Could you suggest how you'd like us to handle it? One option is for our scripts to delete those saved files at each stop, so each first run starts clean. Or if you'd prefer another way to flag or handle it, we'll do that. |
Status: Needs a fix — cold runs reuse what earlier queries builtThe tags and the QPS line are fixed in 3fad92e. But the result file still has the old cold runs. Q22 cold is 4.070 sec, and Q21 cold is 19.285 sec with the same Yes, let's delete in The other way is the Optional, not blocking:
Automated review by neuroalexey |
|
Thanks, that makes sense. A question on how to proceed: would you be OK with two entries? One with a true cold run (the files the queries built are deleted at every stop, as you suggested), and one that keeps them and is tagged no-cold. Or would you rather we pick just one? Happy with whichever you prefer. We're also fixing a memory problem we hit in the concurrent test, so we'll push updated results once that's done. |
Status: Needs a fix — one entry is enough, with true cold runsThere is no point in a second entry. The first run of each query builds what its hot runs use. Q21 is [19.285, 0.082, 0.080] in the current file ( A Let's keep one entry, Automated review by neuroalexey |
3fad92e to
9062e76
Compare
|
Pushed. The stop script now puts back the index files the load built and deletes everything else, so each first run starts clean (Q22 cold is now 19 s, same as Q21). Results re-run on 23.0.2 on a c6a.4xlarge, with concurrent_qps filled in (the first concurrent run found a memory problem on our side, which is fixed in this version). README updated to match. |
Status: Looks good — fixed in 9062e76Q22 cold is now 19.110 sec, close to Q21 at 19.260 sec ( Automated review by neuroalexey |
|
The run of Logs:
|
|
Results for Logs:
|
neuroalexey
left a comment
There was a problem hiding this comment.
Status: Please verify — 84% of the concurrent queries failed in the CI run
The CI run in 071fe65 has concurrent_error_ratio 0.837 and concurrent_qps 0.317 (c6a.4xlarge.json:12-13). In 9062e76 it was 0 and 1.863. The site shows no QPS for a result with errors (index.html:1372). So HoloDb gets no concurrent QPS on the page.
The log does not show the cause, because the test discards the stderr of ./query. Not sure why it fails. Please check the server under 10 concurrent clients. During the test, ./check runs every 5 sec. A failed check restarts the server, and the running queries fail (lib/benchmark-common.sh:627).
The cold and hot runs are close to your run. I ran main's validator on this head: RC 0, nothing for holodb-server.
Optional, not blocking:
- The c8g runs stop at
docker pull, because the image has no linux/arm64 build (no matching manifest for linux/arm64/v8).
Automated review by neuroalexey
|
Thanks for catching that, we'll look into it. This is our first entry and we want it to be the best it can be, so we'd like to understand the cause properly. It passed three times on our own machine with no errors, so we think it is a timing problem under load. We'll reproduce it, fix it, and send an updated result as a follow-up. |
|
One more note: we'd rather not push more changes to this PR and throw away the runs and review you've already done. This one can merge as it is. We'll take the concurrent failure and the other findings and send a proper follow-up PR with a new result once we've had time to do it carefully. |
|
Results for Logs:
|
Status: Looks good — the concurrent fix can come in a follow-up PRThe concurrent test runs after the cold and hot runs ( It's ok to fix the concurrent test in a follow-up PR, because the README calls it supplementary (README § How To Add a New Result). I ran main's validator on d6e37a9: RC 0, nothing for Automated review by neuroalexey |
…benchmarking licence
|
We've updated the README and added LICENSE-BENCHMARKING.md. The README now says what the engine keeps and which queries are answered from stored data (the 14 you listed, with the shapes that take the shortcut and the ones that scan), corrects the earlier sentence, and lists the known problems: the 64-thread bug on the 192-vCPU machines, the concurrent test, the missing arm64 image and the slower load. A trace of the route of all 43 queries will be added. This commit changes no engine code and no results. Please don't run the benchmark or merge this yet. We're still fixing the engine and will push new results after a release. We've left the category as you set it and would appreciate your view on it once you've seen the new README. |
|
Results for Logs:
|
|
We've added the route of all 43 queries to the README, taken from the engine's own counters on the first 10 million rows. It confirms your list: 14 queries read no row (totals for 1, 3, 4, 7 and 30, value counts for 2, 5, 6, 8, 13, 16, 34, 35 and 36), and with those shortcuts switched off the first rows of all 14 results are identical. It also says how the totals and value counts are kept: the totals on every write, the value counts rebuilt only at a clean close, and the engine scans correctly if the file is missing. The notes behind it list a few more places where our own documentation was inaccurate, and we're correcting those too. No engine code or results changed in this commit. |
…d value counts are kept
|
The run of Logs:
|
… and variants, corrected README
- Pin HoloDb and the loader package to 23.3.0 (multi-arch image, linux/amd64 and linux/arm64).
- HOLODB_STORED_AGGREGATES (default off in bench.env; on = the HoloDb product default): the loader calls Database.SetStoredAggregates("hits", false) before the load, so no value counts are built and no statement is answered from the stored column totals; all 43 statements read rows. With on, 14 of the 43 statements are answered from stored data, as the README describes.
- ./trace prints the EXPLAIN route of every statement in queries.sql; variants.sql has a variant of each of the 14 stored-data statements that scans.
- README: configuration of the entry, what the engine keeps and what answers each statement, the route table for this configuration at 10 million rows, what EXPLAIN reports, how to reproduce the routes, and the known problems with what we verified.
… README and licence corrections Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01854PJHGoPo3vmujoZ5SNgS
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01854PJHGoPo3vmujoZ5SNgS
|
Update pushed. Summary of what changed since the last review:
Since an AI agent reviews first: could it please review the status of this entry, in particular the README claims against |
neuroalexey
left a comment
There was a problem hiding this comment.
Status: Looks good — the README matches the scripts at cb38745
I checked the README against the scripts. bench.env:12 defaults to off, and Program.cs:301 turns the stored aggregates off for any value except on. stop touches only *.idx and summary.*, so the .off markers survive every restart. The load times, nulls and error ratios of the five removed files match the PR history.
I can't check the ./trace table, because I don't run code from a PR. The CI run will show it. In the removed c6a.4xlarge file, Q34 groups 100 million rows by URL in 0.020 sec. If it is still that fast, the switch does not work. The 192-vCPU fix is not tested yet. The c6a.metal and c7a.metal-48xl runs will show it.
From the scripts, nothing blocks the CI run. It waits for approval in the benchmark-approval environment (.github/workflows/benchmark-pr.yml:111). The category is for the maintainers. I ran main's validator on this head: RC 0, nothing for holodb-server.
Automated review by neuroalexey
|
Thanks for the check. On the Q34 test: in our run of this head's configuration (published 23.3.0 image, stored aggregates off, c6a.4xlarge, 100M rows) Q34 took 1.703 / 1.146 / 1.047 s and Q35 took 1.825 / 1.242 / 1.079 s, so both scan. The 0.020 s in the removed file was 23.0.2 with the value counts built at load. The Two other fast statements are worth a look. Q1 is The 192-vCPU fix is untested on a real host, as the README says, so the metal runs will be its first check. |
…8g.4xlarge, c8g.metal-48xl)
|
Results for Logs:
|
|
Results for Logs:
|
Adds HoloDb run as a server (Docker image, queries over TLS). Results for c6a.4xlarge. Entry is proprietary, untuned, enthusiast category.