Commit riorganizzaizone files + readme nuovi

This commit is contained in:
Samuele E. Locatelli
2017-09-22 15:16:26 +02:00
parent 63586bf3e6
commit 78303f51ba
163 changed files with 150 additions and 2 deletions
+144 -2
View File
@@ -1,3 +1,145 @@
# EQN
# EQN - EarthQuakeNetwork
Gestione progetti EarthQuakeNetwork, www.earthquakenetwork.it
Applicazione di rilevamento terremoti e segnalazione, Android based, sviluppata da Francesco Finazzi e gestita (per infrastruttura server) su cluster steamware in OVH
Di seguito indicato come EQN per brevità
## Struttura Logica
A livello logico c'è un applicazione android ed un sistema di server centrali ceh effettuano la vera elaborazione
## Servers
Ci sono 3 livelli di server:
`
---> LB01.eqn -- ---> FE01 --
Internet (RED) --|--> LB02.eqn --|--> GREEN --|--> FE02 --|--> DB
---> LB03.eqn -- ---> FE03 --
`
- LB: 3 x Load Balancers (distribuzione carico)
- FE: 3 x Front End (elaborazione codice PHP)
- DB: DB principale (ed unico)
in aggiunta
- RED: server REDIS per persistenza "di breve durata" (redis01)
## Comandi utili
Per ispezionare il server Redis a partire da LB01 (dove sono installati i `redis-tools`)
redis-cli -h reds01
## Link Utili
Verifica carico LB:
- http://lb01.earthquakenetwork.it/nginx_status
- http://lb02.earthquakenetwork.it/nginx_status
- http://lb03.earthquakenetwork.it/nginx_status
## Update Vari
### 2017.09.22
Analisi access log:
_ 22.09.2017 6:25:05
_ 22.09.2017 10:25:23
_ 1'646'359 righe in 4h circa
_ circa 115/sec per ogni LB (350 in 3 LB)
ELIMINATO CONF ACCESS LOG:
#### LB01/LB02/LB03
**nginx.conf**: eliminato logging (parte saliente)
<code>
...
##
# Logging Settings
##
# 2017-09-22 SAM: tolgo log access x performance
access_log off;
access_log /var/log/nginx/access.log upstreamlog;
error_log /var/log/nginx/error.log;
...
</code>
**sites-enabled/default**: eliminato logging (parte saliente)
<code>
...
location /srv {
#location /mysql {
if ($request_uri ~* "([^/]*$)" ) {
set $last_uri $1;
}
access_log off;
#return 301 http://srv.earthquakenetwork.it/$last_uri;
return http://srv.earthquakenetwork.it/$last_uri;
}
location /htiles {
#location /mysql {
if ($request_uri ~* "([^/]*$)" ) {
set $last_uri $1;
}
access_log off;
#return 301 http://srv.earthquakenetwork.it/$last_uri;
return http://htil.earthquakenetwork.it/$last_uri;
}
location /nginx_status {
stub_status on;
access_log off;
allow 79.7.213.2;
deny all;
}
...
</code>
####FE01/FE02/FE03
**nginx.conf**: eliminato logging (parte saliente)
<code>
...
##
# Logging Settings
##
# 2017-09-22 SAM: tolgo log access x performance
access_log off;
access_log /var/log/nginx/access.log upstreamlog;
error_log /var/log/nginx/error.log;
...
</code>
**sites-enabled/default**: eliminato logging (parte saliente)
<code>
...
location / {
access_log off;
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ =404;
}
...
</code>
Gestione progetti EarthQuakeNetwork
BIN
View File
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
# EQN - appServer
Di seguito le note sul funzionamento degli script del server di EQN, attenzione alle seguenti regole operative:
- tutto quanto salvato su LB01, nella cartella `/home/francesco/appServer` viene periodicamente (1/minuto) replicato sui 3 FE01/FE02/FE03 in modo da sincronizzare il codice operativo
- il mantenimento del repo git è manuale
Binary file not shown.
View File
View File

Some files were not shown because too many files have changed in this diff Show More