Docs: moving a large site, how to make the import faster and what it costs

Aperta Adatta ai principianti
#813 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
laravel, php
Ambito
documentation

Direzione di ricerca

Inizia da docs/guides/operators/sizing.md, poi individua entrambe le guide di importazione e i riferimenti esistenti a TEME_QUEUE_WORKERS, «Files fetched at once in an import» e «Pause between requests». Aggiungi la sezione richiesta «Moving a large site» e inserisci un collegamento a essa in entrambe le guide di importazione. Il lavoro è concluso quando la sezione tratta le indicazioni elencate su velocità di importazione, risorse, carico del vecchio sito, tempistiche, verifica degli indirizzi e cartella uploads.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/import type/documentation when/soon

Operators moving a large site (tens of thousands of articles and pictures) have no single place that says how to make the import faster, or what that costs the old site and the new server. What exists is spread over configure.md (TEME_QUEUE_WORKERS), the media setting Files fetched at once in an import, and the import guides' Pause between requests.

Wanted: a section, "Moving a large site", in docs/guides/operators/sizing.md (linked from both import guides), saying:

  • Pictures fetched at once = the smaller of TEME_QUEUE_WORKERS and Files fetched at once. Raise both together. Each worker needs about 512 MB, so raise the worker container's memory limit with them.
  • Picture sizes are made on the long queue, by its own worker. Under many fetching workers it can become the slow part; watch it.
  • The pause between requests spares a live old site's PHP. Keep 0.5–1 s for a busy live site; 0 is fine for a site that is closed or idle. Picture files themselves are static and cheap for the old site.
  • Import early, catch up late: the full import days before the switch, so pictures and the address check finish in advance; on switch day only a catch-up.
  • On a shared server, cap Teme's containers (CPU and memory) so an import can't slow the other sites, and run the first import off-peak.
  • The address check runs on Teme only and puts no load on the old site, but takes long on very large sites (issue 812).
  • A copy of the uploads folder, once issue 791 lands, is the fastest way to bring pictures.
Lingua principale
PHP
Stelle
1
Fork
1
Merge medio
1h 41m
PR unite (30g)
150

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temecms/teme

Tutte le issue di temecms/teme

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.