Äú¿ÉÒÔ¾èÖú£¬Ö§³ÖÎÒÃǵĹ«ÒæÊÂÒµ¡£

1Ôª 10Ôª 50Ôª





ÈÏÖ¤Â룺  ÑéÖ¤Âë,¿´²»Çå³þ?Çëµã»÷Ë¢ÐÂÑéÖ¤Âë ±ØÌî



  ÇóÖª ÎÄÕ ÎÄ¿â Lib ÊÓÆµ iPerson ¿Î³Ì ÈÏÖ¤ ×Éѯ ¹¤¾ß ½²×ù Model Center   Code  
»áÔ±   
   
 
     
   
 ¶©ÔÄ
  ¾èÖú
ÉîÈë½âÎöSQL Server¸ß¿ÉÓþµÏñʵÏÖÔ­Àí
 
  2589  次浏览      29
 2018-8-23
 
±à¼­ÍƼö:
±¾ÎÄÀ´×ÔÓÚÍøÒ×ÔÆ£¬Ö÷Òª½éÉÜÁËSQL Server ¸ß¿ÉÓþµÏñʵÏÖÔ­ÀíÖÐÊý¾Ý¸±±¾£¬ÔËÐÐģʽ£¬¹ÊÕÏ×ªÒÆ£¬Í¸Ã÷Çл»µÈ¡£

SQL Server ÊÇwindowsƽ̨.NET¼Ü¹¹Ï±êÅäÊý¾Ý¿â½â¾ö·½°¸£¬ÓëOracle¡¢MySQL¹²Í¬¹¹³ÉÁËDB-Engines Ranking µÄµÚÒ»ÕóÓª£¬ÔÚ¹úÄÚÍâÆóÒµÊг¡ÖÐÓÐ׏㷺µÄÓ¦Óá£MirroringÊÇSQL Server ×î³£Óõĸ߿ÉÓýâ¾ö·½°¸£¬¾ßÓÐ×Ô¶¯¹ÊÕÏ×ªÒÆ£¬¸ß°²È«Ä£Ê½Ï¾ßÓÐÊý¾Ý¡°Á㡱¶ªÊ§£¬¶Ô¿Í»§¶Ë͸Ã÷µÈÓÅÊÆ£¬Ä¿Ç°AWS¡¢°¢ÀïÔÆ¡¢ÌÚÑ¶ÔÆ¾ù²ÉÓøü¼ÊõʵÏÖÔÆ¶ËSQL Server ¸ß¿ÉÓò¿Êð¡£½ñÌìÎÒÃǾÍÀ´ÁÄÁÄSQL Server ¸ß¿ÉÓþµÏñʵÏÖÔ­Àí£»

Êý¾Ý¸±±¾

¾µÏñ¼¼ÊõʵÏÖÁËλÓÚ²»Í¬ÎïÀí·þÎñÆ÷ÉϵÄÁ½¸öSQL ServerʵÀýÊý¾Ýͬ²½£¬ÔÚ¾µÏñ¼¯ÈºÖУ¬SQL ServerʵÀý¾ßÓÐÈýÖÖ½ÇÉ«£»

Principal£º¾ßÓÐÍêÕûµÄÊý¾Ý¸±±¾£¬¶ÔÍâÌṩÊý¾Ý¿â¶Áд·þÎñ£»

Mirror£º¾ßÓÐÍêÕûµÄÊý¾Ý¸±±¾£¬±¾Éí²»Ìṩ¶Áд·þÎñ£¬Í¨¹ý½ÓÊÕÀ´×ÔPrincipalµÄ¸üÐÂÈÕ־ʵÏÖÊý¾Ýͬ²½£¬ÔÊÐí´´½¨¿ìÕÕʵÏÖ±¨±í£»

Witness: ±¾Éí²»´æ´¢Êý¾Ý£¬Ö»¸ºÔðÔڸ߰²È«ÔËÐÐģʽÏÂÌṩ×Ô¶¯¹ÊÕÏÇл»µÄÄÜÁ¦£¬È·±£Á½¸öSQL ServerʵÀýÖ»ÓÐÒ»¸ö¶ÔÍâÌṩ·þÎñ£¬±ÜÃâÄÔÁÑÇé¿ö³öÏÖ£»

