Mysql 데이터는 3기가 정도 되고, 부하는 그리 크기 않으나 고객이 빠른 응답속도를 요구합니다.
1. SSD 4개를 RAID-5로 묶고 싱글볼륨으로 잡아서 OS와 DB를 동시에 설치하는 방법
2. SSD 2 + 2개를 각각 RAID-1 으로 잡아 별도의 볼륨으로 설정하고 OS와 DB를 따로 돌리는 방법
3. SSD는 못믿으니 차라리 SAS 15,000RPM으로 가능 방법(RAID는 알아서.. 잘~)
중 어떤 쪽이 퍼포먼스와 안정성, 유지보수 편이성 측면에서 나을런지요..
IDC에 입고시킬 장비이므로 항온항습과 전력에는 문제 없다 판단합니다.
..나는 세상의 중심..
1. RAID5 Ϻ OS / APP / DB .
2. OS RAID1 õϸ, DB 뵵 Ư .
3. ϸü RAID ǹ̾.( Ѵٸ .)
4. ̴.
Դϴ.
CentOS in box ̹ ڵ ö, OS õ ϰ, ӵ ų ֽϴ.
..
O.S Ϲ SAS SCSI Ȥ SATA ϼŵ ɵ ͽϴ. ^^
..
Ʈѷ ༮ ~
ٵ ø 4¥ ̶ Ͻ δ ֽϴ.
Ʈѷ ༮ 翬 Ű.
sas/sata ż Ͻñ ٶϴ.
Raid 1 Read Cache ϴµ ( ߿ Ѱ ʿ )
̷ Ʈ ϸ б ӵ ſ ϴ.
DB κ ۾ ϰ Ͼ, κ ȸ ۾ ϸ ̷ .
Raid 5 ...
ڸƮ ߰غǵ..
1. SSD + RAID Ǿٰ ʽϴ.
ͱ ũ RAID ġ SSD ˰ ȭ RAID
ϴ ƴմϴ.
2. SSD Ư Device Fail ǻ ҰϹǷ ؾ ˴ϴ.
κ õ Ұ
3. MySQL DBMS Ϲ OLTP (¶ Ʈ) ÿ ijÿ INDEX 踦 ٸ 丮 ̽ DB ̹մϴ.
SSD ̽ 뷮 IO ġ մϴ.
SSD Ư ô е ̾߱⸦ մϴ.
OLTP (Ư DB read ) SSD ϴ. SSD ϱ Դϴ.
Ư OLTP ִ RAID ϰ ٰ ֽϴ.
, 2 ǰߵ
ᱹ RAID 10 ذ˴ϴ. DB ַ RAID 10 ϴµ ֱ Դϴ.
1 ǰߵ ƲȽϴ.
SSD RAID ȭ ʾҰ RAID ȸ絵 SSD Ǿ ʾҽϴ.
, ʽϴ. SSD RAID ǰ , κ RAID ּ
SSDϰ մϴ.
Cache Hit ratio 95%̶̻ SSD RAID set ȳð .
DB SSD ġǴ°쵵 ְ
DB SSDȾ鼭 Static Web SSD ġϴ 쵵 ִٺ ?
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 ϴ" ϼž ˴ϴ.
"Ư OLTP ִ RAID ϰ ٰ ֽϴ."
RAID Ʈѷ OLTP ִٰ Ͻ ǰ? μ ó ̶ .
˳ ȾƼ DB α ƩϽø Ҹ ̾Ƴ־Դϴ.
ٷ SSD ̿ DB Ҿ ñ°̴ϴ.
DB ᱹ SAS ۿ .
ƹ Ƽ Ʃغ, OEM ״ ī ϴ. Ϲ ϵ SSD ̿ ϴ.
, OLTP RAID ִ° Ŵٰ.
IBM, Sun, Adaptec RAIDǰ մϴ. Ϻ ̵ RAID ǰ ϰ, ǰ մϴ.
DB Ҷ 質 ó ߿ ̰ S/W ѵ˴ϴ, ᱹ H/W ȯ汸 ϴ.
Ʃ Ҽ I/O ̶, H/W ȯ ؼ ū I/O ȭ õϴ° ƮԴϴ.
Ƽ Ϲ ׳ ī μŸ ̹̽Ƿƴϱ?
IBM, Sun, Adaptec RAIDǰ OLTP ˰ ǰ Ұ
ũ ˷ֽŴٸ д Ƿ ص帮ڽϴ.
, ̶ ϼ̴µ,
H/W ȯ ٲپ ϴ° , DB Ͼ Ͽ ϴ ͺ Եϴ. H/W Ѱ , ȭ óҼ ֽϴ.
ű Ʃױ ϸ, ǰ.
, Ź Ʃϴµ ɸ ڿ ٴ, ƹ ȯ濡 ϸ ȯ Ե° Դϴ.
Դٰ db ڰ ٲ, αӰ ٲ ʰ ˴ϴ.
ڿ= ̶ Ͻó?
ʿ ̳?
'⺻ DB谡 ִ DB ִ DISK SSD ü 쿡 ̹ϴ'
߽ϴ. H/W ġ ־
Disk ? SSD ? ִµ.
ڱ ߶° DBƩʸ ؾߵȴٴ Ż ƴѰ?
̰ DB ٶ ̴ϴ.
DB ϴٸ DB Ͼ ʿ䰡 °.
̷ Ͻø ϴ ۿ ȵ˴ϴ.
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 ִ° Ǵ°ǰ?
ϰ ؼϽô Դϴ.
SQL ε H/W ̵ ͺ ʹ ɰ ̷° ٷ Ÿ̽Դϴ. DB Ҷ ٴ ʰ翡 شϴ DB谡 ߿õǴ° ϹԴϴ.
⺻ DB H/W , ɰ 켱 Ǿ
DB κ̾ ϰ, H/W ɻκ ļ ̴ϴ.
db Ҷ ⺻ ¿ h/w ٴ Դϴ.
Դٰ, ű ϴ Ʃ , ȭ ϸ 谡 Ǵ Դϴ.
h/w ȯ Դϴ. ̰ ϰ, db ſ ϴİ Դϴ.
h/w ȯ ⺻̰, ״ dbԴϴ.
̰ Ųٷ ϴ? ̰ ǹԴϴ.
, ϴ ¼ ϴ ȯ Ͽ ȭ κ ݿ ʰ, ڽŸ Ǵٰ ϴ ڽϴ. IT ˰ ִ° ǹ̾° Ǿ մϴ.
RAID ̾߱Ҷ ϵ ȸ, , 뷮 ϰ ִ е ϴ. , ̰ "ϵü ̳ 蹮(F/W )" ƴ϶, 밡ϴٷ ٲ Դϴ.
һ ߴ .
"⺻ 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 Ҷ Ǿ ϴ ϴ°Դϴ.
ϳ " i/O ߿ ǹ̰ ֽϴ." ϼ̴µ.
ü .
" ȯ濡 HDD SSD Ҽ , ټ ȯ濡 ̰ ."
ϼ̴µ.
ϴ DB ؼ ϴ°ǵ. ص 'ټ ȯ'̶ ױ Īϸ ̻ ǹ̰ ϴ.
츮 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 Ʈ尡 ٲ, ƹϴ.
ŭ ȭ մϴ.
ü Ŵ 忡 ̻ ʰڽϴ.
ư ü غ.
<ؾ Ǵ>
"⺻ 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 ϴ ɰ ȿ ̹ϴٶ Դϴ.
Ϲ ȯ濡 Ͻñ ֽϴ.
3GB( 3GBϱ ʹ Ůϴٸ) ۿ ȵǴ DB SSD 鼭 Ϸ ߴ Cache Hit ȯ̱ Դϴ. Ȯ Cache Hit 20~30% ʴ Ư ȯԴϴ.
鼭 1д 1000 ̶̻ xϴ. ٳ ڰ Ƿ ʾ( ְ Ư ִ ̶) S/W ȯ濡 SQL ȿ ε ֽϴ.
翬 簳 Ȥ Ʃ ؾ , ̻ Ÿ ִ ϵ 迡( ؾ Ǵ) ߴ κԴϴ.
д̳ ȣ κ ϸ ʴϴٸ, ϴٰ ȭԴϴ.
cache hit 20~30% physcial reads ̶ ssd ɰ Ǹ ϴ.
buffer cache հ ̶ DB Ʈø ϴ.
Ȯ κм Ǿ ذå ̳.
oracle ̶ plan ̳ wait event м ü κм մϴٸ
mysql ؼ ãƾ ڱ.
ƴµ, ġ DB ܾ߰ Ǵ װ Ű..
ʿ 簳 ʰ ּ ð 䱸ϴϱ.
ε ãƼ 簳 ϴµ ġ ʽϱ?? Դٰ ڴ Ҹ ¶ 䵵 ȳɴϴ.(뱹 ȷٴ ҹ~~)
.. ̴ϴ.
Ѽ~~~~
ȯ 3GB ۿ ȵǴ Ϳ ̵尡 ʿѰ ǹԴϴ.
ĸ cache hit ϼ̴µ ̰ ַ hard parsingҶ ַ ֽϴ. ״ literal sql ¦ ٲ Ǵ sqlε ̷ ʰ ǰ óǸ 翬 cache hit dbϴ ϴ. Ƿ literal sql ãƼ Ҽ ֵ ϴ° ּå Դϴ. ̵ Ͻ ڰ ϰ DB Ŀٸ ̱ Դϴ.
̴ٺ 08 Ѵ븦 +DB+丮 ϰ ̰, ߰ NASѴ밡 ߰Ǿ ٸ ý̾ϴ.
ַ ü ̵尡 ʿ ε, Ѵ ϴ° ٴ 翬 ϴ° Ȳ̰... Ҿ ε뷱 ڰ ̴ϴ.
ᱹ DB ϳ ҴǾ ϴ Ȳ̴( 忡 ʹ 翬) տ ° ݾ̸ ãڴ ȲԴϴ.
翬 κԴϴٸ, Ȳ ٷ ۿ ֽϴ. 忡 Ѱ谡 ֽϴ.
͵... ...
뷫 8üη 1ü MAXQ 1ü ֽҷ ϵ 6 ü 0+1
˴ϴ.
̳.
븮ΰ ̽ 丮 ôµ 24 FC PCI-E ̽
丮 SSD ä ġ Ǵ ҽϴ.
ϰ ϴ ϵ ս ؼµ.
۽.
SSD ſ ʴ ηԴϴ.
, SSD ް ִ I/O ߿ о߿ Դϴ.
ٸ SSD ̸ غϱ RAID ȸ翡 ǰ ִ° дϴ. ϸ, ̼ ̰ û ̸ ٰ մϴ.
̴ о߳ ̸ ؾ Ѵٰ մϴ.
о߶ մϴ. δ ǥ 100 ¿ Ű θ ع 쵵 ֽϴ. ... Ѵ 찡 ִٴ ̴ϴ.
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/
ʾ ؼ ϴ.
, 带 ̾ ʰڽϴ.
, 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 ƽǼ ̴ϴ.
ͳ Խ Ѱ ǰ ȵǴ° Դϴ.
д ȣϰ 'Ʋȴ' ϱ淡 ְڱ ; Ǹ ̰
ƴϴ.
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Ʈ带 ٶ ϴ ͵ ϴ.
д ´ 븸 Ȳϰ þ߷ ȵ˴ϴ.
DB ϴ ˰ ϵ ؾߵɰ øϱ ̷ ϴ ۵ ̴°̴ϴ.
ϸ Ͻýʼ âմϴ.
Ϲ DB IO-Bound з˴ϴ.
DB IOڿ ߵǴ ֽϴ.
CPU-Bound ؼ CPUڿ ߵǴ WEB ̳ WAS ֽϴ.
ݿ WEB/WAS IO-Bound ɼְ , DB CPU-Bound ɼ ֽϴ.
ΰ մϴ. ܿ 15° ִµ ذ ΰ ϴٴ° ֽϴ.
Դϴ.... ߰߰ оø SSD ϴ ִ ֽϴ. Դٰ SSD SAS ̰ [ũ þƹڴ´] .
ó ø SSD (δ ӵ ̶) ٸ е ǰ ø ε, ̰ ػó Ŀ .
5~6 迡 ɷ ִ ߽ϴٸ, ۽.. ذ ƴ° ٰ մϴ.
.. ϴϱ ؾ.. â ͵ ½ϴ.
Ȳ SSD ƴ϶ Ҹ SAN ٿ ٺ ذ ȵ˴ϴ. I/O ƴմϴ.
3Ⱑ¥ ij ÷ Դϴ. ijƮ 20~30̸ ް ۰ ִ° .
ϴؼ ij 3Ⱑ ̻ öðŰ ԵǸ
I/O ϴ ü ǹ̰ ϴ.
Ĵ CPU+ Ŭ ̴ϱ.
ӵ DB Ʃװ ƴҰ .
WEB Ѹմϴ. ߸ ҽ!!! ߸ SQL!!! Ѹ.
( DB ϼ, ̿ Ҵ ƴ϶ ô°̰?)
ϰ Ͻ ʿ, 3GB MySQL DB̴, ׳ 15 ¥ 뷮 SSD ϳ ż,
PC Ʈ غø ɰԴϴ. , SSD RAID Ͻø ǰڳ.
ִ DB I/O ü Ƶ ȳɴϴ.
SQL ؼ ϸ , , ƴϸ ̻ о µ,
I/O ٰ ϴ ȳ.
CPU CPU, I/O I/O ...
20~30о SQL Ʃ 2~3 Ƹ ż踦 Ͻ ϴ.
ͽϴ. DB ϸ ذ ϽǼ ִ Ƿ ϼ ͽϴ.
α ϵ ڵ Ǿ ذ(Ʃ) ̽Ű
ϴ.
Ȳ ϵ Ͽ ִ ̵ ôٴ 鸳ϴ.
ҽ ϵڵ Query Ȯϰ Ʃ õ Ͻô° װ ġ Ű ٸ ó Ʈ ȯ ô ͵ ϴ.
Ʈ ȯ 鿩 Ͻô ٴ ȸԵ鲲 û Ͻþ Ʈ ´ е ãð û ô° ڽϴ.
蹮 ϵڵ Ȳ̸, ҽ ϴ.. .
α ƪ ȵǴ å DB ƪ Ϸ ϴµ Ѱ谡 ־, ϵʵ մ뺸 Ȳ̾ϴ. ϴ ̹ ϰ ٸ 忡 ˰ڽϴ.
մϴ.