User Tools

Site Tools


informatica:microservers:raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:microservers:raid [2020/12/12 22:57] – [Tunning] joseinformatica:microservers:raid [2020/12/16 00:05] (current) jose
Line 214: Line 214:
 errors: No known data errors errors: No known data errors
 </code> </code>
 +
 +====== NFS ======
 +Instalamos NFS:
 +  apt install nfs-kernel-server
 +Compartimos recurso:
 +  zfs set sharenfs=no_subtree_check,no_root_squash,async,rw=@192.168.1.0/24 dades
 +
 +Lo comprobamos:
 +  zfs get sharenfs dades
 +
 +  NAME   PROPERTY  VALUE                                                     SOURCE
 +  dades  sharenfs  no_subtree_check,no_root_squash,async,rw=@192.168.1.0/24  local
 +Desde otro servidor (tenemos que tener instalado nfs-common)
 +  apt-get install nfs-common
 +
 +  showmount -e 192.168.1.76
 +  Export list for 192.168.1.76:
 +  /dades       192.168.1.0/24
 +
 +====== Instalación FTP ======
 +Lo haremos con docker. Primero instalamos docker:
 +  sudo apt-get install \
 +    apt-transport-https \
 +    ca-certificates \
 +    curl \
 +    gnupg-agent \
 +    software-properties-common
 +  
 +  curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
 +
 +  apt-key fingerprint 0EBFCD88
 +  
 +  add-apt-repository \
 +   "deb [arch=amd64] https://download.docker.com/linux/debian \
 +   buster \
 +   stable"
 +
 +  apt-get update
 +  apt-get install docker-ce docker-ce-cli containerd.io
 +
 +Docker compose:
 +  sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
 +  sudo chmod +x /usr/local/bin/docker-compose
 +
 +  
 +  docker run --rm --name ftp_server -d -p 21:21 -p 21000-21010:21000-21010 -v /dades/jandro:/ftp/jandro -e USERS="user|password" -e ADDRESS=ftp.lobo99.info delfer/alpine-ftp-server
  
 ====== Pruebas de velocidad ====== ====== Pruebas de velocidad ======
 +Las hacemos con la aplicación fio, la instalamos:
 +  apt-get install fio
 ===== Local ===== ===== Local =====
 +Escritura 260 IOPS 
 +
 Creamos un fichero de 16gbs: Creamos un fichero de 16gbs:
   cd /dades   cd /dades
Line 253: Line 303:
  
 </code> </code>
 +Nos quedamos con la línea 7 que dice que son 260 IOPS
 +    write: IOPS=260, BW=261MiB/s (273MB/s)(16.0GiB/62844msec); 0 zone resets
  
 Provem 4 processos de lectura y escriptura: Provem 4 processos de lectura y escriptura:
  
-Lectura:+Lectura 418 IOPS:
   fio --time_based --name="$(hostname).randread" --size=16G --runtime=30 --filename=fio_file --ioengine=libaio --randrepeat=0 --iodepth=128 --direct=1 --invalidate=1 --verify=0 --verify_fatal=0 --numjobs=4 --rw=randread --blocksize=8k --group_reporting   fio --time_based --name="$(hostname).randread" --size=16G --runtime=30 --filename=fio_file --ioengine=libaio --randrepeat=0 --iodepth=128 --direct=1 --invalidate=1 --verify=0 --verify_fatal=0 --numjobs=4 --rw=randread --blocksize=8k --group_reporting
 <code> <code>
Line 291: Line 343:
 </code> </code>
  
-Escriptura:+Escriptura (409 IOPS):
   fio --time_based --name="$(hostname).randwrite" --size=16G --runtime=30 --filename=fio_file --ioengine=libaio --randrepeat=0 --iodepth=128 --direct=1 --invalidate=1 --verify=0 --verify_fatal=0 --numjobs=4 --rw=randwrite --blocksize=8k --group_reporting   fio --time_based --name="$(hostname).randwrite" --size=16G --runtime=30 --filename=fio_file --ioengine=libaio --randrepeat=0 --iodepth=128 --direct=1 --invalidate=1 --verify=0 --verify_fatal=0 --numjobs=4 --rw=randwrite --blocksize=8k --group_reporting
 <code> <code>
Line 327: Line 379:
 </code> </code>
  
-==== Remoto ====+===== Remoto ====
 +SCP: 
 +  5.6G 105.0MB/  00:54 
 +  16GB 104.2MB/  02:37 
 +   
 +NFS: 
 +Montamos el recurso: 
 +  mount 192.168.1.76:/dades /mnt/nfs/ 
 +Copiamos los ficheros: 
 +  time cp fitxer /mnt/nfs 
 + 
 +  5.6G real 0m53.395s 
 +  16GB real 2m33.965s 
 + 
 +FTP: 
 + 
 +Desde una conexión 100Mbps/100Mbps 
 +  1.6Gb (1718558720 bytes) sent in 132.96 secs (12.3269 MB/s) 
 +  5.5Gb (5864260625 bytes) sent in 453.54 secs (12.3311 MB/s) 
 + 
 +Desde una conexión 552Mbps/573Mbps 
 +  1Gb (1073741824 bytes) sent in 23.7 secs (45279.08 Kbytes/sec) 
 +  5Gb (5368709120 bytes) sent in 110 secs (48596.40 Kbytes/sec) 
 + 
  
  
  
informatica/microservers/raid.1607813859.txt.gz · Last modified: 2020/12/12 22:57 by jose