DanielLeens commented on issue #12119:
URL: https://github.com/apache/seatunnel/issues/12119#issuecomment-7210304347

   ### Measured heap cost of queued jobs under WAIT
   
   @JeremyXin Thanks for volunteering and outlining the two-phase admission 
design. I ran a focused measurement on Apache SeaTunnel 3.1.0 in an isolated 
two-process Zeta cluster (one Master, one Worker, two static slots, JDK 11.0.27 
with G1 and a 768 MiB Master heap). A running job occupied both slots. I 
submitted FakeSource-to-Console jobs through the normal client path in batches 
of 100, 250, 500, and 1,000. I checked that the submitted jobs were still 
`PENDING` before and after each measurement. Each workload was run twice on 
fresh JVMs. Each measurement is the median of three post-GC heap readings, 
compared with the warmed baseline with no pending jobs.
   
   | Parallelism | Extra Master heap at 100 pending | At 500 pending | At 1,000 
pending | Average per job at 1,000 pending |
   | --- | ---: | ---: | ---: | ---: |
   | 1 | 5.9–7.9 MiB | 27.7–29.7 MiB | 53.6–54.4 MiB | 54.9–55.7 KiB |
   | 16 | 12.1–13.2 MiB | 58.0–58.1 MiB | 111.8 MiB | 114.4–114.5 KiB |
   
   The live heap histogram showed a 128-byte shallow size per `JobMaster`. The 
measured increase includes execution plans and other data retained while jobs 
are queued. After cancellation, the 1,000 additional `JobMaster` instances were 
collected in each run, and total heap usage remained above the baseline. A 
before-and-after implementation test would be needed to quantify the savings 
from deferring initialization. The parallelism-16 jobs were too large to start 
in the two-slot test cluster, so that case measures the cost of a larger queued 
execution plan.
   
   At roughly 6–13 MiB for 100 pending jobs in this test, I would defer the 
admission lifecycle change for deployments with modest backlogs and sufficient 
Master heap headroom. I would prioritize it if production regularly reaches 
queues of around 1,000 jobs, or if heavier execution plans and measured post-GC 
heap or GC pressure show a material impact at lower queue depths.
   
   Jeremy, could we close this issue for now and defer implementation? We can 
reopen it with production queue-depth and Master-heap evidence if that warrants 
prioritizing the change.
   
   <!-- stip12119-wait-heap-20261127 -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to