DB SSD+RAID 

ZSNET5   
   ȸ 20948   õ 0    

센트OS + Mysql 을 설치하여 사용 예정입니다.

 

Mysql 데이터는 3기가 정도 되고, 부하는 그리 크기 않으나 고객이 빠른 응답속도를 요구합니다.

 

1. SSD 4개를 RAID-5로 묶고 싱글볼륨으로 잡아서 OS와 DB를 동시에 설치하는 방법

 

2. SSD 2 + 2개를 각각 RAID-1 으로 잡아 별도의 볼륨으로 설정하고 OS와 DB를 따로 돌리는 방법

 

3. SSD는 못믿으니 차라리 SAS 15,000RPM으로 가능 방법(RAID는 알아서.. 잘~)

 

중 어떤 쪽이 퍼포먼스와 안정성, 유지보수 편이성 측면에서 나을런지요..

 

IDC에 입고시킬 장비이므로 항온항습과 전력에는 문제 없다 판단합니다.

 

 

..나는 세상의 중심..
ª ϼ ϰ.
ä 2011-03
޸ ־ mysql ϴ memorydb( heap table ) ø ɰ .
2011-03
2cpu .
1. RAID5 Ϻ OS / APP / DB .
2. OS RAID1 õϸ, DB 뵵 Ư ޶.
3. ϸü RAID ǹ̾.( Ѵٸ  .)
4. ̴.

Դϴ.
2011-03
SSD * 2 --> Raid 1 ( OS ) / SSD * 4 --> Raid 10 ( DB ) ؼ ϴ.

CentOS in box ̹ ڵ ö, OS õ ϰ, ӵ ų ֽϴ.
     
Bearth 2011-03
X25-E 迭̸ ڱ. ^^;
GoodWolf 2011-03
Raid 1 ( OS ) / SSD * 4 --> Raid 10( DB )  ǥ ϴ.
..
O.S Ϲ SAS SCSI Ȥ SATA ϼŵ ɵ ͽϴ. ^^
..
Ʈѷ ༮ ~
     
AKs 2011-03
մϴ.
ٵ ø 4¥ ̶ Ͻ δ ֽϴ.
Ʈѷ ༮ 翬 Ű.
ֵ 2011-03
DB ּ RAID 6 ƴϸ 1+0 ϼ. SSD 峪 뼺 ʼԴϴ.
ڿ쿭 2011-03
SSD * 2 --> Raid 1 ( OS ) / SSD * 4 --> Raid 10 ( DB )
sas/sata ż Ͻñ ٶϴ.
κ 2011-03
Raid 10 ǥ ϴ.

Raid 1 Read Cache ϴµ ( ߿ Ѱ ʿ )

̷ Ʈ ϸ б ӵ ſ ϴ.

DB κ ۾ ϰ Ͼ, κ ȸ ۾ ϸ ̷ ׿.

Raid 5 ...
2011-03
1 Ѵٸ  ᵵ ϰڳ׿.

 ڸƮ ߰غǵ..

1. SSD + RAID Ǿٰ ʽϴ.
  ͱ ũ RAID ޸ ġ SSD ˰ ȭ RAID
  ϴ   ƴմϴ.

2. SSD Ư Device Fail ǻ ҰϹǷ ؾ ˴ϴ.
  κ õ Ұ

3. MySQL DBMS Ϲ OLTP (¶ Ʈ) ÿ ޸ ijÿ INDEX 踦 ٸ 丮 ̽ DB ̹մϴ.
  SSD ̽ 뷮 IO ġ մϴ.
2011-03
ȣ 3 ڸƮ ǥ մϴ....
â 2011-03
ȣ 3 ǰ ƲȽϴ.
SSD Ư 𸣽ô е ׿ ̾߱⸦ մϴ.
  OLTP (Ư DB read ) SSD ϴ. SSD ׼ ϱ Դϴ.
Ư OLTP ִ RAID ϰ ٰ ֽϴ.

׸, 2 ǰߵ
ᱹ RAID 10 ذ˴ϴ.  DB ַ RAID 10 ϴµ ֱ Դϴ.

1 ǰߵ  ƲȽϴ.
SSD RAID ȭ ʾҰ RAID ȸ絵 SSD Ǿ ʾҽϴ.
, ׷ ʽϴ. SSD  RAID ǰ , κ RAID ּ
SSDϰ մϴ.
     
ä 2011-03
'Ʋȴ' ݺǼ бⰡ ׷ϴ.( ׷ 𸣰ڽϴ^^)
Cache Hit ratio 95%̶̻ SSD RAID set ȳð .

