Gearman on Ubuntu

sudo apt-get install libevent-dev
sudo apt-get install uuid-dev

cd gearmand-0.9
./configure
make
sudo make install
sudo ldconfig

vi /etc/ld.so.conf

add

/usr/local/lib

sudo ldconfig

# start gearman

gearmand &

Advertisements
Gearman on Ubuntu

Downloading Large files by splitting them

On the host machine split the file into 500mb chunks called dump_aa, dump_ab etc

split –line-bytes=500m dump.sql.gz dump_

Once the chunks have been downloaded recreate the single file

cat dump_* >> dump.sql.gz

Run them into MySQL in Parallel

csplit backup.sql /”^– Current Database”/ {*}; for f in xx*; do cat xx00 “$f” | mysql& done;

Downloading Large files by splitting them