DRBDãã³ããã¼ã¯
DRBDã®ããã©ã¼ãã³ã¹ãè©ä¾¡ããæ©ä¼ããã£ãã®ã§ã¡ã¢ãã¦ããã¾ãã
DRBDã¯TCP/IPãããã¯ã¼ã¯è¶ãã«ãã£ã¹ã¯ã®ãã©ã¼ãªã³ã°ãè¡ãã½ããã¦ã§ã¢ã§ãLinuxã®ã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ã¨ãã¦å®è£
ããã¦ãã¾ãããããã¯ã¼ã¯çµç±ã®RAID1ã¨èããã¨ããããããã¨æãã¾ããHeartbeatãªã©ã¨çµã¿åãããã¨æ¬ä¼¼çãªå
±æãã£ã¹ã¯ãæã£ãã¯ã©ã¹ã¿ãæ§ç¯ãããã¨ãã§ãã¾ãã
5å¹´ãããåã«è©±ã«èããã¨ãã¯ï¼ä¸»ã«ãããã¯ã¼ã¯ãï¼é
ããã¦ä½¿ããªãå°è±¡ã§ããããä»æ¥ã§ã¯Gigabit Ethernetãå½ããåã«ä½¿ããã®ã§ã©ã®ãããã®ããã©ã¼ãã³ã¹ãåºãã®ãèå³æ·±ãã¨ããã§ãã
ç°å¢
以ä¸ã®ãããªç°å¢ãç¨ãã¾ããã
ãµã¼ããã¼ãã¦ã§ã¢
æ©ç¨® | IBM x3650 2å° |
CPU | Intel Xeon 1.6GHz |
Memory | 5GB |
HDD | SAS HDD 146GB RAID1 |
ãããã¯ã¼ã¯æ§æ | 1000BASE-T ã¯ãã¹ã±ã¼ãã«ã§ç´çµ |
ã½ããã¦ã§ã¢
OS | Red Hat Enterprise Linux 5.1 |
DRBD | Version 8.2.1 |
äºåãã¹ã
ã¯ãã¹ã±ã¼ãã«ã§ç´çµãããããã¯ã¼ã¯çµç±ã§FTPã使ã£ã¦ã¹ã«ã¼ããããè¨æ¸¬ããã¨ããã118MBites/secã§ããã1000BASE-Tã®çè«å¤ã¯1Gbit/sec=125MBytes/secãªã®ã§çè«å¤ã«è¿ãé度ãåºã¦ãã¾ãã
ããã¯ä¸è¬çãªHDDãããéãã®ã§ãããã¯ã¼ã¯ãããã«ããã¯ã«ãªããã¨ã¯ãªãããã§ãã
ãã¹ãå 容
以ä¸ã®æ¡ä»¶ã§ãã³ããã¼ã¯ãè¡ãã¾ãããè¨æ¸¬ã¯Bonnie++ãç¨ãã¦è¡ãã¾ããã
- DRBDãªã (LVM+ext3)
- DRBDçç³»ç¶æ (LVM+DRBD+ext3ã以ä¸åã)
- DRBD Protocol A
- DRBD Protocol B
- DRBD Protocol C
DRBDã®ãããã³ã«ã¯æ¸ãè¾¼ã¿æã®æåãå¤ãããã®ã§ããæåã®éãã¯ä»¥ä¸ã®ããã«ãªãã¾ãã
- A: ãã¼ã«ã«ã®ãã£ã¹ã¯ã¨ãã¼ã«ã«ã®TCPéä¿¡ãããã¡ã«æ¸ãè¾¼ãã æç¹ã§æ¸ãè¾¼ã¿å®äºã¨ã¿ãªã
- B: ãã¼ã«ã«ã®ãã£ã¹ã¯ã¨ãªã¢ã¼ãã®ãããã¡ãã£ãã·ã¥ã«æ¸ãè¾¼ãã æç¹ã§æ¸ãè¾¼ã¿å®äºã¨ã¿ãªã
- C: ãã¼ã«ã«ã¨ãªã¢ã¼ã両æ¹ã®ãã£ã¹ã¯ã«æ¸ãè¾¼ãã æç¹ã§æ¸ãè¾¼ã¿å®äºã¨ã¿ãªã
ä¿¡é ¼æ§ã¯C>B>Aã®é ã«ãªããçè«ä¸ããã©ã¼ãã³ã¹ã¯ãã®éã«ãªãã¯ãã§ãã
ãã¹ãçµæ
Bonnie++ã§æ¸¬å®ããã·ã¼ã±ã³ã·ã£ã«ãªã¼ãã¨ã·ã¼ã±ã³ã·ã£ã«ã©ã¤ãã®æ§è½ãã¾ã¨ãã¾ãã
æ¡ä»¶ | Read(KB/sec) | Write(KB/sec) |
---|---|---|
DRBDãªã | 77394 | 77029 |
DRBDçç³» | 71354 | 54634 |
DRBD A | 85821 | 31885 |
DRBD B | 85018 | 35459 |
DRBD C | 82589 | 36727 |
èå¯
Readæ§è½
DRBDã§ã¯Readæã¯ãã¼ã«ã«ã®ãã£ã¹ã¯ã®ã¿ããèªã¿è¾¼ãã®ã§DRBDãªãã®ã¨ãã¨æ¯ã¹ã¦æ§è½ã¯å¤§ããæªåããªãã¯ãã§ãã
DRBDãªãã¨DRBDçç³»ã®ã¨ããæ¯ã¹ãã¨1å²å¼±ã®æ§è½ä½ä¸ãè¦ããã¾ããã両系é転ã®ã¨ãã¯ãããDRBDãªãã®ã¨ãããæ§è½ãåä¸ããã¨ããçµæã«ãªãã¾ããããããã1å²åå¾ã®å·®ãªã®ã§èª¤å·®ã¨è¨ããªãããªãã§ããç´æã«åããçµæã¨ãªãã¾ããã
Writeæ§è½
DRBDãªãã¨DRBDçç³»ã§ã¯25%ç¨åº¦æ§è½ãä½ä¸ãã¾ãããçç³»é転ã®ã¨ãã¯ãªã¢ã¼ãã«æ¸ãè¾¼ãã¹ããã¼ã¿ããã¼ã«ã«ã®ãããã¡ã«æã¤ã®ã§ãã®ãªã¼ããããã®ããã¨èãããã¾ãã
両系é転ã®ã¨ãã¯DRBDãªãã®ã¨ãã®ååç¨åº¦ã®æ§è½ã«ãªãã¾ããã
ãããã³ã«éã®æ¯è¼ã§ã¯ãçè«ä¸ã¯AãæãéãCãæãé
ãã¨ããçµæã«ãªãã¯ãã§ããå
¨ãéã®çµæã«ãªãã¾ããã
DRBDã®è¨å®ãã¡ã¤ã«ã®ä¸ã«ããäºæ³ã«åãã¦BãããCã®æ¹ãéããã¨ãããããªè¨è¿°ãããã®ã§ãã¾ãã¾ã§ã¯ãªãããã§ãã
çµè«
DRBDããã®å ´åãReadæ§è½ã¯DRBDãªãã®å ´åã¨åçããããããéããWriteæ§è½ã¯ååç¨åº¦ã«ãªããã¨ããããã¾ãããã·ãã¢ãªWriteæ§è½ãè¦æ±ããå ´åã§ãªããã°ååã«å®ç¨çã¨è¨ãããã§ãã
ã¾ãããããã³ã«ã«ã¤ãã¦ã¯Cãæãéãã¨ããçµæãå¾ããã¦ãã以ä¸Cã使ã£ã¦ããã°ããããã§ããã¬ã¤ãã³ã·ã®å¤§ããªãããã¯ã¼ã¯ãªã©ã§ã¯ã¾ãéã£ãçµæãå¾ãããããããã¾ããã
çãã¼ã¿
DRBDãªã
Version 1.03b ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP drbd-a 10G 77029 26 34822 11 77394 12 417.2 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 52789 99 320313 99 63843 100 53663 99 459707 100 64637 100
DRBDçç³»ç¶æ
Version 1.03b ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP drbd-a 10G 54634 19 29561 10 71354 12 269.8 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 50618 95 321557 100 63323 100 53794 99 447638 101 52863 81
DRBD Protocol A
Version 1.03b ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP drbd-a 10G 31885 13 26860 9 85821 15 352.2 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 51042 96 325428 101 47300 74 53406 100 460755 101 64530 100
DRBD Protocol B
Version 1.03b ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP drbd-a 10G 35459 13 27878 9 85018 15 383.3 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 50618 96 320143 99 62851 100 53202 100 475973 98 45312 71
DRBD Protocol C
Version 1.03b ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP drbd-a 10G 36727 13 27039 9 82589 14 353.3 0 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 43380 82 325401 99 62912 100 53580 99 458653 97 64301 100