PRUEBAS DE CARGA EN LINUX

Programa «Stress» (http://weather.ou.edu/~apw/projects/stress/) Here is an example invocation: a load average of four is imposed on the system by specifying two CPU-bound processes, one I/O-bound process, and one memory allocator process. $ stress –cpu 2 –io 1 –vm 1 –vm-bytes 128M –timeout 10s –verbose

TIPS DE LA BASH

Tenemos la variable $RANDOM que nos muestra un número aleatorio cada vez. Hacer una secuencia de números: $ seq 1 10  (Contaría del uno al 10) Crear una serie de ficheros de tamaño aleatorio: $ for i in $(seq 1 1000); do let «size = ($RANDOM/100)»; dd if=/dev/urandom \ of=file-$i count=$size 2>/dev/null;done

PROXY INVERSO CON APACHE

ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> #<VirtualHost *:80> #ServerName webserver.agrega.indra.es ProxyPreserveHost On (Importante si tenemos host virtuales en destino) ProxyPass / http://172.22.145.114/ ProxyPassReverse / http://172.22.145.114/