Æí¸®ÇÑ È£½ºÆà ¹Ì¼ÒIDC

   
 
 
 

      1Â÷ ³×ÀÓ¼­¹ö :
      ns1.misoidc.com
      101.79.73.101

      2Â÷ ³×ÀÓ¼­¹ö :
      ns2.misoidc.com
      101.79.73.105

      ¾îÁ¦ : 345 ,¿À´Ã : 295
      Àüü : 1,238,093


     

 

 
ÀÛ¼ºÀÏ : 10-10-11 13:55
Wowza ¼³Ä¡ ¹× Æ©´×
 ±Û¾´ÀÌ : ½ÑÀ¥È£½ºÆÃ
Á¶È¸ : 54,780  
Wowza ¼³Ä¡ ¹× Æ©´× on Ubuntu 10.04 CDN

2010/07/27 09:45

º¹»ç http://blog.naver.com/aninuri/60111872537

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 ±â¹ÝÀÇ ¿È´Ï¾Æ
  • ¾Èµå·ÎÀ̵å
  • ¾ÆÀÌÆù, ¾ÆÀÌÆеå
</scRIPT></IFRAME>

* ¿ø¹®Ãâó : http://www.eblove.com/rgboard/view.php?&bbs_id=web1004i01&doc_num=252


 
 

Total 78
¹øÈ£ Á¦   ¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
18 Wowza ¼³Ä¡ ¹× Æ©´× ½ÑÀ¥È£½ºÆà 10-11 54781
17 wowza live ½ºÆ®¸®¹Ö ½ÑÀ¥È£½ºÆà 10-11 65159
16 [qmail] ¼³Ä¡ ´ëÇà ½ÑÀ¥È£½ºÆà 10-11 46116
15 ¿À¶óŬ DB »ý¼º ½ÑÀ¥È£½ºÆà 07-13 30261
14 [CREATE DATABASE] ¿À¶óŬ DB ¼öµ¿»ý¼º ( CREATE DATABASE ÀÌ¿ë) ½ÑÀ¥È£½ºÆà 07-07 66288
13 À©µµ¿ì¿¡¼­ ¿À¶óŬ InstantClient ¼³Ä¡ ÈÄ Toad ¿¬°á¹ý ½ÑÀ¥È£½ºÆà 07-07 61748
12 oracle 10g¼³Ä¡ ¹®¼­ ½ÑÀ¥È£½ºÆà 07-06 22913
11 CentOS 5.5 ±â¹Ý Oracle 10g ¼³Ä¡(2. ȯ°æ º¯¼ö ¼³Á¤) ½ÑÀ¥È£½ºÆà 07-06 33319
10 CentOS 5.5 ±â¹Ý Oracle 10g ¼³Ä¡(1. OS ¼³Ä¡) ½ÑÀ¥È£½ºÆà 07-06 29421
9 ȸ¼±º° wi-fi Æнº¿öµå ½ÑÀ¥È£½ºÆà 07-01 23203
8 CentOS 4.x ¹öÁ¯¿¡ php5, mysql5 ¸¦ yum À¸·Î ¼³Ä¡ °¡´ÉÇÏ°ÔÇϱ⠽ÑÀ¥È£½ºÆà 06-29 55509
7 ÅèĹ ¾ÆÆÄÄ¡ ¿¬µ¿½Ã °£´ÜÇÑ ¼³Á¤ ½ÑÀ¥È£½ºÆà 06-28 75201
6 jsp °èÁ¤ ¼ÂÆðú ¹öÃß¾óÈ£½ºÆ® ¼³Á¤ ½ÑÀ¥È£½ºÆà 06-28 199079
5 drbd sync ±úÁ³À»¶§ [solved] ½ÑÀ¥È£½ºÆà 06-28 31380
4 DRBD split brain ó¸®Çϱ⠽ÑÀ¥È£½ºÆà 06-28 25191
 1  2  3  4  5  6