ÔÚ¾µÏñ¼¯ÈºÖУ¬principalºÍmirrorµÄÊý¾Ýͬ²½ÊÇÒÀ¿¿ÊÂÎñÈÕÖ¾À´ÊµÏֵģ¬ÓëOracleºÍMySQL ²»Í¬£¬SQL Server µÄÊÂÎñÈÕÖ¾ÊÇDatabase¼¶±ðµÄ£¬²»ÊÇʵÀý¼¶±ðµÄ£¬Ã¿¸öDatabase¶¼µ¥¶ÀµÄÊÂÎñÈÕÖ¾£¬ÕâÒ²¾ÍʹµÃSQL Server µÄ¾µÏñÊÇ¿ÉÒÔ»ùÓÚDatabase²ãÃæÊµÏÖ¡£Ò»¸öSQL ServerʵÀýÖеÄÁ½¸öDatabase£¬Ò»¸ö¿ÉÒÔ×÷Ϊprincipal £¬Ò»¸ö¿ÉÒÔ×÷Ϊmirror£¬·Ö±ðÓëÆäËûSQL ServerʵÀý×齨¾µÏñ¹ØÏµ£»ÁíÍ⣬SQL Server Ò»¸öDatabase Ö»ÄÜÓÐÒ»¸ömirror½Úµã£¬Ò»¸ömirrorµÄdatabase²»¿ÉÒÔÔÙÓÐmirror½Úµã£¬ÕâµãÓëMySQL¼¶Áª¸´ÖƲ»Í¬£»

SQL ServerµÄÊÂÎñÈÕÖ¾ÊÇÎïÀí¼Ç¼¼¶±ðµÄ£¬¼Ç¼Á˶ÔÊý¾Ý¿âij¸öÒ³µÄijÐмǼ(slot)µÄ²Ù×÷£¬principal´´½¨¾µÏñºó£¬»áÆô¶¯Ò»¸öµ¥¶ÀµÄÊÂÎñÈÕÖ¾·¢ËÍỊ̈߳¬Î¬»¤Ò»¸öÐéÄâµÄ·¢ËͶÓÁУ¬È»ºó¶ÁÈ¡ÊÂÎñÈÕÖ¾£¬½«Æä½øÐÐѹËõ£¬¸ù¾Ý¹Ù·½¹«²¼µÄ²âÊÔÊý¾Ý£¬Ñ¹Ëõ±È²»µÍÓÚ12.5%£¬È»ºó·¢Ë͸ømirror½Úµã£¬mirror½Úµã½ÓÊÕµ½ÒԺ󣬻ὫÆäдÈë±¾µØÔÚ´ÅÅÌÉϵÄÒ»¸öÖØ×ö¶ÓÁÐÎļþÖУ¬È»ºóÔÙͨ¹ýÁíÍâµÄÒ»¸öÏß³ÌÒì²½µÄ·½Ê½£¬´ÓÖØ×ö¶ÓÁÐÖлñÈ¡ÊÂÎñÈÕÖ¾£¬È»ºó·Ö·¢¸øÓ¦ÓÃỊ̈߳¨process unit£©½øÐлطš£

²»Í¬ÓÚMySQL Binlog£¬ÓÉÓÚSQL ServerµÄÊÂÎñÈÕÖ¾ÔÚprincipalÉÏÊÂÎñÖ´Ðйý³ÌÖоÍÒѾ­Ô´Ô´²»¶ÏµÄдÈ루MySQL Binlog½öÔÚÊÂÎñÌá½»½×¶ÎÉú³É£©£¬ÔÚprincipalÊÂÎñÖ´ÐеÄͬʱÊÂÎñÈÕÖ¾¾ÍÒѾ­´«µÝ¸øÁËmirror£¬ËùÒÔ»ùÓÚÊÂÎñÈÕÖ¾µÄSQL ServerµÄ¸´ÖÆÐÔÄÜ»á¸üÀíÏ룬ͬʱ£¬ÔÚmirror»Ø·ÅµÄ¹ý³ÌÖУ¬¿ÉÒÔ»ùÓÚÒ³£¨page£©¼¶±ð½øÐв¢·¢¸üÐÂ(redo parallel)£¬ÔÚSQL ServerµÄ±ê×¼°æÖУ¬½öÌṩһ¸öÏ߳̽øÐÐÊÂÎñÈÕÖ¾»Ø·Å£¨roll forward£©£¬ÔÚÆóÒµ°æÖУ¬Èç¹ûµ±Ç°·þÎñÆ÷CPU´óÓÚ5ºË£¬Ôòÿ4¸öºË£¬Ôö¼ÓÒ»¸ö²¢ÐÐỊ̈߳¬Èç¹ûµÍÓÚ5¸öºË£¬ÔòÈÔȻʹÓõ¥Ï̻߳طš£Í¬Ê±£¬»ùÓÚÒ³µÄÊÂÎñÈÕÖ¾µÄ²¢·¢Ö´ÐУ¬»¹ÓÐÒ»¸öºÃ´¦¾ÍÊǶÔÓÚͬһ¸öÒ³ÃæµÄ¸üпÉÒԺϲ¢Ë¢Ð£¬¼õÉÙÔàҳˢÐÂÊýÁ¿£»

