VM-Storage » History » Version 1

Alexander Blum, 10/05/2019 08:10 PM

1 1 Alexander Blum
{{toc}}
2 1 Alexander Blum
3 1 Alexander Blum
# VM-Storage
4 1 Alexander Blum
5 1 Alexander Blum
## Setup
6 1 Alexander Blum
7 1 Alexander Blum
### [[Architecture#Minimal-Setup|Minimal]]
8 1 Alexander Blum
9 1 Alexander Blum
* 1 [[VM-Storage]] in [[M-Web]]
10 1 Alexander Blum
* Identification of the storage server with `HOSTNAME`
11 1 Alexander Blum
* The storage is mounted per samba on [[VM-Processing]] in `./storage/`
12 1 Alexander Blum
13 1 Alexander Blum
### [[Architecture#Optimal-Setup|Optimal]]
14 1 Alexander Blum
15 1 Alexander Blum
* 1 [[VM-Storage]] in each [[M-Processing]]
16 1 Alexander Blum
* Identification of the storage server with `URL` and `HOSTNAME`
17 1 Alexander Blum
* The storage is mounted per samba on all [[VM-Processing]] in `./storage/`
18 1 Alexander Blum
* Dynamic connection of one instance of [[VM-Storage]] to one [[M-Web]]
19 1 Alexander Blum
    * As soon as a user starts an upload, he will be associated with the current [[M-Web]] by a session variable
20 1 Alexander Blum
    * As long as there are files in `./storage/temporary/`, [[VM-Storage]] is pinned to [[M-Web]]
21 1 Alexander Blum
    * Nginx on [[VM-Nginx]] forwards the `URL` to the upload API directly to one instance of [[VM-Web]] on the associated [[M-Web]]
22 1 Alexander Blum
    * A script takes care of the load balancing of all instances of [[VM-Storage]]
23 1 Alexander Blum
* Authentification
24 1 Alexander Blum
    * User: Cookie (all [[VM-Web]] have to synchronize their cookies)
25 1 Alexander Blum
26 1 Alexander Blum
## Services
27 1 Alexander Blum
28 1 Alexander Blum
* Samba server
29 1 Alexander Blum
30 1 Alexander Blum
## Specification
31 1 Alexander Blum
32 1 Alexander Blum
* File storage server for intermediate storage of the uploaded files
33 1 Alexander Blum
* For further details, see [[Specification#Intermediate-storage-for archive]]