Wednesday, July 24, 2013

Building maven 3 in Linux

I thought it may be useful to have an explanation on how to build maven 3. My current setup is really simple:

* Linux Debian Squeeze
* Java 6 update 26
* ant 1.9.2 (1.8 does not work)

Step by step process using ant:
  • Download sources
  • Quickly read through:
  • Set the M2_HOME environment variable to the location that should contain Maven. This directory must be named after the Maven version you want to build and install, for example /usr/local/maven-3.1
    • export M2_HOME=/usr/local/maven-3.1
    • PATH=$M2_HOME/bin:$PATH
  • Execute ant (becuase I chose to install in /usr/local/... I had to run ant as root)
  • Execute as any user:
    • mvn -version. and the newly installed version will show up
Have fun!



Tuesday, July 23, 2013

Setting up a highly available (load balanced) cluster, using open source and Linux

Hi all,

Here you have a super nice how-to, explaining how to setup your own highly available, load balanced, computing cluster, using only open source and Linux:

http://www.howtoforge.com/high_availability_loadbalanced_apache_cluster

Impressive what you can do with a few computers and the right knowledge!! A really astounding document was written back in 2006 by the creator of HAProxy,  Willy Tarreau, analyzing different load balancing strategies:

http://www.exceliance.fr/sites/default/files/biblio/art-2006-making_applications_scalable_with_lb.pdf

Enjoy!