ÔËÐÐģʽ

¾µÏñ¼¯ÈºÌṩÁËÈýÖÖÔËÐÐģʽ£º

¸ßÐÔÄÜģʽ£ºprincipalÓëmirrorÖ®¼äÊý¾ÝÒì²½´«Ê䣬principal ÉϵÄÊÂÎñÌá½»ÎÞÐèµÈ´ýmirror µÄÏìÓ¦£¬principal å´»úºó£¬´æÔÚÊý¾Ý¸üжªÊ§µÄ¿ÉÄÜ£¬²»Ö§³Ö×Ô¶¯¹ÊÕÏ×ªÒÆ£¬¿ÉÒÔͨ¹ýÇ¿ÖÆ·þÎñµÄ·½Ê½Ê¹µÃmirror Ìṩ·þÎñ£¬Êʺ϶ÔÊý¾Ý¿É¿¿ÐÔÒªÇ󲻸ߣ¬ÐÔÄÜÒªÇó½Ï¸ßµÄÒµÎñ³¡¾°£¬ÓëMySQL µÄÒì²½¸´ÖÆÄ£Ê½£¬Oracle DataGuard ×î´óÐÔÄÜģʽÏà½ü£»

²»´ø¹ÊÕÏ×ªÒÆµÄ¸ß°²È«Ä£Ê½£ºprincipalÉÏËùÓеÄÊÂÎñÌá½»£¬¶¼±ØÐëҪȷÈϸÃÊÂÎñÉæ¼°µÄÊÂÎñÈÕÖ¾¾ùÒѾ­´«Ë͵½µÄmirrorÉÏ£¬²¢Ð´ÈëmirrorµÄÖØ×ö¶ÓÁÐÖУ¬³Ö¾Ã»¯ (ÊÇ·ñ³Ö¾Ã»¯µ½Íâ´æÉ豸»¹Óëwindows²Ù×÷ϵͳдÈ뻺´æ²ßÂÔÏà¹Ø)£¬mirror·µ»ØÈ·ÈϺ󣬲ſÉÌá½»£¬¿ÉÒÔʵÏÖprincipalå´»úÏÂÊý¾Ý¡°Á㡱¶ªÊ§£¬²»Ö§³Ö×Ô¶¯¹ÊÕÏ×ªÒÆ£¬¿ÉÒÔͨ¹ýÊÖ¶¯×ªÒÆ»òÕßÇ¿ÖÆ·þÎñ·½Ê½Ê¹µÃmirrorÌṩ·þÎñ£¬ÓëMySQL 5.7 Loss-less replication¡¢Oracle DataGuard ×î´ó¿ÉÓÃģʽÏà½ü£»

´ø¹ÊÕÏ×ªÒÆµÄ¸ß°²È«Ä£Ê½£ºÓë²»´ø¹ÊÕÏ×ªÒÆµÄ¸ß°²È«Ä£Ê½Ïà±È£¬Ôö¼ÓÁËwitness(¼ûÖ¤·þÎñÆ÷)£¬¿ÉÒÔʵÏÖ×Ô¶¯µÄ¹ÊÕÏ×ªÒÆ£¬Í¨¹ýwitness£¬¿ÉÒÔÈ·±£Ö»ÓÐÒ»¸ö½Úµã³ÉΪprincipal£¬¶ÔÍâÌṩ·þÎñ£¬Êµ¼ÊÉÏwitness×îÖØÒªµÄÒ»¸ö×÷ÓþÍÊÇÑ¡Ö÷£»