DB SSD ġǴ°쵵 ְ
DB SSDȾ鼭 Static Web񽺿 SSD ġϴ 쵵 ִٺ ?
     
2011-03
д ʹ ڽְ 'Ʋȴ' (?) Ͻô ϴ.
DB Ư ϰ SSD ɸ ó׿.

3 ڽϴ.
" ޸ ijÿ INDEX " ٷ DB Ưε װ ̳׿.

DBMS Ķ ð DB迡 ٸ BufferCache HIT-RATIO 96~99% ȸϴ Դϴ.
׷ 1~4% Physical reads ߻մϴ. Physical reads Sequential Random е˴ϴ.
Full Table Scan Sequentialϰ о̴ IO ū Random Read Access SSD 巯 Ǵµ
Ϲ OLTP DB SQL INDEX 谡 Ǿ ִٸ ٷ Random Read Access ߻
̰ Ʃ״ Ǿ ϴ Դϴ.

OLTP DB ü DML(I/U/D) ΰ SSD select(Random Access read) 󵵴 Disk ɰȿ ̹ϴٴ Դϴ.

׸ Ѱ ÷ϸ
"  OLTP (Ư DB read ) SSD ϴ" ϼ̴µ.
OLTP ״ online transaction ǽð Ʈ(i/u/d) ָ ̸ select DB ƴմϴ.
" DWø̼ OLAP DB SSD ϴ" ϼž ˴ϴ.
     
2011-03
Ѱ 𸣴 Ǿ ִµ.
"Ư OLTP ִ RAID ϰ ٰ ֽϴ."
RAID Ʈѷ OLTP ִٰ Ͻ ǰ? μ ó ̶ .
2011-03
DB 3Ⱑ ʾƺԴϴ.

޸ ˳ ȾƼ DB α׷ ƩϽø Ҹ ̾Ƴ־Դϴ.

ٷ SSD ̿ DB Ҿ ñ°̴ϴ.

񽺿 DB ᱹ SAS ۿ .
â 2011-03
ȣ, 亯ڸ,
ƹ Ƽ Ʃغ,  OEM ״ ī ϴ.  Ϲ ϵ SSD 񱳰 ̿ ϴ.
׸, OLTP RAID ִ° 𸣽Ŵٰ.
IBM, Sun, Adaptec RAIDǰ մϴ. ׸ Ϻ ̵ RAID ǰ ϰ, ǰ մϴ.
DB Ҷ 質 ó ߿ ̰ S/W ѵ˴ϴ,  ᱹ H/W ȯ汸 ޽ϴ.

Ʃ Ҽ I/O ̶, H/W ȯ ؼ ū I/O ȭ õϴ° ƮԴϴ.
     
2011-03
ɰ ϴ Ͼ Դϴ.
Ƽ Ϲ ׳ ī μŸ ̹̽Ƿƴϱ?

IBM, Sun, Adaptec RAIDǰ OLTP ˰ ǰ Ұ
ũ ˷ֽŴٸ д Ƿ ص帮ڽϴ.
          
â 2011-03
, ϱ ڷ Adaptec ֽ ޴ ѹ оñ ٶϴ.

׸, ̶ ϼ̴µ,
H/W ȯ ٲپ ϴ°  ,  DB Ͼ Ͽ ϴ ͺ Եϴ. H/W Ѱ  , ȭ óҼ ֽϴ.

ű⿡ Ʃױ ϸ, ǰ.

, Ź Ʃϴµ ɸ ڿ ߻ٴ, ƹ ȯ濡 ϸ ȯ Ե° Դϴ.

Դٰ db ڰ ٲ, α׷Ӱ ٲ ʰ ˴ϴ.

ڿ= ̶ Ͻó?
               
2011-03
Ż Ͻó׿.

ʿ ̳?
'⺻ DB谡 ִ DB ִ DISK SSD ü 쿡 ̹ϴ'
߽ϴ. H/W ġ ־
Disk ? SSD ? ִµ.

ڱ ߶׸° DBƩʸ ؾߵȴٴ 񱳴 Ż ƴѰ?

̰ DB ٶ  ̴ϴ.
DB ϴٸ DB Ͼ ʿ䰡 °.

̷ Ͻø ϴ ۿ ȵ˴ϴ.
               
2011-03
Adpatec Raid controller ֽŸŴ ãƺ ϼż ۸ؼ ôµ
OLTP ܾ ִ DataSheet PDF 1ۿ ãڳ׿.
http://www.adaptec.com/nr/pdfs/series6_ds.pdf

