| »þµå µå Äíºê ôÁø µÈ Å° °¡Ä¡ ÀúÀå¼Ò¿¡ ´ëÇÑ ÀÎÅÍÆäÀ̽º |
Áö±Ý ´Ù¿î·Îµå |
»þµå µå Äíºê ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Steffen Muller
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~smueller/
»þµå µå Äíºê ű×
»þµå µå Äíºê ¼³¸í
SHARDEDKV´Â ǪƼµå Å° - °¡Ä¡ ÀúÀå¼Ò¿¡ ´ëÇÑ Ãß»ó ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ÀúÀå ¿µ¿ª ¹é¿£µå»Ó¸¸ ¾Æ´Ï¶ó "¿¬¼Óü"´Â Ç÷¯±× °¡´ÉÇÕ´Ï´Ù. "Continuum"Àº "ƯÁ¤ ÇÙ½É ÇÙ½ÉÀ» °áÁ¤ÇÏ´Â ³í¸®"¸¦ ÀǹÌÇÕ´Ï´Ù. ÀϹÝÀûÀ¸·Î »ç¶÷µéÀº ÀÌ·¯ÇÑ ¸ñÀûÀ» À§ÇØ ÀÏ°üµÈ Çؽø¦ »ç¿ëÇÏ°í ¸Å¿ì ÀϹÝÀûÀ¸·Î ¼±ÅÃÀº Ketama¸¦ Ưº°È÷ »ç¿ëÇÏ´Â °ÍÀÔ´Ï´Ù. ÂüÁ¶ .beside Ãß»ó Äõ¸® ÀÎÅÍÆäÀ̽º¿¡ ´ëÇؼ´ÂÀÌ ¸ðµâÀº Çϳª ÀÌ»óÀÇ ¼¹ö¸¦ ¿¬¼Óü¿¡ Ãß°¡ÇÏ°í Æнúê Å° ¸¶À̱׷¹À̼ÇÀ» »ç¿ëÇÏ¿© ´Ù¿î ŸÀÓ¾øÀÌ ¿ë·®À» È®ÀåÇϱâ À§ÇØ ³í¸®¸¦ ±¸ÇöÇÕ´Ï´Ù. ±×°ÍÀ» »ç¿ëÇϱâ Àü¿¡ ³í¸®¸¦ ÀÌÇØÇÏ´Â °ÍÀ» ÀǹÌÇÕ´Ï´Ù. ±× ¾Æ·¡¿¡¼ ÀÚ¼¼ÇÑ ³»¿ëÀº shardedkv¸¦ »ç¿ëÇÕ´Ï´Ù. SHARDEDKV :: Continuum :: Ketama; SHARDEDKV :: Storage :: Redis; My $ Continuum_spec = , # »þµå À̸§, ¹«°Ô ,]; My $ Continuum = ShardedKV :: Continuum :: Ketama-> New (From => $ continuum_spec); # ¿©±â¿¡¼ ¼±ÅÃÇÑ Redis ½ºÅ丮Áö´Â "¸Þ¸ð¸®"¶Ç´Â "MySQL"ÀÏ ¼öµµ ÀÖ½À´Ï´Ù. # "¸Þ¸ð¸®"´Â Å×½ºÆ® ¿ëÀÔ´Ï´Ù. ¹Í½Ì ½ºÅ丮Áö¿¡´Â ÀÌ»óÇÑ ºÎÀÛ¿ëÀÌ °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù. MY % Storages = (SHARD1 => SHARDEDKV :: REDIS_MASTER_STR => REDISSERVER : 6379 ', REDIS_SLAVE_STRS => ,),), »þµå 2 => SHARDEDKV :: Storage :: Redis-> New (Redis_Master_STR => 'Redisserver : 6380', Redis_Slave_STRS => ,);); MY $ SKV = SHARDEDKV-> NEW (Storages => \ % Storages, Continuum => $ Continuum); MY $ VALUE = $ SKV-> GET ($ Å°); $ skv-> set ($ Å°, $ °ª); $ skv-> »èÁ¦ ($ Å°); Á¦Ç°ÀÇ È¨ÆäÀÌÁö
»þµå µå Äíºê °ü·Ã ¼ÒÇÁÆ®¿þ¾î