¹ÊÕÏ×ªÒÆ

¾µÏñ¼¯Èº¹ÊÕÏ×ªÒÆ×ÔÓ³¡¾°¾ÍÊÇ´ø¼ûÖ¤·þÎñÆ÷µÄÖ§³Ö×Ô¶¯¹ÊÕÏ×ªÒÆµÄ¸ß°²È«Ä£Ê½£¬ËùÒÔÎÒÃÇÖØµãÌÖÂÛ¸ÃģʽϵĹÊÕÏ´¦ÀíÁ÷³Ì¡£

³õʼ״̬Ï£¬witness¡¢principalºÍmirrorÈý¸ö½ÚµãÁ½Á½Ö®¼ä¾ù±£³Ö³¤Á¬½Ó»á»°£¬ÏÖÔÚÌÖÂÛÆäÖÐÒ»·½Á¬½ÓÖжÏÇé¿ö£º

principal Óë witness Á¬½ÓÖжÏ:

´ËʱwitnessÓë mirrorÁ¬½ÓÕý³££¬´¥·¢×Ô¶¯¹ÊÕϻָ´Á÷³Ì£¬principal¶ªÊ§witnessÁ¬½Ó»á»°£¬Èç¹ûprincipal ÈÔÔÚÔËÐÐ״̬£¬Ôò½«×´Ì¬±ê¼ÇΪDISCONNECTED£¬±íʾʧȥÓëmirrorÁ¬½Ó£¬ÇжÏËùÓпͻ§¶ËÁ¬½Ó£¬ Í£Ö¹¶Áд·þÎñ£¬µÈ´ý¹ÊÕÏÇл»¡£ÎªÁË·ÀÖ¹ÍøÂç¶¶¶¯ÒýÆð²»±ØÒªµÄÇл»£¬»á»°³¬Ê±Ä¬ÈÏʱ¼äΪ10Ã룻witnessºÍmirror½«principal±ê¼ÇΪ²»¿ÉÓ㬵ȴýmirrorÉϵÄÖØ×ö¶ÓÁÐÖеÄÊÂÎñÈÕÖ¾»Ø·Å£¨roll forward£©Íê³Éºó£¬mirror³ÉΪеÄprincipal£¬¿ªÊ¼¶ÔÍâÌṩ¶Áд·þÎñ¡£

×îºómirror»áͨ¹ýºǫ́Ị̈߳¬½«Î´Ìá½»µÄÊÂÎñ»Ø¹ö£¨»ùÓÚbinlogµÄMySQL¸´ÖÆÓÉÓÚbinlogÊÇÔÚÊÂÎñÌá½»½×¶ÎÉú³ÉµÄ£¬ËùÒÔ²»´æÔÚÊÂÎñ»Ø¹öµÄ½×¶Î£©¡£

´ÓÕû¸ö¹ÊÕÏÇл»µÄÁ÷³ÌÀ´¿´£¬¹ÊÕÏÇл»Ê±¼äÖ÷Òª°üÀ¨Èý¸ö²¿·Ö£º¼ì²âµ½principalå´»úµÄʱ¼ä¡¢mirrorÉÏÖØ×ö¶ÓÁÐÖÐÊÂÎñÈÕÖ¾µÄ»Ø·Åʱ¼äÒÔ¼°»Ø¹öδÌá½»ÊÂÎñµÄʱ¼ä£¬ÆäÖÐÇ°ÃæÁ½¶Îʱ¼ä·þÎñ²»¿ÉÓã¬ÓÈÆäÊ±ÖØ×ö¶ÓÁеĻطÅʱ¼ä£¬Ö±½Ó¾ö¶¨ÁË·þÎñ²»¿ÉÓÃʱ¼ä¡£

mirror Óë witness Á¬½ÓÖжϣº

´Ëʱ£¬principalÓëwitnessÁ¬½ÓÕý³££¬principal״̬±äΪDisconected£¬±íʾÖÕÖ¹ÓëmirrorÁ¬½Ó£¬mirror״̬±äΪsuspend£¬principal²»ÔÙÏòmirror·¢ËÍÊÂÎñÈÕÖ¾£¬µÈ´ýmirrorÖØÐ½¨Á¢µ½witnessÁ´½Óºó£¬principal²Å»á»Ö¸´Óëmirror½øÐÐÊý¾Ýͬ²½£»