׷ ִ ôµ.
Ideal for bandwidth intensive storage applications; online transaction processing servers(OTLP)
, IO뿪 OLTP ϴٴ ε.

OLTP RAID ִ° Ǵ°ǰ?
⿣ ϰ ؼϽô Դϴ.
     
2011-03
׸ DB 𸣼ŵ ʹ 𸣽ʴϴ.
SQL ε  H/W ׷̵ ͺ ʹ ɰ ̷° ٷ Ÿ̽Դϴ. DB Ҷ ٴ ʰ翡 شϴ DB谡 ߿õǴ° ϹԴϴ.
⺻ DB H/W , ɰ 켱 Ǿ
DB κ̾ ϰ, H/W ɻκ ļ ̴ϴ.
          
â 2011-03
߸ Ͻô±.
db Ҷ  ⺻  ¿ h/w ٴ Դϴ.
Դٰ,  ű⿡ ϴ Ʃ , ȭ ϸ 谡 Ǵ Դϴ.

h/w ȯ  Դϴ. ̰ ϰ, db ſ ϴİ Դϴ.

h/w ȯ ⺻̰, ״ dbԴϴ.
̰ Ųٷ ϴ?  ̰ ǹԴϴ.

׸, ϴ ¼ ϴ ȯ Ͽ  ȭ κ ݿ ʰ, ڽŸ Ǵٰ ϴ 𸣰ڽϴ. IT ˰ ִ° ǹ̾° Ǿ⵵ մϴ.
RAID ̾߱Ҷ ϵ ͸ ȸ, , 뷮 ϰ ִ е ϴ.  , ̰ "ϵü ̳ 蹮(F/W )" ƴ϶, 밡ϴٷ ٲ Դϴ.
          
2011-03
DB ſ ̶ ϴ.
һ ߴ ׿.
"⺻ DB谡 ¿ Disk SSD ̴ ̹ϴ"° ٷ ƴϾ?
               
â 2011-03
ȣ "⺻ DB谡 ¿ Disk SSD ̴ ̹ϴ"
I/O 𸣽ô° ϴ.
⼭ ϴ I/O ũ SSD ߻ϴ I/O, ׸ Ʈѷ I/O
ϴ° ƴմϴ. ׸, ũ i/o ̽ Ǿ մϴ.

ܼ I/O , I/O , i/O ߿ ǹ̰ ֽϴ.
̰ I/O ԵǸ, Ͻ ó ƴմϴ.

"⺻ DB谡 ¿ Disk SSD ̴ ̹ϴ"
-> " ȯ濡 HDD SSD Ҽ , ټ ȯ濡 ̰ ."
̷ ٲ մϴ.

κ i/O I/O ߷ մϴ. Ӱ I/O I/O Ҷ ٲ ϰ, OS ø̼ ܰ Ǿ մϴ.
׷  I/O I/O ,  I/O Ʃױ  Ǵ°Դϴ.

, I/O ܼ ٴ ƴմϴ. I/O Ҷ Ǿ ϴ ϴ°Դϴ.
                    
2011-03
ϴ° ϳ ذ Ȱ׿.
ϳ   " i/O ߿ ǹ̰ ֽϴ." ϼ̴µ.
ü ׷ ׿.


" ȯ濡 HDD SSD Ҽ , ټ ȯ濡 ̰ ."
ϼ̴µ.
ϴ DB ؼ ϴ°ǵ. ص 'ټ ȯ'̶ ױ׷ Īϸ ̻ ǹ̰ ϴ.
                         
â 2011-03
ȣ,

츮 DB ؼ ̾߱ϰ ֽϴ.
翬, DB ؼ ̾߱ϴ° Դϴ.

׸, ?,
IT 帧 𸣸鼭, ׷ ٽø,
鼭 ǰ ɼ .
"OLTP " RAID ؼ ̽ϴ.
׷ մϴ.

׸, ŷϼ̴µ,
ΰǺ ̴ϴ.

OLTP SSD ,  4ch ä̸, 120 ϴ.
, DB Ʃ(簳) Ŭ̴ϴ.

׸, ư, ظ DB ̹ Ʃ Ǿ ִ ȲԴϴ.

Ʈ ϼ. 95% Ʈ ġ, 5 % ¼ǰ.

I/O ؼ ̶ ƴ ̶, 5% 󸶳 ߿ дϴ.
ֳϸ, 5% I/O̱ Դϴ. DB ϸ, ũ I/OԴϴ.
ũ I/O Ʈ I/O ̰ 󸶳 ū ̰ ִ ƽó?

