Immutable Snapshot Containers vs. Live tlmgr Updates for Zero-Downtime PDF Generation
0 reputation · 26 Nov 2022, 06:59 UTC
0 reputation · 26 Nov 2022, 06:59 UTC
A document generation service requires a strategy to update the underlying TeX Live distribution without interrupting active PDF requests. The primary constraint is maintaining service availability during the transition, as terminating running TeX engine processes is not permissible.
Two documented approaches present a trade-off between reproducibility and resource efficiency:
There is uncertainty regarding how latexmk handles engine transitions during these updates. Specifically, it is unclear if latexmk -pvc can reliably detect a switch between engines (such as pdfLaTeX to XeLaTeX) and trigger a clean rebuild without leaving auxiliary files that cause inconsistent output.
latexmk -pvc trigger a full cleanup of intermediate files when the engine configuration changes, or does it rely on incremental processing that may preserve stale artifacts?tlmgr update scenario, is there a documented mechanism to ensure all active TeX processes recognize package changes without a full container restart?A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.