principal Óë mirror Á¬½ÓÖжϣº principalÓëmirrorͬʱ±£³ÖwitnessµÄÁ¬½Ó»á»°£¬µ«ÊÇprincipalÓëmirrorÖ®¼ä»á»°Öжϣ¬witness»á֪ͨmirror£¬principalÒÀÈ»±£³ÖÁ¬½Ó״̬£¬²»»á´¥·¢¹ÊÕÏÇл»£»´ËʱprincipalÓÉÓÚ±£³ÖÓÐwitnessµÄÁ¬½Ó»á»°£¬·þÎñÕý³££»

ÏÂÃæÀ´¿¼ÂÇÈý·½»á»°Á½¸ö»á»°Í¬Ê±ÖжÏÇé¿ö£º

principal ÓëËùÓнڵã»á»°ÖжÏ

Ö»ÒªmirrorÓëwitness»á»°Õý³££¬¼´¿ÉÍê³ÉÕý³£µÄ¹ÊÕÏ×ªÒÆ£»Èç¹ûmirrorÓëwitnessÁ¬½ÓÒ²Öжϣ¬ÔòÎÞ·¨Íê³É£¬¼´±ãÊǺóÀ´mirrorÓëwitnessµÄ»á»°ÓÅÏȻָ´£¬ÔòÒ²ÎÞ·¨¹ÊÕÏÇл»£¬ÒòΪÒÑÈ»²»È·¶¨mirrorÊÇ·ñÓµÓÐÈ«²¿principalµÄÊý¾Ý£¬´Ëʱ¼´±ãprincipal´¦ÓÚÔËÐÐ״̬£¬Ò²ÎÞ·¨Ìṩ·þÎñ£¬µÈ´ýprincipalÓëÈÎÒâ½Úµã»á»°»Ö¸´Õý³££¬¼´¿É»Ö¸´¶Áд·þÎñ£»

mirror Óë ËùÓнڵã»á»°ÖжÏ

²»»á´¥·¢¹ÊÕÏÇл»£¬principalÇÐÈ빫¿ªÔËÐÐģʽ£¨Òì²½£©£¬¼´²»»áÔÙÏòmirror·¢ËÍÊÂÎñÈÕÖ¾£¬Ò²²»ÔÙÐèÒªµÈ´ýmirrorµÄÏìÓ¦£¬Ö±µ½mirrorÖØÐ»ָ´»á»°¡£

witness Óë ËùÓнڵã»á»°ÖжÏ

²»»á´¥·¢¹ÊÕÏÇл»£¬principal¼ÌÐøÌṩ¶Áд·þÎñ£¬ÓëmirrorÊý¾Ý¼ÌÐøÍ¬²½£¬¾µÏñ¼¯ÈºÉ¥Ê§×Ô¶¯¹ÊÕÏ×ªÒÆÄÜÁ¦£¬ÍË»¯Îª²»´ø¹ÊÕÏ×ªÒÆµÄ¸ß°²È«Ä£Ê½£»

Èç¹ûÈý·½»á»°Í¬Ê±Á¬½ÓÖжϣ¬ÔòprincipalÎÞ·¨Ìṩ·þÎñ£¬Ö±µ½principalÓëÈÎÒâ½ÚµãͨÐŻָ´Õý³£¡£

³¡¾°1ÖУ¬³õʼ״̬ʵÀýA¡¢BºÍwitness±£³Ö»á»°Á¬½Ó£¬Æäºó£¬AʵÀýå´»ú£¬Ê§È¥ÓëÆäËû³ÉÔ±µÄ»á»°£¬ÊµÀýBÓëwitness±£³Ö»á»°£¬´¥·¢¹ÊÕÏÇл»£¬ÊµÀýBÉý¼¶Îªprincipal¡£ÆäºóʵÀýBҲ崻ú£¬·þÎñÍ£Ö¹¡£È»ºóʵÀýA»Ö¸´£¬µ«ÊÇÓÉÓÚ´ËʱʵÀýAÒѾ­ÊÇmirror£¬²»ÄÜÈ·¶¨ÊµÀýAÓµÓÐʵÀýBµÄËùÓиüÐÂÊý¾Ý£¬ËùÒÔÎÞ·¨¹ÊÕÏÇл»£¬×îºóʵÀýB»Ö¸´£¬·þÎñ»Ö¸´Õý³£¡£