RAID ī ǰ ⺻ 95% Ʈ ij÷ ϰ, ij  մϴ. ׷ ش Ͻô.

, ϶, Ƹ ڸ ̴ϴ.
ٳ, κ ڱ Ʈ ȭ մϴ.

ϳ ,  ȸ簡 ֽϴ. ſ 10 DB Ƚϴ. ׷, Ѵ ϴ.
ſ 10 ׵ DB Ͼ ûؼ Ʃ ?
Ѵ ư ׷?

DB ϱ I/O DB ߴٴ° ̸ Դϴ.

׷ ƴմϴٸ, ׷ Ʈ  ϴ.
׸, ׷ ư Ʈ ϰ ֽϴ.

ȣ , DB I/O ȮϽŴٸ,
Ʈ 亸 ؾҰ͵ ְ, ׿ܿ ؾ ͵ ٴ ͵ ƽǰ̴ϴ. űٰ SSD HDD ̰ ˾ƾϰ,
̷   ϴ 尡 DB ȿմϴ.

ٳ, IBM  SSD RAID ϱ ߽ϴ. SSD .
ó ϱ? װ ũε Ŀ˴ϴ.
Դϴ.  Ʃ̷ε غҼ I/O κ ̽ SSD ̿ؼ
غҼ ֱ Դϴ.

ȣ ̷ ϼ
"SSD ̽ 뷮 IO ġ մϴ"

󸶳 ̰ ִ ƽʴϱ?
̷  SAS ϵ ϴ. SSD Դϴ.
Ʈ尡 ϸ 뵵 ٲ ɰ̴ϴ.
, Ʈ ʴ Դϴ.

SSD I/O ߵ ؼ ַ ϴ.
⿡ ɸ´ Ʈѷ  ʿմϴ.
Ȯ ϸ, 뷮 I/O ǥҼ ֽϴ.
SSD ϵ û κ Դϴ.

ݴ SSD ȵǴ оߵ ֽϴ. ̸ 𸣰
ֽϴ. , ũ Ͽ ȭ
ϴ.

ᱹ I/O ̾߱ ٽ ư Դϴ. ߵɰ, ƾҰ ֽϴ.
, ̰͵ ׷ϻԴϴ.
߿ IT Ʈ尡 ٲ,  ޶ ƹ𸨴ϴ.
ŭ ȭ մϴ.
                         
2011-03
д Ȳϰ þ߸ų, Ͻôµ ְ Ű ϴ.
ü Ŵ 忡 ̻ ʰڽϴ.
ư ü غ.

<ؾ Ǵ>
"⺻ DB谡 DB Disk SSD ü ̰ ̹ϴ"
ֽô κ Ʋȴٰ Ͻø鼭 ǰ ۵Ȱ ̰ ?

<  ͵>
1. IT Trends - SSD Disk üس ¶ дϴ. ڱ ̴ ϴ ׷ ö ŵ ˴ϴ.

2. ΰǺ - DB Disk ? SSD ?
    H/W ü µ ⼭ ڲ ΰǺ ?

3. RAIDƮѷ OLTP - ̳?
    Ȯΰ 1 ˷ּ. ׷ ϰڽϴ.

4. ' ȸ簡 10 DB   DB 1뿡 Ƶ'
  - ǿ  ü  ִٴ ǰ?

< >
1. Random I/O ߿ϰ ذ ʿϴٴ (?) д԰ ̷° ƴմϴ. õ ü ּ. dz ʴ I/O ͸ϸ鼭 ԰ Դϴ.

2. Physical Reads (random read access) ִ 5%  ߻ϴ
  2-1. DB random read access 5% Ư ð뿡 ߻Ѵٴ ̹ "⺻ DB谡 DB" ֿ ϴ. random read access DB ̸, physical reads ߻ϴ ̹ Ǵ DB ƴմϴ.
 
  2-2. random access read disk busy 90%̻ ϴ ǼSQL ġ ä DB Disk SSD üϴ ȿ ؼ ʴ° ƴ϶ ̴ϴ. ӽö̱

  2-3. ׷ٸ ϴ DB, physcial reads ִ 5% ߻ϴ Ư SQL ߵ , ߻󵵰 󿡼 йǾ ִ DB Disk SSD ϴ ɰ ȿ ̹ϴٶ Դϴ.
