Skip to content

Instantly share code, notes, and snippets.

@phstudy
phstudy / TestDFSIO_results.log
Created May 17, 2014 23:55
HA 4 Nodes - 8GB/Node 2NN, 3DN, 3NM (VMs deployed on 4 different HDD)
----- TestDFSIO ----- : read
Date & time: Sun May 18 07:24:03 CST 2014
Number of files: 10
Total MBytes processed: 10000.0
Throughput mb/sec: 51.92404550623348
Average IO rate mb/sec: 65.51341247558594
IO rate std deviation: 30.326697909865505
Test exec time sec: 84.001
----- TestDFSIO ----- : read
@phstudy
phstudy / TestDFSIO_results.log
Last active August 29, 2015 14:01
HA 4 Nodes - 8GB/Node 2NN, 3DN, 3NM (VMs deployed on 4 different HDD and tuned JVM parameters)
----- TestDFSIO ----- : write
Date & time: Sun May 18 08:15:05 CST 2014
Number of files: 10
Total MBytes processed: 10000.0
Throughput mb/sec: 9.214067669955782
Average IO rate mb/sec: 9.27421760559082
IO rate std deviation: 0.7552383706698728
Test exec time sec: 261.614
----- TestDFSIO ----- : write
@phstudy
phstudy / TestDFSIO_results.log
Created May 19, 2014 08:57
HA 4 Nodes - 8GB/Node 2NN, 2DN, 2NM (VMs deployed on 4 different HDD and tuned JVM parameters)
----- TestDFSIO ----- : write
Date & time: Mon May 19 11:11:17 CST 2014
Number of files: 10
Total MBytes processed: 10000.0
Throughput mb/sec: 15.226401361849337
Average IO rate mb/sec: 15.8214111328125
IO rate std deviation: 3.6683988613521583
Test exec time sec: 295.618
----- TestDFSIO ----- : write
@phstudy
phstudy / TestDFSIO_results.log
Created May 19, 2014 10:31
JPS_HA 4 Nodes - 8GB/Node 2NN, 2DN, 2NM (VMs deployed on 4 different HDD and tuned JVM parameters)
----- TestDFSIO ----- : write
Date & time: Mon May 19 17:14:20 CST 2014
Number of files: 10
Total MBytes processed: 10000.0
Throughput mb/sec: 13.56559439686689
Average IO rate mb/sec: 13.863067626953125
IO rate std deviation: 2.1142203063369194
Test exec time sec: 321.241
----- TestDFSIO ----- : write
@phstudy
phstudy / resize.md
Created May 25, 2014 05:34
resize vagrant box vmdk

cd ~/.vagrant.d/boxes/puppetlab-centos-64-nocm/0/virtualbox/ VBoxManage clonehd "box-disk1.vmdk" "cloned-box-disk1.vdi" --format vdi VBoxManage modifyhd "cloned-box-disk1.vdi" --resize 81920 VBoxManage clonehd "cloned-box-disk1.vdi" "cloned-box-disk1.vmdk" --format vmdk # write down uuid

modify box.ovf

start an new vm and attach cloned-box-disk1.vmdk

fdisk /dev/sdX

@phstudy
phstudy / Vagrantfile
Created July 17, 2014 17:04
a Vagrantfile to spin up a docker ready aws instance in tokyo
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "dummy"
config.ssh.pty = true
@phstudy
phstudy / Dockerfile
Last active August 29, 2015 14:04
tomcat7 sample Dockerfile
FROM ubuntu:14.04
MAINTAINER Study Hsueh "ph.study@gmail.com"
# Update Ubuntu
RUN apt-get update
# Install tomcat7
RUN apt-get -y install tomcat7
# Expose 8080 port
@phstudy
phstudy / create-rathena-container.sh
Created July 24, 2014 20:43
script to spin up docker container for rathena
sudo docker run --name rathena -e AWS=true --link rathena-mysql:mysql -p 6900:6900 -p 6121:6121 -p 5121:5121 -d 'study/rathena:latest'
#sudo docker run --name rathena --link rathena-mysql:mysql --rm -it 'study/rathena:latest' /bin/bash
@phstudy
phstudy / create-mysql-container.sh
Last active August 29, 2015 14:04
script to spin up docker container for mysql
sudo docker run --name rathena-mysql -e MYSQL_ROOT_PASSWORD=rathena731220 -d mysql