TODOΒΆ
On the canonical domain
libretranslate.<DOMAIN_PRIMARY>the interface opens with a warning card βThis website might be in violation of our trademark guidelinesβ instead of the translation form until the visitor clicks βDismissβ (measured: 7 of 10 loads). Upstreamlibretranslate/templates/app.js.template:75-78sets it for every host name that starts withlibretranslate.and does not end in.com, whenever/frontend/settingsanswers before/languages. Options: move the canonical domain inmeta/domains.ymlto a name that does not start withlibretranslate.(for exampletranslate.<DOMAIN_PRIMARY>), or leave it.Inference requests exhaust the container limits
mem_limit: 256mandcpus: "0.2"ofmeta/services.yml, because gunicorn starts four workers (LT_THREADSdefault) that each load the models on their first request. Measured: threePOST /translatecalls in a row gave502after 4.7 s,200after 79 s and502after 40 s with fourWorker (pid) was sent SIGKILL! Perhaps out of memory?lines, and a series ofPOST /detectcalls from Swagger UI (at most sixteen) killed two more workers and left the container at 248.9 MiB of 256 MiB and 20 % CPU, reportedhealthy, while no request (not even a static file) was answered for 20 minutes until the container was restarted. Options: raisemem_limitandcpus, setLT_THREADSto one worker intemplates/env.j2, and letscripts/healthcheck.pyfail when the HTTP port stops answering.