AKs 2011-03
ֽϴٸ....
Ϲ ȯ濡 Ͻñ⿡ ֽϴ.
3GB( 3GBϱ ʹ Ůϴٸ) ۿ ȵǴ DB SSD 鼭 Ϸ ߴ Cache Hit ȯ̱ Դϴ. Ȯ Cache Hit 20~30% ʴ Ư ȯԴϴ.
׷鼭 1д 1000 ̶̻ xϴ. ٳ ڰ Ƿ ׸ ʾ( ְ Ư ִ ̶) S/W ȯ濡 SQL ȿ ε ֽϴ.
翬 簳 Ȥ Ʃ ؾ , ׻ ׷ ̻ Ÿ ִ ϵ 迡( ؾ Ǵ) ߴ κԴϴ.
д̳ ȣ κ ϸ ʴϴٸ, ϴٰ ȭԴϴ.
     
2011-03
׷ ̽ ̳ ׿.
cache hit 20~30% physcial reads ̶ ssd ɰ Ǹ ϴ.
buffer cache հ ̶ DB Ʈø ϴ.
Ȯ κм Ǿ ذå ̳׿.
oracle ̶ plan ̳ wait event м ü κм մϴٸ
mysql ؼ  ãƾ 𸣰ڱ.
          
AKs 2011-03
װ ..
ƴµ, ġ DB ܾ߰ Ǵ װ Ű..
ʿ 簳 ʰ ּ ð 䱸ϴϱ.
ε ãƼ 簳 ϴµ ׸ ġ ʽϱ?? Դٰ ڴ Ҹ ¶ 䵵 ȳɴϴ.(뱹 ȷٴ ҹ~~)
׷.. ̴ϴ.
Ѽ~~~~
2011-03
Ŭ ϴ 忡 MYSQL ٸ ⺻ DBMS ϱ⿡ ܺϴ. ϼ.
ȯ  𸣰 3GB ۿ ȵǴ Ϳ ׷̵尡 ʿѰ ǹԴϴ.
׷ĸ cache hit ϼ̴µ ̰ ַ hard parsingҶ ַ ֽϴ. ״ literal sql ¦ ٲ Ǵ sqlε ̷ ʰ ǰ óǸ 翬 cache hit dbϴ ϴ. ׷Ƿ literal sql ãƼ Ҽ ֵ ϴ° ּå Դϴ. ׷̵ Ͻ ڰ ϰ DB Ŀٸ ߻ ̱ Դϴ.
     
AKs 2011-03
׷̵ ٴ Ȯϸ鼭 Դϴ.
̴ٺ 08⵵ Ѵ븦 +DB+丮  ϰ ̰, ߰ NASѴ밡 ߰Ǿ ٸ ý̾ϴ.
ַ ü ׷̵尡 ʿ ε, Ѵ ϴ° ٴ 翬 ϴ° Ȳ̰... Ҿ ε뷱 ڰ ̴ϴ.
ᱹ DB ϳ ҴǾ ϴ Ȳ̴( 忡 ʹ 翬) տ ° ݾ̸ ãڴ ȲԴϴ.

翬 κԴϴٸ, Ȳ ٷ ۿ ֽϴ. 忡 Ѱ谡 ֽϴ.
AP 2011-03
ִٸ...
͵... ...
ڹ 2011-03
ƴ ̵ ī MAXQ SSD ϳ ڰ SASϵ ؼ
뷫 8üη 1ü MAXQ 1ü ֽҷ ϵ 6 ü 0+1
˴ϴ.
׷ ̳׿.

𼱰 븮ΰ ̽ 丮 ôµ 24 FC PCI-E ̽
丮 SSD ä  ġ Ǵ ҽϴ.
ϰ ϴ ϵ ս ؼµ.

۽.
SSD ſ ʴ ηԴϴ.
â 2011-03
SSD ij / Hybrid / True 뵵 ٸϴ.
׸, SSD ް ִ I/O ߿ о߿ Դϴ.
ٸ SSD  ̸ غϱ RAID ȸ翡 ǰ ִ° дϴ. ϸ, ̼ ̰ û ̸ ٰ մϴ.
̴ о߳ ̸ ؾ Ѵٰ մϴ.
о߶ մϴ. δ ǥ 100 ¿ Ű θ ع 쵵 ֽϴ. ׷ ... Ѵ 찡 ִٴ ̴ϴ.
ʿ츮 2011-03
۵ (?)ϰ ѷڽƮ Ÿ׿. ^^
ä 2011-03
Cache Hit Ratio 2~30% ϼ̴µ ߸˰ ðų,
DB Ҵ ޸𸮰 ƴѰ ͽϴ.

