MySQLÓëNoSQL¡ª¡ªSQLÓëNoSQLµÄÈÚºÏ
¡¡¡¡Ð´ÕâһƪÄÚÈݵÄÔÒòÊÇMySQL5.6.2ͻȻÍƳöÁËmemcachedµÄ¹¦ÄÜ¡£NoSQL to InnoDB with MemcachedµÄ³öÏÖ£¬¿ÉÒÔ¿´³öNoSQL¶Ô¹ØϵÊý¾Ý¿âµÄÈ·²úÉúÁ˾޴óµÄÓ°Ï죬¸öÈ˾õµÃÕâÊÇÒ»¸ö·Ç³£´óµÄ½ø²½£¬¿ÉÒÔÈÿª·¢ÈËÔ±¸ü¼Ó·½±ãµÄʹÓà NoSQLºÍ¹ØϵÊý¾Ý¿â¡£NoSQLÒ»°ã±»ÈÏΪÐÔÄܸßÓÚ¹ØϵÊý¾Ý¿â£¬ÄÇôֱ½ÓÔÚInnoDBÖ®ÉÏÌṩNoSQL¹¦Äܲ¢ºÍMySQL¹²´æÊÇ·ñÊÇÒ»¸ö¸üºÃµÄÑ¡ ÔñÄØ£¿
¡¡¡¡MySQL with HandlerSocket
¡¡¡¡È¥ÄêÔÚtwitterÉÏ¿´µ½HandlerSocketµÄ³öÏÖ£¬²¢Ðû³ÆÐÔÄÜÊÇMemcachedµÄÁ½±¶Ê±£¬·Ç³£ÁîÈ˳Ծª£¬¾ÓÈ»¿ÉÒÔ´ïµ½ 750000qps¡£½Ó×ÅHandlerSocket³ÉΪNoSQLÁìÓò̸Â۵Ľ¹µãÖ®Ò»£¬ ´óÁ¿µÄÈË¿ªÊ¼ÏëÒª³¢ÊÔ£¬²¢×ö¹ýһЩ×Ô¼ºµÄÐÔÄܲâÊÔ¡£ ÏÂͼÊÇHandlerSocketµÄ½á¹¹Í¼£º
ͼ1 HandlerSocket½á¹¹Í¼£¨À´Ô´ÓÚ¹Ù·½£©
¡¡¡¡HandlerSocketµÄ³öÏÖ£¬¸øÎÒÃÇÑÛÇ°Ò»ÁÁµÄ¸Ð¾õ¡£ÔÀ´InnoDBµÄÐÔÄÜÒѾ×ã¹»ºÃ£¬²¢¿ÉÒÔÖ±½ÓÌṩNoSQLµÄ¹¦ÄÜ¡£×î´óµÄºÃ´¦¾ÍÊÇ¿ÉÒÔ¹²ÏíMySQLµÄ¹¦ÄÜ£¬DBAÒÔÇ°µÄ¾ÑéÒ»Ñù¿ÉÒÔÓᣵ«ÊÇÓÐЩССµÄ·çÏÕ£º
- HandlerSocketûÓÐÓëMySQLÒ»Æð·¢²¼°æ±¾£¬Òò´Ë¶ÔÓÚʹÓÃMyISAMÒýÇæµÄÓû§ÊÇÎÞÔµµÄ¡£²»¹ýÏÖÔÚPercona-ServerÒѾ¼¯³ÉÁËHandlerSocket£¬¿ÉÒԷdz£·½±ãµÄʹÓá£
- Ä¿Ç°´ó¹æÄ£µÄ³É¹¦°¸Àý²¢²»¶à£¬¹úÄÚÒ²Ö»ÓÐÉÙ²¿·Ö¹«Ë¾ÔÚ³¢ÊÔ£¬ÎÒÖªµÀµÄÓзÉÐÅ¿ª·Åƽ̨£¬¾Ý˵»¹²»´í¡£
- ¹Ù·½¸ø³öµÄ²âÊÔÊý¾ÝÔÚÓ¦Óó¡¾°ÉÏÆäʵ²¢²»³ä·Ö£¬ÖÁÉÙ²âÊԵij¡¾°¸úÎÒÃÇʵ¼ÊʹÓõij¡¾°Ïà²îºÜ´ó¡£µ«ÊǺÁÎÞÒÉÎÊ£¬ HandlerSocketµÄÐÔÄܱÈÖ±½ÓʹÓÃMySQL¿Ï¶¨Òª¸ßЧµÃ¶à¡£
¡¡¡¡InnoDB with Memcached
¡¡¡¡Ò²ÐíÊÇÒòΪHandlerSocketµÄ»ð±¬µÄ³å»÷£¬Ò²ÐíÊÇÊÜHandlerSocketµÄÆô·¢£¬MySQL¿ªÊ¼¹Ø×¢NoSQLÁìÓòµÄÓ¦Ó㬲¢ÔÚMySQL5.6.2°æ±¾Ôö¼ÓÁËͨ¹ýMemcachedÐÒéÖ±½Ó·ÃÎÊÔÉúInnodb APIµÄ¹¦ÄÜ¡£
¡¡¡¡InnoDB with MemcachedÊÇÔÚÌṩMySQL·þÎñµÄͬһ½ø³ÌÖÐÌṩMemcached·þÎñ £¬ÕâÓëHandlerSocketµÄ¼Ü¹¹Ä£Ê½¼¸ºõÊÇÒ»ÑùµÄ¡£ËäȻĿǰInnoDB with Memcached»¹ÊÇÔ¤ÀÀ°æ±¾£¬µ«ÊÇÎÒ¸öÈ˸ü¿´ºÃËü£¬ÒòΪ£º
- ËüʹÓÃMemcachedÐÒ飬²¢Í¬Ê±Ö§³ÖÎı¾ºÍ¶þ½øÖÆÐÒ飬ÔÚclientµÄÑ¡ÔñºÍ³ÉÊì¶ÈÉϾÍҪʤ³öÐí¶à£»
- ÆäÖ§³ÖµÄÈýÖÖcacheģʽ£¬²»µ«¿ÉÒÔÊ¡È¥¿ª·¢ÖÐʹÓÃMemcachedÀ´»º´æÊý¾ÝµÄÂé·³£¬²¢ÇÒ¾ßÓиüºÃµÄ¿É¿¿ÐÔºÍÊý¾ÝÒ»ÖÂÐÔ£»
- ÔÚÓ¦ÓóÌÐòÖУ¬¿ÉÒÔʹÓøßЧµÄmemcachedÐÒéÀ´²Ù×÷Êý¾Ý£¬Í¬Ê±Ò²¿ÉÒÔʹÓÃsql½øÐи´ÔӵIJéѯ²Ù×÷£»
¡¡¡¡×¢Ò⣺Ŀǰͨ¹ýmemcachedµÄ¸üвÙ×÷²»»á¼Ç¼µ½binlogÖУ¬Î´À´µÄ°æ±¾»áÖ§³Ö¡£
ͼ¶þ InnoDB with Memcached
Memcached and MySQL Cluster
¡¡¡¡ÏÔ¶øÒ×¼û£¬ÎÒÃÇ»áÏëµ½MySQL Cluster½áºÏMemcachedÊÇÒ»¸ö¸üºÃµÄ×éºÏ£¬MySQL ClusterÌṩÁË99.999%¸ß¿ÉÓÃÐÔ£¬²¢ÕæÕýÌṩÁËÈ¥ÖÐÐÄ»¯µÄÎÞ·ì¸ß¿ÉÀ©Õ¹ÐÔ¡£»¹ÓÐʲô±ÈÕâ¸üÈËÐ˷ܵÄÄØ¡£
¡¡¡¡MySQLÒѾÌṩÁËÕâÑùµÄ¹¦ÄÜ£¬Ô´´úÂëÔÚÕâÀï¡£ÕâÀïÓÐÒ»¸öO'Reilly MySql Conference´ó»áµÄPPTÑÝʾ£¬ÄãÒ²¿ÉÒÔ¿´ÏÂÕâ¸ö¹¦ÄÜ¿ª·¢ÕßµÄһƪ²©¿Í¡£
ͼÈý NDB with Memcached
¡¡¡¡MySQL ClusterËäÈ»¾ßÓи߿ɿ¿ÐÔºÍÎÞ·ìÀ©Õ¹µÄÓÅÊÆ£¬µ«ÊǶÔÓÚ¸´ÔÓSQL²éѯµÄЧÂÊÈ´²»ÄÜÁîÈËÂúÒâ¡£²»¹ý¶ÔÓÚ½ö½öÒÀÀµÓÚkey-value²éѯºÍдÈëµÄº£Á¿Êý¾Ý´æ´¢ÐèÇó£¬MySQL Cluster with MemcachedÓ¦¸ÃÊǸöºÜºÃµÄÑ¡Ôñ¡£
¡¡¡¡×ܽá
¡¡¡¡MemcachedÐÒéÓÉÓÚÆä¼òµ¥¡¢ÐÒéÇáÁ¿¡¢´æÔÚ´óÁ¿µÄclient£¬ËùÒÔÌṩ¼æÈÝMemcachedÐÒéµÄ²úÆ·±È½ÏÕ¼¾ÝÏÈÌìµÄÓÅÊÆ¡£
¡¡¡¡MySQLÌṩNoSQLµÄ¹¦ÄÜ£¬¸öÈ˾õµÃ²¢²»ÊÇMySQLÄͲ»×¡¼Åį£¬¶øÊǵÄÈ·ÔÚÏìÓ¦Óû§µÄÐèÇó¡£ÎÒÇ°ÃæµÄÎÄÕÂҲ˵¹ý£¬NoSQLÖ»ÊÇÒ»¸ö¸Å Ä²¢²»ÊÇÒ»¸öÊý¾Ý¿â ²úÆ·£¬MySQLÒ²¿ÉÒÔÊÇNoSQL£¬ÏÖÔÚÒ²ÕýÓ¦ÁËÕâ¾ä»°¡£NoSQL´Ó¼Ü¹¹ÉϾÍÔ¼ÊøÁË¿ª·¢Õߵļܹ¹ºÍ¿ª·¢·½Ê½£¬´Ó¶øÌá¸ßÀ©Õ¹ÐÔºÍÐÔÄÜ£¬¶øNoSQLºÍ MySQLµÄÈںϣ¬Ò²Í¬Ê±ÌṩÁ˸´ÔÓ²éѯ¹¦ÄÜ¡£
¡¡¡¡ËäÈ»MySQLÌṩÁËNoSQL¹¦ÄÜ£¬Èç¹ûÄãÒª³¢ÊԵĻ°£¬ÄãµÄÊý¾Ý¿âÉè¼Æ±ØÐë´ÓNoSQL´Ó·¢£¬È»ºóÔÙ¿¼ÂÇSQL²éѯ¹¦ÄÜ¡£
¡¡¡¡SQLÓëNoSQLµÄÈںϵÄÈ·»á¸ø¿ª·¢Õß´øÀ´·½±ã£¬±ÈÈç×î½üºÜÁ÷ÐеÄMongodb£¬ËüÎüÒý¿ª·¢×î´óµÄµã¾ÍÊÇÖ§³Ö¼òµ¥µÄ¹Øϵ²éѯ¡£SQLÓëNoSQLµÄÈںϿÉÄÜÊÇδÀ´ºÜ¶àÊý¾Ý¿â²úÆ·µÄÒ»¸öÇ÷ÊÆ¡£µ«ÊÇ´¿NoSQLÊý¾Ý¿âµÄÓÅÊÆÒ²ÊÇÏÔÖøµÄ£¬¾ÍÊÇËûµÄ¼òµ¥¡¢¸ßЧ¡¢Ò×À©Õ¹¡£
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