Repository navigation
feat(result-service, single-node): deploy the result service - #9556
Conversation
Publish an image for result-service, run it in the single-node stack and route /api/results/ to it through nginx. Nothing calls it yet; the result panel moves over in a later change.
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9556 +/- ##
============================================
- Coverage 91.57% 91.56% -0.01%
+ Complexity 5159 5156 -3
============================================
Files 1300 1300
Lines 58092 58096 +4
Branches 7615 7619 +4
============================================
- Hits 53198 53196 -2
- Misses 2958 2960 +2
- Partials 1936 1940 +4
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 569 | 0.348 | 16,152/26,227/26,227 us | 🟢 -21.0% / 🔴 +91.5% |
| 🔴 | bs=100 sw=10 sl=64 | 1,166 | 0.712 | 81,670/146,920/146,920 us | 🔴 +41.4% / 🔴 +69.5% |
| ⚪ | bs=1000 sw=10 sl=64 | 1,465 | 0.894 | 683,437/720,664/720,664 us | ⚪ within ±5% / 🟢 -16.4% |
Baseline details
Latest main 4db10cf from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 569 tuples/sec | 587 tuples/sec | 1,018 tuples/sec | -3.1% | -44.1% |
| bs=10 sw=10 sl=64 | MB/s | 0.348 MB/s | 0.358 MB/s | 0.622 MB/s | -2.8% | -44.0% |
| bs=10 sw=10 sl=64 | p50 | 16,152 us | 14,073 us | 10,127 us | +14.8% | +59.5% |
| bs=10 sw=10 sl=64 | p95 | 26,227 us | 33,199 us | 13,693 us | -21.0% | +91.5% |
| bs=10 sw=10 sl=64 | p99 | 26,227 us | 33,199 us | 16,105 us | -21.0% | +62.9% |
| bs=100 sw=10 sl=64 | throughput | 1,166 tuples/sec | 1,249 tuples/sec | 1,364 tuples/sec | -6.6% | -14.5% |
| bs=100 sw=10 sl=64 | MB/s | 0.712 MB/s | 0.762 MB/s | 0.832 MB/s | -6.6% | -14.5% |
| bs=100 sw=10 sl=64 | p50 | 81,670 us | 77,823 us | 79,321 us | +4.9% | +3.0% |
| bs=100 sw=10 sl=64 | p95 | 146,920 us | 103,890 us | 86,661 us | +41.4% | +69.5% |
| bs=100 sw=10 sl=64 | p99 | 146,920 us | 103,890 us | 98,907 us | +41.4% | +48.5% |
| bs=1000 sw=10 sl=64 | throughput | 1,465 tuples/sec | 1,431 tuples/sec | 1,406 tuples/sec | +2.4% | +4.2% |
| bs=1000 sw=10 sl=64 | MB/s | 0.894 MB/s | 0.873 MB/s | 0.858 MB/s | +2.4% | +4.2% |
| bs=1000 sw=10 sl=64 | p50 | 683,437 us | 697,895 us | 776,724 us | -2.1% | -12.0% |
| bs=1000 sw=10 sl=64 | p95 | 720,664 us | 749,548 us | 814,345 us | -3.9% | -11.5% |
| bs=1000 sw=10 sl=64 | p99 | 720,664 us | 749,548 us | 862,305 us | -3.9% | -16.4% |
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,351.25,200,128000,569,0.348,16152.30,26227.11,26227.11
1,100,10,64,20,1715.55,2000,1280000,1166,0.712,81670.00,146920.20,146920.20
2,1000,10,64,20,13654.11,20000,12800000,1465,0.894,683436.72,720664.25,720664.25There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the result-service deployment changes.
No open issues 🎉
What changed in this PR
Deploys the existing result service in the single-node Docker Compose stack, preparing for result-panel reads without a running computing unit. Frontend integration remains a separate follow-up.
Changes:
- Adds a result-service Docker image and its publishing name mapping.
- Starts the service with database and catalog dependencies, a health check, and optional tracing.
- Routes
/api/results/through nginx to the service.
| File | Description |
|---|---|
bin/single-node/nginx.conf |
Routes result API requests to port 9102. |
bin/single-node/docker-compose.yml |
Adds result-service and makes nginx depend on it. |
bin/single-node/docker-compose.observability.yml |
Enables tracing for result-service. |
bin/dockerfiles/result-service.dockerfile |
Builds and packages the service in a non-root runtime image. |
.github/workflows/build-and-push-images.yml |
Maps the image to texera-result-service. |
Review effort: Balanced
bobbai00
left a comment
There was a problem hiding this comment.
🟡 0 must-fix · 3 advisory · 0 polish: a faithful copy of the single-node deployment pattern; one catalog question and two process items.
Correctness (1)
bin/single-node/docker-compose.yml:532: postgres-catalog reads answer 404 "no longer stored" for existing results (advisory, see inline)
Conventions (2)
.github/workflows/build-and-push-images.yml:292: no CI run has built the image yet (advisory, see inline)bin/single-node/docker-compose.yml:533: the PR closes no issue (advisory, see inline)
Verification trace
Traced what the new /api/results/ route exposes. All four GETs sit under class-level @RolesAllowed(REGULAR, ADMIN); the three execution reads call requireReadable first (the caller started the execution or can use its computing unit), latest-execution filters by the caller's uid, and page bounds are checked. The @PermitAll health check stays internal, since /api/healthcheck still routes to dashboard-service. With the default REST catalog the service needs no new .env keys: JDBC, catalog URI, warehouse switch and JWT secret resolve to the values the computing unit uses.
kunwp1
left a comment
There was a problem hiding this comment.
LGTM! One minor thing for later: .github/release/vote-email-template.md lists 7 images. Now that compose runs result-service, texera-result-service should be added there, along with texera-notebook-migration-service and texera-agent-service, which compose already pulls but the template leaves out.
|
Thanks! I'll add those to the vote email template in a separate issue and fix, along with |
What changes were proposed in this PR?
result-service (#9356) is built and tested in CI, but nothing runs it. This PR deploys it in the single-node Docker Compose stack: it publishes an image for it, runs it, and routes
/api/results/to it through nginx. Nothing calls it yet; #8996 moves the result panel over.bin/dockerfiles/result-service.dockerfile(new) isfile-service.dockerfilewith the service's name and port (9102).build-and-push-images.ymlmaps it totexera-result-service, the prefix every other image uses.docker-compose.ymlstarts it once Postgres and Lakekeeper are up and the warehouse is created, as the computing unit does, and nginx waits for it like the other services. It needs no new.envvalues: it reads the database, Lakekeeper and object storage settings the stack already has.nginx.confroutes/api/results/to it; the longer prefix wins over the/api/catch-all.docker-compose.observability.ymlturns its tracing on like the other services.Any related issues, documentation, discussions?
Closes #9637. Part of #8995. Mirrors #7932, which deployed notebook-migration-service the same way. Local-dev and Kubernetes follow in separate PRs.
How was this PR tested?
docker compose configpasses with and without the observability overlay, andtest_single_node_sh.sh,test_load_examples_sh.shandtest_create_release_tarballs.shpass.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-5-5)