¶,
DB 300GB ƴѵ ޸𸮿 ÷
SSD غ... ޸𸮺 ϱ

Ʒ Ͻø ǽǰ ϴ.

http://dev.mysql.com/doc/refman/5.5/en/memory-storage-engine.html
http://www.mysqlperformanceblog.com/2010/04/08/fast-ssd-or-more-memory/
â 2011-03
üٰ , ᱹ ̳ ʰ ο ϴ.

޸ ʾ ؼ ϴ.
׸, 带 ̾ ʰڽϴ.

׸, HDD ܼ SSD üѴٴ ǹ̰ ƴմϴ.
ű⿡ ´  ؾ մϴ. ǥ 찡 Ʈѷ ɰ̴ϴ.
ư DBʿ ȴٸ, ȿ Ŭ̴ϴ.



============
̰ ̾߱Դϴ.
⼭ SSD+RAID   DB ״ ص ȿ ֽϴ.
ϰ DB Ʃױ ʿ䵵 ϴ.
==============
о..
Mysql ʹ 3Ⱑ ǰ, ϴ ׸ ũ ӵ 䱸մϴ.
1. SSD 4 RAID-5 ̱ۺ Ƽ OS DB ÿ ġϴ
2. SSD 2 + 2 RAID-1 ϰ OS DB
3. SSD SAS 15,000RPM (RAID ˾Ƽ.. ~)
 ս , ̼ 鿡 ..
IDC ԰ų ̹Ƿ ׿׽ ¿ Ǵմϴ.
===

ý ᱹ DB 谡 ߸ ̽ ֽϴ.
׷ ϴ H/W ũ մϴ.



- ȸ翡 ϴ ޴ ּ ѹ սô
  ͵鿡 ƽð ɰ̴ϴ.


  ׸, H/W ϸ鼭, S/W о 踸 ϸ,
  I/O մϴ.

  I/O (ũ ) ߻ϸ, ϴ ƮǾ
  Ұ Ÿ ֽϴ.

  װ 󸶳 ø, IOMETER ؼ I/O  ɾŵ
  ƽǰ̴ϴ.  ޴ Ǿ о.

  Ͻø, IOMETER ϼż ñ ٶϴ. ũI/O
  I/O 󸶳 ߿ ƽð ɰ̴ϴ.

  DB ܿ ̰ Ͽ ȭѴٰ ص ¿ ߻ϴ մϴ.
  H/W ¿ ߻ϴ    غڴٰ üԴϴ.

  ޴, ڷ, RAID ȸ Ϻδ سҽϴ. .
  LSI, Adaptec, Areca ãƺ.
  ȸ ޴ ȵ,  ī ȸ ڷᰡ Ȩ ֽϴ.

   
 
- ü I/O ϴ   DB ð ̰ ſ ũ

  Ŵ޴ C Դϴ. (ϵ ߿)
  ϰ ӵ ʾƵ DZ Դϴ.
  ֳĸ, ׸ŭ Ǿ Դϴ.

  ׷ C ȭ ܰ谡 Ǿٴ ǹ̴ h/W װ Ѵٴ Դϴ.
  ̷ , , ߻ , ߺ ϴ.

  DB ̿ ϴ.
 
  ȭ ȭ θ¢, ᱹ ׷ ȭ ȯ泻  IT Ʈ带 ݿϸ
  ϴ. 

  , ڱ ȯ游 ϴ ҴԴϴ.  ȭ ߵ ȯ浵 DB ̶, H/W
  ̸ ٴ ܼ Ҵ̽Ű 𸣰ڽϴ.

  ȭ DB 10밡  ᱹ "I/O" ȭ 1 ġϴ ô밡 Ǿٴ ǹԴϴ.

  ڷ ޶Ͻø, RAID ȸ Ȩ  ڷ ηȽϴ. Ͻñ...
  е ũ ̰, ư ձ ֽϴ.

-  SE vs  ۷ vs α׷

  ٸ, ߿ϰ ð ٸϴ.
  , SE  λ ѳ ֽϴ.
 
  Ȥ SE α׷ Ѵٰ ص...  α׷ӿ Ҽ ֽϴ.
  Ϸ翡 1000 ̻ ϴ ۷ͿԵ  SE Ҽ ֽϴ.

  SE  𸣰 ( ε SE )
  SE  õ븦 ѹ , õ ȯ ϰ,
  α׷ ø̼ ܰ迡 I/O ȭ Ͽ ȭϴ մϴ.

  ׸, ø̼ǿ ִٸ, κ ľ ˼ ֽϴ.
  , κ α׷Ӱ I/O ƮȰ õ ߿ κе 𸨴ϴ.
  , κ ۷Ͱ I/O Ʈ ߿   νմϴ.


