ISISComputingGroup / ISISComputingGroup/IBEX
MySQL: implement incremental truncation and backup
Nessuno ha ancora preso questa issue.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 6
- Fork
- 2
- Merge medio
- 16h 40m
- PR unite (30g)
- 2
Descrizione
As a developer i would like to spend less time truncating databases. While there are other longer term solutions being looked at, something like the following may work in the intermediate:
- mysql instance on central (windows or otherwise) server, will host per instrument databases called
archive_ndxzoometc. - run scheduled daily task python script on each NDX that
- backs up data that is both (a) not yet saved in a nexus run file and (b) older than a certain time threshold to both stage deleted sql files and the central mysql
archive_ndx*table - if both above successful, deletes these rows from local NDX database
- backs up data that is both (a) not yet saved in a nexus run file and (b) older than a certain time threshold to both stage deleted sql files and the central mysql
- ibex client could by default look at central mysql as well as local mysql (just adding an extra url to a plugin.ini) but need to check performance of this as a default
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Non viene indicato alcun file, test o punto di ingresso concreto. Inizia mappando il task Python pianificato proposto, i database MySQL locale e centrale, i file SQL in staging e la configurazione di plugin.ini; per considerare il lavoro completato sono necessari il workflow condizionale di backup ed eliminazione e un approccio definito per la ricerca nel database centrale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- mysql, python
- Ambito
- backend, databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100