EasyEngine / EasyEngine/easyengine

Use different Volumes for storage

Aperta
#1,196 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
kind/enhancement status/need-discussion
Lingua principale
PHP
Stelle
2.2k
Fork
424
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I came with a situation that I consistently do in my WP installations, for example

Adding one or 2 volumes for WP uploads folder and change MySQL db to another volume.

RAID, network block storage, and other devices can offer redundancy and other desirable features. But when you are in a low budget situation or different infrastructure situation you would always prefer to increase Storage

In what situation would you need this:
- Databases grow over time, sometimes outgrowing the space on the file system.
- You can also run into I/O contention when they’re located on the same partition as the rest of the operating system.
- Volumes/Pods are cheaper

The idea in general would be that in the creation of a site, you could add a different storage path.

like:

`ee site create cdn.mywp.io --type=wp --uploadspath=/mnt/volume-uploads/ --dbpath=/mnt/volume-mysql/mysql-data/ --le --cache
`

`uploadspath` should change in the `wp_options`

`upload_path`
`upload_url_path`

or just define the upload path to wp-config.php

`define( 'UPLOADS', '/mnt/volume-uploads/' );`

I suppose that docker will do the correct changes inside the container for the storage location of `/mysql/` and the logs

Also if there are better ways to achieve this hope somebody could give insights.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dal punto di ingresso `ee site create` e verifica come vengono attualmente gestiti le impostazioni di upload di WordPress, lo storage MySQL, i volumi Docker e i log. L’issue non indica file o test; per considerarla completata sarebbe necessario definire e testare un modo per configurare percorsi separati per gli upload e il database durante la creazione del sito.

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

Valutazione

Stack tecnologico
docker, mysql, nginx, php, wordpress
Ambito
cli, databases, devops, infrastructure
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.