̻ ϸ, ο ɰ ϴ
뿡 ϴ.

ٽѹ 帮, I/O Ͻñ ٶϴ.

" DB Ͼϱ DB Ѵ."

̷, ᱹ Ŵ°Դϴ.
׷ ̾ϴ.

׸, ٽ 帮, ޴ ѹ غô° ϴ.
Դٰ, ǰ ϳ ޴ ƴ   ޴ ϴ 쵵 ٴ ʽÿ.
̴ ޴ Ϻο ٸ κе ִ 찡 ֽϴ.
̰ ޴ ݵ ؾ Դϴ.

׷ ٽ ʰڽϴ...

ps/ http://kldp.org/node/117438
    оø, ۵鿡 SE ƽǼ ̴ϴ.
     
2011-03
ǿ Ѵٸ .
ͳ Խ Ѱ ǰ ȵǴ° Դϴ.
д ȣϰ 'Ʋȴ' ϱ淡 𸣴  ְڱ ; Ǹ ̰
ƴϴ.

1. 뿡 'DB 谡 ߸ ̽'  ϴ.
  DB 丮 Ŀ Ͻ ۿ ϴ.
  ׷ DB¶ SSD ̰ ̹ϴ Ͽϴ.

2. Ŵ ϶鼭 'RAID Ʈѷ OLTP'̶ ٰŴ ø ֽó׿.
  ãƺ ؼ ۸ؼ Adaptec RAID Ŵ  оôµ ׷ ϳ ?
  ηִٴ ð űⰡ ũ ϳ ֽø ڳ׿.

3. "H/W ϸ鼭, S/W о 踸 ϸ I/O մϴ. " ϼ̴µ. 
    "I/O (ũ ) ߻ϸ, ϴ ƮǾ Ұ Ÿ ֽϴ. "
    ° ٷ ٽ ƴѰ? ̰ 𸥴ٰ ?
    𸣴 ϴ ǵ 𸣰ڳ׿. ׷ٰ ٸ ִ ͵ ƴϰ...

    SSD physical i/o ߿ random read access disk 20 մϴ.
    INDEX 踦 DB physcial reads (random access read) ߻ϴ
    disk busy io waitð Ÿ ʽϴ. SSD 츱 Ƿ
    ϱ ƴٴ ̴ϴ.

    SSD .
    ׷ DB ũ RAID SSD üϴ ũ ϰ
    ġ ̹ϴٴ Դϴ. ٰŴ Ǿ.
    ̰ IT Ʈ带 𸥴ٰ Ͻôµ. ũ ް ɴϴ.

4. I/O ϶ '' ǷϿµ, SSD random access read  ؾ ϴ° ü .
  I/O ߻ϴ ٿ DBϱ DB ߻ϴ physical reads Ư ٰŷ ߽ϴ.
  ׷ д 'SSD random read access ϴ' ̿ܿ ü ٰŰ ϴ.
  ׷ 'SSD random read access ϴ' H/W и ϰ ,
  뿡 ٰؼ DB physical reads I/OƯ ߽ϴ.
  д DBĿ ذ ؼ ǰ߱ȯ ȵ ٴ ǽ ϴ.

5. dz SE/OP/PRG ҿ Ȳϰ þó׿.
  ' OLTP DB 丮 SSD üϸ 󸶳 ?' õ ޸ ϼ.
  " DB Ͼϱ DB Ѵ." ʿ ȣ Ϸϱ Ѵٴ ϰ Ǵ ̴ϴ.
  ITƮ带 𸥴ٶ ϴ ͵ ׷ϴ.
  д ׸´ 븸 Ȳϰ þ߷ ȵ˴ϴ.
2011-03
DB ũ I/O ٴ CPU ޸ I/O ε Ϸ ũ þƹڳ. 踸 ̺ Ʃغ ü 60ιۿ ȴ޸°̴ϴ.
DB ϴ ˰ ϵ ؾߵɰ ׷ 𸣴 øϱ ̷ ϴ ۵ ̴°̴ϴ.
ϸ Ͻýʼ âմϴ.
     
2011-03
.. ϴ µ ִٰ Ͻôϱ ̻ϳȿ;;