³¡¾°2ÖУ¬ÊµÀýAºÍBͬʱʧȥÁËÓëwitnessµÄ»á»°£¬µ«ÊÇ·þÎñÒÑÈ»Õý³££¬AÓëBÖ®¼äÊý¾Ý¼ÌÐøÍ¬²½£¬ÆäºóAÓëBͬʱ崻ú£¬·þÎñÍ£Ö¹¡£×îºóA»Ö¸´·þÎñ£¬Óëwitness»Ö¸´»á»°£¬A¼ÌÐøÌṩ·þÎñ¡£

͸Ã÷Çл»

Ò»¸öÍêÕûµÄ¸ß¿ÉÓûúÖÆ³ýÁ˺ó¶Ë½ÚµãµÄÇл»Ñ¡Ö÷£¬»¹°üÀ¨·¢Éú¹ÊÕÏ×ªÒÆºó£¬¿Í»§¶ËÈçºÎÄܹ»¿ìËÙµÄÁ¬½Óµ½ÈßÓà½Úµã£¬¼ÌÐøÒµÎñ¶Áд¡£³£ÓõÄʵÏÖ£¬°üÀ¨Driver²ã½â¾ö·½°¸£¬ÀýÈçmongoDB replication set£¬Ò²ÓÐͨ¹ý¶þ²ãÄڵĹ㲥·½Ê½ÊµÏÖvip£¬ÀýÈçkeepalived£¬µ±È»»¹°üÀ¨proxy£¬ÒÔ¼°Èý²ãDNSµÄʵÏÖ¡£

SQL ServerµÄʵÏÖ²ÉÓÃÁËDriver²ã´¦ÀíµÄ·½Ê½£¬¿ª·¢ÕßҪʵÏÖ×Ô¶¯µÄ¹ÊÕÏ×ªÒÆ£¬ÔÚÁ¬½ÓÊý¾Ý¿âʱ£¬³ýÁ˱ØÐëÒªÖ¸¶¨³õʼ½ÚµãµÄIPºÍ¶Ë¿Ú£¬»¹ÒªÖ¸¶¨¹ÊÕÏ×ªÒÆµÄ½ÚµãµÄIPºÍ¶Ë¿Ú¡£¿Í»§¶ËÊ×Ïȳ¢ÊÔʹÓóõʼ½Úµã´´½¨Á¬½Ó£¬Èç¹û³õʼ½ÚµãÖ¸ÏòµÄʵÀýµ±Ç°Îªprincipal£¬ÔòÁ¬½Ó»á½¨Á¢³É¹¦£¬¿ÉÒÔÕý³£µÄ¶Áд¡£µ±·¢Éú¹ÊÕÏÇл»Ê±£¬principal»áÇжÏËùÓÐÒÑÓпͻ§¶ËÁ¬½Ó£¬È»ºó¿Í»§¶Ë½¨Á¢µ½³õʼ½ÚµãÁ¬½ÓÒ²»áʧ°Ü£¬Í¨¹ýÒ»¶¨µÄÖØÊÔ²ßÂÔʧ°Üºó£¬»á³¢ÊÔÁ¬½Ó֮ǰָ¶¨µÄ¹ÊÕÏ×ªÒÆ½Úµã£¬´Ó¶øÊµÏÖ·þÎñÈë¿ÚµÄÇл»¡£

SQL Server³£ÓõķÃÎʽӿڣºOLE DB¡¢ODBC¡¢ADO¾ùÖ§³ÖÖ¸¶¨¹ÊÕÏ×ªÒÆ½Úµã£¬¸ñʽÈçÏ£º

Server=250.65.43.21,4734; Failover_ Partner = 250. 65. 43. 22, 4734;

¼¯Èº¼à¿Ø

¾µÏñ¼¯ÈºµÄ¼à¿Ø¿ÉÒÔͨ¹ýSQL Server Management stdioÆô¶¯¾µÏñ¼àÊÓÆ÷£¬»òÕßϵͳÄÚÖõĴ洢¹ý³ÌÀ´ÊµÏÖ£¬¼à¿ØµÄÖ÷ÒªÖ¸±ê°üÀ¨£º

