Ubuntu ¿¡ JAVA¸¦ ¼³Ä¡ÇÕ´Ï´Ù
cat >> /etc/apt/sources.list deb http://archive.canonical.com/ lucid partner ^D
apt-get update
apt-get -y install sun-java6-jre
// ¶óÀ̼¾½º µ¿ÀǸ¦ ÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù // Do you accept the DLJ license terms? Yes
java -version
|
Wowza ¸¦ ´Ù¿î·Îµå ¹Þ½À´Ï´Ù.
http://www.wowzamedia.com/store.html
wget http://www.wowzamedia.com/downloads/WowzaMediaServer-2-1-2/WowzaMediaServer-2.1.2.deb.bin
chmod +x WowzaMediaServer-2.1.2.deb.bin
./WowzaMediaServer-2.1.2.deb.bin // ¶óÀ̼¾½º µ¿ÀǸ¦ ÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù. Yes
|
¶óÀ̼¾½º¿¡´Â ´ÙÀ½ÀÇ Á¾·ù°¡ ÀÖÀ¸´Ï ²À ÁÖÀÇÇؼ ±¸¸ÅÇϽñ⠹ٶø´Ï´Ù.
- °³¹ß ¶óÀ̼¾½º - ¹«·á
- ¼¹ö ¶óÀ̼¾½º - $995
- CDN, È£½ºÆÃ, ¼ºñ½º ¿ë ¶óÀ̼¾½º - ¿ù $65
- ¾Æ¸¶Á¸ EC2 ¿ë ¶óÀ̼¾½º
cd /usr/local/WowzaMediaServer/conf/
cat >> Server.license
// ¶óÀ̼¾½º ÄÚµå ÀÔ·Â
/etc/init.d/WowzaMediaServer start
// ¼ºñ½º¿ëÀ¸·Î µ¥¸ó ½ºÅ¸Æ®½Ã ÀÌ ¹æ¹ýÀ» »ç¿ëÇϼ¼¿ä ¶Ç´Â
cd /usr/local/WowzaMediaServer/bin#
./startup.sh
// ÀÌ ¹æ¹ýÀÏ °æ¿ì ·Î±× º¸±â ÆíÇÏ´Ï µð¹ö±ë½Ã »ç¿ëÇϼ¼¿ä.
|
Æ©´×
Wowza ÀÇ ±âº» ¹èÆ÷ÆÇÀº ¸Þ¸ð¸®¸¦ Àû°Ô »ç¿ëÇÏ°Ô µÇ¾î ÀÖ½À´Ï´Ù.
°¡´ÉÇϸé 64 bit °¡ Áö¿øÇÏ´Â ¼¹ö¸¦ »ç¿ëÇϽðí, Out of Memory ·Î ½Ã½ºÅÛÀÌ ´Ù¿îµÇ´Â Çö»óÀ» Á¾Á¾ º¸±â ½ÈÀ¸½Ã´Ù¸é, ¸Þ¸ð¸®¸¦ dzºÎÇÏ°Ô »ç¿ëÇϽñ⠹ٶø´Ï´Ù. NIC¸¦ º»µùÇÏ°í ³×Æ®¿öÅ© Æ®·¡ÇÈ Over 1Gb ÀÌ¿ë½Ã , ¸Þ¸ð¸® 8GB Ãßõµå¸³´Ï´Ù
# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
#cd /usr/local/WowzaMediaServer/bin
#vi setenv.sh
JAVA_OPTS="-Xmx5000M" <= ¼öÁ¤
// start ½Ã ´ÙÀ½°ú °°ÀÌ 5000M ·Î ³ªÅ¸³ª¸é OK INFO server comment - Java Args[0]: -Xmx5000M
* ±×·¡µµ ¸Þ¸ð¸® ¹®Á¦·Î ´Ù¿îµÇ´Â Çö»óÀÌ ¹ß»ýÇϸé, ´ÙÀ½ ¹æ¹ýó·³ JAVAÀÇ Garbage Colllection À» »ç¿ëÇغ¸¼¼¿ä
# setenv.sh ÆíÁý //10¹ø° ÁÙ¿¡ ÁÖ¼® ó¸®µÈ°É Á¦°ÅÇϼ¼¿ä. JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseParNewGC"
* Too many files open ¸Þ¼¼Áö »ç¿ë ½Ã, ¸®´ª½º FD ¸¦ Áõ°¡ÇØÁÖ¼¼¿ä
bin µð·ºÅ丮ÀÇ wms.sh ÆíÁý ulimit -n 65536
¸¶Âù°¡Áö·Îstartup.sh ÆíÁý ulimit -n 65536
Wowza ½ÇÇà ½Ã, ´ÙÀ½ ¸Þ¼¼Áö°¡ ³ª¿À¸é ¼º°øÀÔ´Ï´Ù.
INFO server comment - Max File Descriptor Count: 65536
»ç¿ë ÁßÀÎ ¸®´ª½ºÀÇ FD ÃÖ´ë °³¼ö´Â ´ÙÀ½°ú °°ÀÌ ¾Ë ¼ö ÀÖ½À´Ï´Ù.
#sysctl -a | grep file-max fs.file-max = 797556
* ¸¹Àº VOD ÆÄÀÏÀ» ¾×¼¼½º½Ã¿¡, º°µµÀÇ ÆÄƼ¼ÇÀ¸·Î µð½ºÅ©¸¦ ¸¶¿îÆ® ÇØÁÖ¼¼¿ä
/etc/fstab ¿¡ ´ÙÀ½ ¿É¼Ç Ãß°¡ : rw,nosuid,nodev,noatime,nodiratime
|
CPU ¸¦ ÃÖ´ëÇÑ »ç¿ëÇϱâ À§ÇÏ¿©, ¿©·¯ºÐÀÌ »ç¿ëÁßÀÎ ÇÁ·Î¼¼½º °³¼ö¸¦ °è»êÇغ¸¼¼¿ä.
¿¹¸¦µé¾î ¿äÁò ÄõµåÄÚ¾î CPU°¡ ÁÖ·ùÀÌ´Ï, CPU °¡ 2ÀåÀÎ ¼¹öÀÎ °æ¿ì ´ÙÀ½°ú °°ÀÌ 2 * 4 = 8 °³ÀÇ ¼öÄ¡°¡ ³ª¿É´Ï´Ù.
( ÇÏÀÌÆÛ¾²·¯µå ±â´É »ç¿ë½Ã , CPU °³¼ö°¡ 2¹è°¡ µË´Ï´Ù. ºñÈ¿À²ÀûÀÌ´Ï ²¨µÎ¼¼¿ä )
±âº»ÀûÀ¸·Î Wowza ´Â 1 CPU ±âÁØÀ¸·Î ¼³Á¤µÇ¾î ÀÖ½À´Ï´Ù.
conf/VHost.xml À» ´ÙÀ½ÀÇ °ø½Ä ±âÁØÀ¸·Î ¼³Á¤ÇÏ¿© ÁÖ¼¼¿ä.
HostPort/ProcessorCount: 2x[total-core-count] (maximum of 24) IdleWorkers/WorkerCount: 2x[total-core-count] (maximum of 24)
NetConnections/ProcessorCount: 2x[total-core-count] (maximum of 24)
RTP/DatagramConfiguration/UnicastIncoming/ProcessorCount: [total-core-count] (maximum of 12) RTP/DatagramConfiguration/UnicastOutgoing/ProcessorCount: 2x[total-core-count] (maximum of 24)
RTP/DatagramConfiguration/MulticastIncoming/ProcessorCount: [total-core-count] (maximum of 12) RTP/DatagramConfiguration/MulticastOutgoing/ProcessorCount: [total-core-count] (maximum of 12)
HandlerThreadPool/PoolSize: (300x[total-core-count])/5 (maximum of 480) TransportThreadPool/PoolSize: (200x[total-core-count])/5 (maximum of 320)
|
³×Æ®¿öÅ© ´ë¿©ÆøÀÌ ÃæºÐÇÏ´Ù¸é ´ÙÀ½°ú °°ÀÌ º»µùÀ» ÇÏ¿©, ¼¹ö »ç¿ë·üÀ» ³ôÀ̼¼¿ä.
¼¹ö ÇÑ ´ë´ç 3Gb ~ 4Gb ³ª¿Â´Ù¸é ~~~ -_-)b
´Ü ÀÏ¹Ý Progressive Download µ¥¸óµé°ú´Â Ʋ¸®°Ô, Streaming Download À̹ǷΠCPU ºÎÇϸ¦ ¸¹ÀÌ ¸Ô½À´Ï´Ù.
ÄõµåÄÚ¾îÀÇ 2CPU / ¸Þ¸ð¸®´Â 16 GB Ãßõ :-)
/etc/modprobe.d/bonding.conf
* ´ÙÀ½ ³»¿ëÀ» Ãß°¡ ( mode 4 °¡ Àû¿ëµÉ·Á¸é, ½ºÀ§Ä¡¿¡¼ 802.3ad °¡ Áö¿øÇØ¾ß ÇÕ´Ï´Ù. ¾ÈµÇ¸é 1 ·Î Çϼ¼¿ä )
alias bond0 bonding options bonding mode=4 miimon=100
/etc/network/interfaces
* eth0 ºÎºÐÀ» Á¦°ÅÇÏ°í, bond µå¶óÀÌºê ·Îµù
auto bond0 iface bond0 inet static address 1.1.1.1 netmask 255.255.255.192 network 1.1.1.0 broadcast 1.1.1.63 gateway 1.1.1.62 post-up ifenslave bond0 eth0 eth1 eth2 eth3 post-down ifenslave -d bond0 eth0 eth1 eth2 eth3
|
1 CPU Äõµå ÄÚ¾î·Î Å×½ºÆ®ÇÒ¶§ÀÇ °á°ú°ª ÀÔ´Ï´Ù.
500K Àü¼Û½Ã µ¿Á¢ÀÚ 400 ¸í, Æ®·¡ÇÈ 200Mbps °¡ ³ª¿É´Ï´Ù.
¹ØÀÇ atop ȸéÀº 200 ¸íÀ϶§ ĸÃçÇÑ È¸éÀÔ´Ï´Ù. .
[ Wowza ¸ð´ÏÅ͸µ ȸé ]
[ atop ]
ÀÚ ÀÌÁ¦ Wowza ¸¦ »ç¿ëÇÏ¿©, ¸ðµç PC + ¸ð¹ÙÀÏÆù »ó¿¡¼ÀÇ µ¿¿µ»ó Àç»ýÀ» Áñ°Üº¾½Ã´Ù.
- À©µµ¿ìCE ±â¹ÝÀÇ ¿È´Ï¾Æ
- ¾Èµå·ÎÀ̵å
- ¾ÆÀÌÆù, ¾ÆÀÌÆеå