Ϲ DB IO-Bound з˴ϴ.
DB IOڿ ߵǴ ֽϴ.
׿ CPU-Bound ؼ CPUڿ ߵǴ WEB ̳ WAS ֽϴ.
ݿ WEB/WAS IO-Bound ɼְ , DB CPU-Bound  ɼ ֽϴ.
AKs 2011-03
Ⱑ źմϴ.

ΰ մϴ. ܿ 15° ԰ ִµ ذ ΰ ϴٴ° ֽϴ.

׷ Դϴ.... ߰߰ оø SSD ϴ ޷ ִ ֽϴ. Դٰ SSD SAS ̰ [ũ þƹڴ´] ⿡ .

ó ø SSD (δ ӵ ̶) ٸ е ǰ ø ε, ̰ ػó Ŀ .

5~6 ׷ 迡 ɷ ִ ߽ϴٸ, ۽.. ذ ƴ° ٰ մϴ.

.. ϴϱ ؾ.. â ͵ ½ϴ.
     
2011-03
̷ س ̾ϴ. ϰ Ȳ ٸ λ Ǫ ۵̶ ¥ ׷ ޾ҽϴٸ ׳ ѱͷ ø ˴ϴ. Ű澲 . å Ǵµ...
ž 2011-03
(?) 3Ⱑ¥ DB ϳ׿.

Ȳ SSD ƴ϶ Ҹ SAN ٿ ٺ ذ ȵ˴ϴ. I/O ƴմϴ.

3Ⱑ¥ ij ÷ ׸Դϴ. ijƮ 20~30̸ ް ۰ ִ° ׿.

޸𸮸 ϴؼ ij 3Ⱑ ̻ ޸𸮷 öðŰ ׷ԵǸ
I/O ϴ ü ǹ̰ ϴ.

Ĵ CPU+޸ Ŭ ̴ϱ.
2011-03
ϴ ӵ ΰ? ƴϸ ӵ ΰ?
ӵ DB Ʃװ ƴҰ .
WEB Ѹմϴ. ߸ ҽ!!! ׸ ߸ SQL!!! Ѹ.
(׷ DB ϼ, ̿ Ҵ ƴ϶ ô°̰?)

ϰ Ͻ ʿ, 3GB MySQL DB̴, ׳ 15 ¥ 뷮 SSD ϳ ż,
PC ׽Ʈ غø ɰԴϴ. , SSD RAID Ͻø ǰڳ׿.
ֿ 2011-03
ȣ ϴ 1.

ִ DB I/O ü Ƶ ȳɴϴ.

SQL ؼ ϸ , , ƴϸ ̻ о µ,

I/O ٰ ϴ ȳ.

CPU CPU, I/O I/O ...

20~30о SQL Ʃ׸ 2~3 Ƹ ż踦 Ͻ ϴ.
2011-03
۸ ̾ о ҽϴ. ̱ۿ ۷ ٽ ۵鸸 Ҵµ ó
ͽϴ. DB ϸ ذ ϽǼ ִ Ƿ ϼ ͽϴ.
⿣ α׷ ϵ ڵ Ǿ ذ(Ʃ) ̽Ű
ϴ.
׷ Ȳ ϵ Ͽ ִ ̵ ôٴ 鸳ϴ.
ҽ ϵڵ Query Ȯϰ Ʃ õ Ͻô° װ ġ Ű ׷ٸ ó ׽Ʈ ȯ ô ͵ ϴ.
׽Ʈ ȯ 鿩 Ͻô ٴ ȸԵ鲲 û Ͻþ ׽Ʈ ´ е ãð û ô° ڽϴ.
AKs 2011-03
ֽ е鲲 帮, ̹ ⼭ ڽϴ.

蹮 ϵڵ Ȳ̸, ҽ ϴ.. .

α׷ ƪ ȵǴ å DB ƪ Ϸ ϴµ Ѱ谡 ־, ϵʵ մ뺸 Ȳ̾ϴ. ϴ ̹ ϰ ٸ 忡 ˰ڽϴ.

մϴ.


QnA
Page 5579/5679
2014-05   4942390   1
2015-12   1479212   ް
2002-05   16701  
2018-03   16702   ̰
2009-08   16705   GoodWolf
2011-01   16714  
2015-10   16716   ũ
2013-12   16720  
2013-11   16724   ȣ̸
2016-09   16724   ڱڰ
2016-10   16726   νÿ
2002-05   16727   赿
2002-05   16728   μ
2002-06   16728  
2002-05   16730  
2002-05   16731  
2015-05   16731   ϴϴ
2002-05   16735  
2015-05   16736  
2015-05   16738   Ȳȥ
2023-02   16739   ö
2013-03   16742   Ӷīµ