δ·¢ËÍÈÕÖ¾£ºprincipalÉÏδ·¢Ë͵ÄÈÕÖ¾³¬¹ýÖ¸¶¨µÄãÐÖµ£¬»áÔÚprincipalÉÏÉú³ÉÒ»¸ö¾¯¸æ£¬ÔÚ¸ßÐÔÄÜģʽÏ£¬Ç¿ÖÆ·þÎñʱ¿ÉÒÔ×÷ΪÆÀ¹ÀprincipalÉÏÊÂÎñ¶ªÊ§ÊýÁ¿µÄÒÀ¾Ý£¬Í¬ÑùÒ²ÊÊÓÃÓÚÔڸ߰²È«Ä£Ê½Çл»³ÉÒ첽ģʽ״̬Ï£¨mirrorʧȥÁ¬½Ó£©

δ»¹Ô­ÈÕÖ¾£ºÖØ×ö¶ÓÁÐÖеÄδ±»Ó¦ÓõÄÊÂÎñÈÕÖ¾ÊýÁ¿£¨KB£©£¬³¬¹ýãÐÖµ£¬»áÔÚmirrorÉÏÉú³ÉÒ»¸ö¾¯¸æ£¬¸ÃÖµ¿ÉÒÔ×÷ΪÆÀ¹À¹ÊÕÏ×ªÒÆÊ±¼äµÄÖ÷ÒªÒòËØ¡£

×îÔçδ±»·¢Ë͵ÄÊÂÎñ£ºprincipal·¢ËͶÓÁÐÖУ¬×îÔçδ±»·¢Ë͵ÄÊÂÎñµÄÖÁ½ñµÄʱ¼ä£¬µ¥Î»Ê±·ÖÖÓ£¬³¬¹ýãÐÖµ£¬»áÔÚprincipalÉÏÉú³É¾¯¸æ£¬Óëδ·¢ËÍÈÕÖ¾Á¿Ò»Æð£¬´Óʱ¼äά¶È£¬ºâÁ¿¸ßÐÔÄÜģʽϺ͸߰²È«Ò첽ģʽÏ£¬Êý¾Ý¶ªÊ§ÊýÁ¿£»

¾µÏñÌá½»¿ªÏú£º¸ß°²È«Ä£Ê½Ï£¬principalÉÏÊÂÎñ´ÓÌá½»µ½µÈµ½mirrorÏìÓ¦µÄʱ¼ä¿ªÏúµÄƽ¾ùÖµ£¬Èç¹û³¬¹ýãÐÖµ£¬ÔòÔÚprincipalÉÏÉú³ÉÒ»¸ö¾¯¸æ£¬ÔÚͬ²½Ä£Ê½Ï£¬¸ÃÖµ¿ÉÒÔiºâÁ¿Í¬²½¿ªÏú£»

   
2589 ´Îä¯ÀÀ       29
Ïà¹ØÎÄÕÂ

»ùÓÚEAµÄÊý¾Ý¿â½¨Ä£
Êý¾ÝÁ÷½¨Ä££¨EAÖ¸ÄÏ£©
¡°Êý¾Ýºþ¡±£º¸ÅÄî¡¢ÌØÕ÷¡¢¼Ü¹¹Óë°¸Àý
ÔÚÏßÉ̳ÇÊý¾Ý¿âϵͳÉè¼Æ ˼·+Ч¹û
 
Ïà¹ØÎĵµ

GreenplumÊý¾Ý¿â»ù´¡Åàѵ
MySQL5.1ÐÔÄÜÓÅ»¯·½°¸
ijµçÉÌÊý¾ÝÖÐ̨¼Ü¹¹Êµ¼ù
MySQL¸ßÀ©Õ¹¼Ü¹¹Éè¼Æ
Ïà¹Ø¿Î³Ì

Êý¾ÝÖÎÀí¡¢Êý¾Ý¼Ü¹¹¼°Êý¾Ý±ê×¼
MongoDBʵս¿Î³Ì
²¢·¢¡¢´óÈÝÁ¿¡¢¸ßÐÔÄÜÊý¾Ý¿âÉè¼ÆÓëÓÅ»¯
PostgreSQLÊý¾Ý¿âʵսÅàѵ