# 環境
お名前.com VPS(KVM)2GBプラン60日間無料トライアル
注意:(大した影響はないけど、)CPUなどの各種情報は、忘れてたのでyumアップデート後のものです・・・
・CentOS6 ( 64bit )
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
・CPU 3コア
----------------------------------------------------------------------------------------------------------------------------
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
stepping : 11
cpu MHz : 3066.772
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc unfair_spinlock pni ssse3 cx16 hypervisor lahf_lm
bogomips : 6133.54
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
stepping : 11
cpu MHz : 3066.772
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc unfair_spinlock pni ssse3 cx16 hypervisor lahf_lm
bogomips : 6133.54
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
stepping : 11
cpu MHz : 3066.772
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc unfair_spinlock pni ssse3 cx16 hypervisor lahf_lm
bogomips : 6133.54
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
----------------------------------------------------------------------------------------------------------------------------
・メモリ 2GB
----------------------------------------------------------------------------------------------------------------------------
MemTotal: 2054800 kB
MemFree: 70052 kB
Buffers: 50604 kB
Cached: 1321248 kB
SwapCached: 0 kB
Active: 875176 kB
Inactive: 946504 kB
Active(anon): 331792 kB
Inactive(anon): 118232 kB
Active(file): 543384 kB
Inactive(file): 828272 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2064376 kB
SwapFree: 2064376 kB
Dirty: 20 kB
Writeback: 0 kB
AnonPages: 449972 kB
Mapped: 23152 kB
Shmem: 176 kB
Slab: 127324 kB
SReclaimable: 104916 kB
SUnreclaim: 22408 kB
KernelStack: 1232 kB
PageTables: 2784 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 3091776 kB
Committed_AS: 467092 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 11464 kB
VmallocChunk: 34359721480 kB
HardwareCorrupted: 0 kB
AnonHugePages: 425984 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 8180 kB
DirectMap2M: 2088960 kB
----------------------------------------------------------------------------------------------------------------------------
・ディスク容量 200GB
----------------------------------------------------------------------------------------------------------------------------
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
18G 1.9G 15G 12% /
tmpfs 1004M 0 1004M 0% /dev/shm
/dev/vda1 485M 72M 388M 16% /boot
/dev/vdb 178G 188M 168G 1% /data
# fdisk -l
Disk /dev/vda: 21.5 GB, 21474836480 bytes
16 heads, 63 sectors/track, 41610 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a608e
Device Boot Start End Blocks Id System
/dev/vda1 * 3 1018 512000 83
Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2 1018 41611 20458496 8e
Linux LVM
Partition 2 does not end on cylinder boundary.
Disk /dev/vdb: 193.3 GB, 193273528320 bytes
16 heads, 63 sectors/track, 374491 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_root: 18.8 GB, 18832424960 bytes
255 heads, 63 sectors/track, 2289 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_swap: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
# hdparm -tT /dev/vdb
/dev/vdb:
Timing cached reads: 11804 MB in 2.00 seconds = 5905.23 MB/sec
Timing buffered disk reads: 1922 MB in 3.01 seconds = 639.37 MB/sec
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
3 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 34300625.8 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4082.5 MWIPS (10.0 s, 7 samples)
Execl Throughput 1738.0 lps (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1079443.5 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 311005.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1996272.8 KBps (30.0 s, 2 samples)
Pipe Throughput 2578177.7 lps (10.0 s, 7 samples)
Pipe-based Context Switching 323675.3 lps (10.0 s, 7 samples)
Process Creation 3842.2 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 3525.5 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1841.1 lpm (60.0 s, 2 samples)
System Call Overhead 4553418.1 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 34300625.8 2939.2
Double-Precision Whetstone 55.0 4082.5 742.3
Execl Throughput 43.0 1738.0 404.2
File Copy 1024 bufsize 2000 maxblocks 3960.0 1079443.5 2725.9
File Copy 256 bufsize 500 maxblocks 1655.0 311005.0 1879.2
File Copy 4096 bufsize 8000 maxblocks 5800.0 1996272.8 3441.8
Pipe Throughput 12440.0 2578177.7 2072.5
Pipe-based Context Switching 4000.0 323675.3 809.2
Process Creation 126.0 3842.2 304.9
Shell Scripts (1 concurrent) 42.4 3525.5 831.5
Shell Scripts (8 concurrent) 6.0 1841.1 3068.5
System Call Overhead 15000.0 4553418.1 3035.6
========
System Benchmarks Index Score 1409.7
------------------------------------------------------------------------
3 CPUs in system; running 3 parallel copies of tests
Dhrystone 2 using register variables 101512390.4 lps (10.0 s, 7 samples)
Double-Precision Whetstone 11978.5 MWIPS (9.9 s, 7 samples)
Execl Throughput 12366.5 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 986615.6 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 291371.3 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2347718.7 KBps (30.0 s, 2 samples)
Pipe Throughput 7495616.2 lps (10.0 s, 7 samples)
Pipe-based Context Switching 975411.9 lps (10.0 s, 7 samples)
Process Creation 30677.1 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 14987.4 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 2000.3 lpm (60.0 s, 2 samples)
System Call Overhead 7863795.7 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 101512390.4 8698.6
Double-Precision Whetstone 55.0 11978.5 2177.9
Execl Throughput 43.0 12366.5 2875.9
File Copy 1024 bufsize 2000 maxblocks 3960.0 986615.6 2491.5
File Copy 256 bufsize 500 maxblocks 1655.0 291371.3 1760.6
File Copy 4096 bufsize 8000 maxblocks 5800.0 2347718.7 4047.8
Pipe Throughput 12440.0 7495616.2 6025.4
Pipe-based Context Switching 4000.0 975411.9 2438.5
Process Creation 126.0 30677.1 2434.7
Shell Scripts (1 concurrent) 42.4 14987.4 3534.8
Shell Scripts (8 concurrent) 6.0 2000.3 3333.9
System Call Overhead 15000.0 7863795.7 5242.5
========
System Benchmarks Index Score 3369.0
----------------------------------------------------------------------------------------------------------------------------
コストパフォーマンス的な意味で、他社のVPSサービスよりも優れてる印象だが、サイトの構成からも感じられる通り、価格とかスペックとか数値上のパフォーマンスが強みのサービスだと思う
だが、活用ガイドのページとか用意してあるのに、サービスの紹介ページにリンクとかバナーが無いのは不親切だと思うので、
個人的には、そこまでスペック要らないから、開発者支援制度とかで社会貢献してたり、使う人のことを考えてサービス専用に「よくある質問」がまとまっているサイト構成の CloudCore VPS の方が好みです
# ファイアウォールの設定
iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
iptables -I INPUT 6 -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
iptables -I INPUT 7 -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
iptables -I INPUT 8 -m state --state NEW -m tcp -p tcp --dport 8443 -j ACCEPT
service iptables save
# 開発ツールなどのインストール
yum -y groupinstall "Development Tools"
yum -y install sysstat ntp
wget
yum -y update
# cronの設定
crontab -e
----------------------------------------------------------------------------------------------------------------------------
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#MAILTO=root
HOME=/
MAILTO=""
0****/usr/sbin/ntpdate ntp.jst.mfeed.ad.jp > /dev/null 2>&1
----------------------------------------------------------------------------------------------------------------------------
※ VPSだから、時刻合わせの必要が無いかもしれないが、一応。。。
cd /usr/local/src/
rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.
x86_64.rpm
sed -i "s#enabled = 1#\#enabled = 1\nenabled = 0#" /etc/yum.repos.d/rpmforge.repo
rpm -Uvh epel-release-6-7.noarch.rpm
sed -i "s#enabled=1#\#enabled=1\nenabled = 0#" /etc/yum.repos.d/epel.repo
rpm -Uvh remi-release-6.rpm
※ 以下のように、
レポジトリをそれぞれ指定して利用する
yum search --enablerepo=rpmforge --enablerepo=remi --enablerepo=epel パッケージ名
# Jenkinsのインストール
yum install -y
java-1.7.0-openjdk
java-1.7.0-openjdk-devel ant
※ 必要に応じて Jenkinsの管理 > システムの設定 > セキュリティを有効化 から、接続の制限を実施すること(ローカルサーバでない限り必須)
とりあえず、Jenkinsのインストールまで
最終的には、phpenv、rbenv、Gitlab、あたりを利用して、既存環境に影響を与えずにCI環境を構築するところまでやってみようかと思う
早い話がサーバ内で完結する、TravisCIみたいなものを作りたいのです
ただし、予定は未定と言うことで
あー あと、Jenkinsと言えば、7月29日に東京で行われる、ユーザカンファレンスの内容を、富山にて中継で見ながら実際に触れてみる感じのイベントが開催されるので、北陸に住んでる方で、興味がある人は参加してみると良いのではないでしょうか