ã€ã³ãã¬ãã·ã§ã³ã®æé©åã¯å€§ããªããã»ã¹ã§ããããã®äžéšã®1ã€ã¯ããããŒã®ã©ã€ããµã€ã¯ã«ã«é¢é£ããäžé£ã®ã€ãã³ãïŒä¿åã衚瀺ãã¯ãªãã¯ãã³ã³ããŒãžã§ã³ãªã©ïŒã®ä¿åãšåæã§ãããã¹ãŠã¯ã€ãã³ãã¬ã³ãŒãã®ä¿åããå§ãŸããŸãã åã€ãã³ãã¯å€æ°ã®ãµãŒããŒã®ããããã§çºçããæãããªçç±ã«ããããã§ãŒã³å šäœã1ãæã§ãµãŒãã¹ããããšããŸãããã®å Žåãæ£åšããéšåãå šäœãšããŠçµã¿ç«ãŠãæ¹æ³ãå¿é ããå¿ èŠã¯ãããŸããã ããããå®éã«ã¯ããµãŒããŒãã¯ã©ãã·ã¥ãããããããã¯ãŒã¯ãæ©èœããªãã£ããããœãããŠã§ã¢ãã¢ããã°ã¬ãŒããããããéè² è·ã«ãªã£ãããããšãäœãèµ·ãããŸãããäžè¬ã«ãããŸããŸãªçç±ã§ãé£ç¶ããã€ãã³ããç°ãªããµãŒããŒãç°ãªãããŒã¿ã»ã³ã¿ãŒã§åŠçãããå Žåãããããã®ããã®æºåãå¿ èŠã§ãã
解決ããå¿ èŠãããã¿ã¹ã¯ã¯ã次ã®æ¡ä»¶äžã§ã€ãã³ãã®ã·ãŒã±ã³ã¹ã«é¢ããæ å ±ãä¿åãæ€çŽ¢ãå€æŽããæ¹æ³ã§ããã
- ã€ãã³ãã¯ç°ãªããµãŒããŒããã³ç°ãªãããŒã¿ã»ã³ã¿ãŒã§çºçããå¯èœæ§ããããŸãïŒç±³åœã®æ±æµ·å²žãšè¥¿æµ·å²žããšãŒãããïŒ
- ã€ãã³ãã®éé-1ç§æªæºããæ°æ¥
- æçµã€ãã³ããåä¿¡ããããŸã§ã«ïŒå€æãªã©ïŒããã§ãŒã³å šäœã«é¢ããæ å ±ãæå ã«ããã¯ãã§ã
- æ å ±ã®å¯¿åœã¯çŽ10æ¥éã§ãããã®åŸãTTLãä»ããŠãã§ããã°èªåçã«åé€ããå¿ èŠããããŸã
- èªã¿åã/æžã蟌ã¿ã€ãã³ãã®é床-æ¯ç§æ°çŸãŸãã¯æ°å
- å¿çæéïŒæãŸãã-æ倧10msã蚱容-50ms以å ãæ倧-æ倧100ms
- ããŒããŠã§ã¢é害ããããã¯ãŒã¯ãã¢ããã°ã¬ãŒãã«é¢ä¿ãªããæ å ±ã¯ãåžžã«ãå©çšå¯èœã§ãªããã°ãªããŸãã
- ã·ã¹ãã ã¯å®¹æã«æ¡åŒµå¯èœã§ããå¿ èŠããããŸããæ°ãããµãŒããŒã®è¿œå ãããŒã¿ã»ã³ã¿ãŒã¯ä»ã®ãµãŒãã¹ã«å¯ŸããŠééçã«çºçããå¿ èŠããããŸãïŒæå®ãããå¶éå ã®å¿çæéã®äœäžã¯èš±å®¹ãããŸãïŒã
æåŸã®2ã€ã®ãã€ã³ãã¯ããžãã¹ã«ãšã£ãŠéåžžã«éèŠã§ãããæ¥äžã¯å·éã«æ¥åãéè¡ããå€éã¯ãã£ããç ãããå Žåãéçšãšã³ãžãã¢ã«ãšã£ãŠã¯äžå¯æ¬ ã§ãã
ã¿ã¹ã¯ã«ããçšåºŠã®ç¢ºä¿¡ãåŸããããŸã§ã«ã¯ãcassandraã®çŽç²ã«æ¢çŽ¢çãªå©çšã«é¢ããå人çãªçµéšã¯ã»ãšãã©ãããŸããã§ããã çµéšã¯éåžžã«ååãã§ãããã«ãé©åã«èšèšãããŠããã掻çºãªã³ãã¥ããã£ãçå£ãªäŒæ¥ãéçºè ãããããšã¯æããã§ããã ããããã¹ãŠãåãããŠããããã¿ã¹ã¯ã«çæ³çã«é©åãããšããäºå®ã«å ããŠãå®éã®æŠãã§ãããè©Šããšãã決å®ã決å®ããŸããã
éã®éžæ
æ倧ã®æžå¿µã¯ãå¿çæéãã¬ãŒã ã®èŠä»¶ã§ãã-10msã ç£èŠããå¿ èŠããã2çªç®ã®ãã©ã¡ãŒã¿ãŒã¯ãããããçš®é¡ã®cassandraã®å éšã¿ã¹ã¯ïŒå§çž®ã修埩ãªã©ïŒã®ç©ºããã£ã¹ã¯é åã®å¯çšæ§ã§ãã 第äžã«ãéã¯äºæ ã®å Žåã«ç°¡åã«äº€æã§ããæ¡åŒµäžã«è¿œå ã§ããããã«ãã·ã³ãã«ãã§ãªããã°ãªããŸããã
å¿çæé
Cassandraã¯éåžžã«é«éã«èšé²ã§ããŸãã ããã¯ãããŒã¿ãã¡ã¢ãªå ã®ããŒãã«ãšã³ããããã°ã«åé¡ããããšããäºå®ã«ãã£ãŠä¿èšŒãããŸããã€ãŸãããã£ã¹ã¯ãžã®æžã蟌ã¿ã¯åžžã«é£ç¶ããŠè¡ããããã£ã¹ã¯äžã§å€§ããªåãã¯ãããŸããïŒãããã£ãŠãã³ããããã°ãšã©ã³ãã ã¢ã¯ã»ã¹ãçºçããããŒãã«ãä¿æããããšããå§ãããŸãç°ãªããã©ã€ãïŒã
èªã¿åãé床ã¯å€ãã®ãã©ã¡ãŒã¿ãŒã«äŸåããæçµçã«ã¯ãããŒã¿ãã¡ã¢ãªã«å®å šã«åãŸããªãå Žåã¯ãã£ã¹ã¯ãžã®ã©ã³ãã ã¢ã¯ã»ã¹ã®é床ã«äŸåãããªã¯ãšã¹ãã«å¿çããããã«å¿ èŠãªããŒã¿ãç°ãªããµãŒããŒã«ããå Žåã¯ãããã¯ãŒã¯é床ã«äŸåããŸãã èªã¿åãå¿çã®é 延ã«å¯ŸåŠããæ¹æ³ã«ã¯ãRAMã®å¢å ãå§çž®ããŒãã«ïŒcassandra 1.0.xã®ããŒãžã§ã³ã«å«ãŸããïŒã®äœ¿çšãããŒã¿ã®å Žæãšã¬ã€ã¢ãŠãã®æ éãªèšç»ãããã³ããŒã¿ããŒã¹ã¯ãšãªããããŸãã ã芧ã®ãšããããã¹ãŠãéçšã®æäžã«ããããã§ã¯ãªããããããçšåºŠã®äœè£ãæã£ãŠèšç»ããå¿ èŠããããŸãã
èŠç©ãããšãã¹ãã®çµæã8ã®ã¬ãã€ãã®RAMãããŒãã«ãä¿åããããã®15000rpm SASãã£ã¹ã¯ãããã³ã³ããããã°çšã®éåžžã®7200rpm SATAã®ãªãã·ã§ã³ã«ã€ããŠæ€èšããããšã«ããŸããïŒåããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãšCassandraèªäœãåããã£ã¹ã¯ã«ã€ã³ã¹ããŒã«ãããŸããïŒ
ããã»ããµã¢ãã«ã®éžæã¯ããã»ã©éèŠã§ã¯ãããŸãããIntelããã»ããµQ9400 @ 2.66GHzãX3470 @ 2.93GHzã䜿çšããŠããŸãã
ç¶æ³ã«ãã£ãŠã¯JVMã®ã¬ããŒãžã³ã¬ã¯ã·ã§ã³ã«é«ãã³ã¹ãããããããã8ã®ã¬ãã€ãã¡ã¢ãªãšJVMã¡ã¢ãªã®ããã©ã«ãã®cassandraãã©ã¡ãŒã¿ã®éžæã«ã¯ããã®åŸã®èª¿æŽãå¿ èŠã§ããã
çŸåšãcassandraã®å¿çæéã¯ã»ãŒåžžã«5ããªç§ä»¥å ã§ãããå§çž®äžã«30ããªç§ã«å¢å ãããããã¯ãŒã¯ã®åé¡ãçºçããå Žåã¯100ããªç§ã®ã¬ãã«ã«çæéã§é£ã³åºããŸãã
空ããã£ã¹ã¯å®¹é
ããŒãã«ã®ç©ºããã£ã¹ã¯é åã®å¯çšæ§ã¯éåžžã«éèŠã§ãã ããããããã¯åã«éèŠã§ãã ããã匱ããã©ããŒããŠããå Žåã1ã€ä»¥äžã®ããŒããäºæããåäœäžèœã«ãªã£ãŠããããšããããŸãã ã€ãã³ãã¬ã³ãŒãã®ãµã€ãºã«ãåæã«ä¿åãããã¬ã³ãŒãã®äºæ³æ°ãšè€è£œä¿æ°ãæãããã®çµæããªã³ã°å ã®ããŒãã®æ°ã§é€ç®ããããšã«ããããã£ã¹ã¯äžã®ããŒã¿éãèšç®ããŸããã
éåžžã®åäœã¢ãŒãïŒå§çž®ã®æ¬ åŠãæ°ããããŒãã®è¿œå ïŒã®Cassandraã§ã¯ããã£ã¹ã¯é åã®å°ãªããšã50ïŒ ãå¿ èŠã§ããããã¯ãæãè¿ãå§çž®ãäžæçã«2åã«ãªãã倱æããå Žåã®ä¿®åŸ©ããã»ã¹ã«ãã£ãŠæ¶è²»é åã3åã«ãªãããã§ãã ãããã£ãŠããã£ã¹ã¯ã®ããªã¥ãŒã ãããªãã«ããŒãžã³ïŒ300GãååŸïŒã§ååŸããNagiosã§ãã£ã¹ã¯äœ¿çšéã®ã¬ãã«ãèšå®ããŸãïŒèŠå-30ïŒ ãã¯ãªãã£ã«ã«-50ïŒ ã ä»æ¥ãŸã§ãç·Žç¿ã¯èšç®ã®æ£ç¢ºãã確èªããŸããéåžžã®ç¶æ³ã§ã¯ãæã èŠåã«é£ã³ã決ããŠéèŠã§ã¯ãããŸããã 修埩äžãå æã¹ããŒã¹ã¯50ã60ïŒ ãå Žåã«ãã£ãŠã¯æ倧70ïŒ ã«äžæããŸãã
è©Šé転
ããã±ãŒãž
éçšããåã«ãcassandraèªäœãšãã¹ãŠã®å¿ èŠãªããŒã«ã«èšå®ãMuninãã©ã°ã€ã³ãããã³Nagiosãã§ãã¯ã®äž¡æ¹ãå«ãDebianããã±ãŒãžãæºåããŸããã æ°ããããŒããéå§ãããšãã®æåäœæ¥ã¯æå°éã«æããããŸãããã£ã¹ã¯ãæåã§ããŒãã£ã·ã§ã³åå²ããåæããŒã¯ã³ãæåã§å²ãåœãŠãŸãã
ãã®ã¯ã©ã¹ã¿ãŒã¯ãã¢ã¡ãªã«æ±æµ·å²žã®1ã€ã®ããŒã¿ã»ã³ã¿ãŒã«ãã2ã€ã®ããŒãããå§ãŸããä»ã®ããŒã¿ã»ã³ã¿ãŒã®ããŒãã®ãã¢ãåŸã ã«1ã€ã®ãªã³ã°ã«è¿œå ãããŸããã å°çãèæ ®ããã«ããŒãããªã³ã°ã«è¿œå ãããšãã決å®ã¯èª€ãã§ããããšãŒãããã®ããŒã¿ã»ã³ã¿ãŒã«æ¥ç¶ããå¿ èŠããããšããã«ãã¢ã¡ãªã«ãšãšãŒãããéã®100ããªç§ã®ã¬ãã«ã§ã®ããŒã¿ã»ã³ã¿ãŒéã®é 延ãå¿ èŠãªå¿çæéã«èããããªãããšãæããã«ãªã£ãããã§ãã 幞ããªããšã«ãCassandraã«ã¯ãããŒã¿ã»ã³ã¿ãŒã«ããã¬ããªã«ã®ããŒã«ã©ã€ãºãå¶åŸ¡ã§ããã¡ã«ããºã ããããŸã-NetworkTopologyStrategyãããã¯ãè² è·ãããã£ããšãã«çŽæ¥åãæ¿ããå¿ èŠããããŸããã ãã¹ããªã³ã°ã§ã®å®éšã®åŸãã·ã¹ãã ãžã®åœ±é¿ãæå°éã«æããªããããããç°¡åã«è¡ãæ¹æ³ãæããã«ãªããŸããã åãæ¿ãçŽåŸã®æ°åéãããŒã¿ã®äžéšã¯èªã¿åãã«ã¢ã¯ã»ã¹ã§ããŸããã§ããããå®éã«ã¯èª°ãæ°ä»ããŸããã§ããã
ããŒã¿ã»ã³ã¿ãŒ
çŸåšãã¯ã©ã¹ã¿ã¯6ã€ã®ããŒã¿ã»ã³ã¿ãŒã®12ã®ããŒãã§æ§æãããŠããŸãã æ°ããããŒã¿ã»ã³ã¿ãŒã®ç«ã¡äžãã«ã¯ãå¿ èŠãªæ§æã®ãµãŒããŒã®æ³šæããã£ã¹ã¯ã®ããŒã¯ã¢ãããæ°ããããŒãã«å¿ èŠãªåæããŒã¯ã³ã®éžæãããã³ããã±ãŒãžã®ã€ã³ã¹ããŒã«ãå«ãŸããŸãã ããŒã¿ã¬ããªã«ã®åæããŒãæéïŒæ倧60GïŒãèæ ®ããŠãæ°ãããµãŒããŒã§ã®èµ·åæé å šäœã«ã¯æ倧1æéããããŸãã
ç£èŠãšææžå
cassandraã®å®éšæ®µéã§ãããMuninãã©ã°ã€ã³ãäœæãããããŒãã«é¢ãããã¹ãŠã®å¿ èŠãªæ å ±ïŒåããŒã¹ããŒã¹/ã«ã©ã ãã¡ããªãŒã®å¿çæéãèªã¿åããæžã蟌ã¿ãå§çž®ãªã©ïŒãæäŸãããŸããã 䞊ãã§ãããåããŒãã®ããŒã¿éããã£ã¹ã¯äžã®ããŒãã«ã®æ°ãªã© ãªã© ãããã®ã¹ã±ãžã¥ãŒã«ã®ååšã¯ãé·æçã«äœãèµ·ãããããŸãã¯ä¿®åŸ©ãå§çž®ãªã©ã®å éšæé ã®éã«äœãèµ·ããããç解ããããã«éåžžã«éèŠã§ãã
ç°ãªããã©ã¡ãŒã¿ãŒéã®çžé¢é¢ä¿ãæ確ã«ããããšã§ãã¯ã©ã¹ã¿ãŒã®å¯¿åœã®å°é£ãªæ°åã§ããŒã¹ã®å¿çæéã®å¢å ãåé¿ããæ¹æ³ãç解ã§ããŸãã
DatastaxããOpsCenterã䜿çšããããšããŸããïŒé·æçã«ã ãã§ãªãããªã¢ã«ã¿ã€ã ã¢ãŒãã§åäžã®ã»ã³ã¿ãŒããããŒãã管çããããšãå¯èœã«ãªããŸãïŒãããœãããŠã§ã¢æ§æã®ç¹å®ã®åé¡ã«ããã䜿çšã§ããŸãã-çŸåšã®ç¶æ ãèŠçŽããç¬èªã®ã¢ãã¿ãŒãäœæããå¿ èŠããããŸãã1ã€ã®ãã©ãŠã¶ãŠã£ã³ããŠã§æãéèŠãªã¡ããªãã¯ã®å€ã éåžžã®å€éã¢ãŒãã§ã®2ã€ã®ãµãŒããŒããã®åºåã®äŸïŒ
ããŒãå | latãmsãèªã¿åã | latãmsãæžã蟌ã | èªã¿åããops / s | æžã蟌ã¿ãops / s | ãã£ã¹ã¯ãïŒ | JavaãïŒ | ããŒã¿ãG | ã¹ããªãŒã éä¿¡G | ã¹ããªãŒã ãéä¿¡ïŒ | ã¹ããªãŒã ãrecv G | ã¹ããªãŒã ãrecvïŒ | ã³ã³ããG | ã³ã³ããïŒ |
node1 | 0.7 | 0.6 | 66.7 | 10.8 | 15.0 | 60.1 | 39.4 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
node2 | 0.7 | 0.6 | 66.5 | 10.3 | 15.0 | 20.7 | 39.7 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
åã2ã€ã®ãµãŒããŒã§ããã2çªç®ã®ãµãŒããŒã¯ä¿®åŸ©ã§ãã
ããŒãå | latãmsãèªã¿åã | latãmsãæžã蟌ã | èªã¿åããops / s | æžã蟌ã¿ãops / s | ãã£ã¹ã¯ãïŒ | JavaãïŒ | ããŒã¿ãG | ã¹ããªãŒã éä¿¡G | ã¹ããªãŒã ãéä¿¡ïŒ | ã¹ããªãŒã ãrecv G | ã¹ããªãŒã ãrecvïŒ | ã³ã³ããG | ã³ã³ããïŒ |
node1 | 4.1 | 0.6 | 54.3 | 9.5 | 17.1 | 60.1 | 44.9 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
node2 | 2.6 | 0.5 | 54.5 | 9.5 | 18.5 | 55.2 | 48.9 | 1.9 | 22.3 | 0.0 | 0.0 | 2.5 | 1.2 |
ããã«ãäŒæ¥ã®wikiã§ããŸãã¯cassandraã«é¢é£ãããã¹ãŠã®åé¡ã«é¢ãã詳现ãªã³ã¡ã³ãã®åœ¢åŒã§ãäž»èŠãªæé ãææžåããŸããã
è©°ã蟌ãŸããã³ãŒã³
NTS
æåããç¯ããééãã¯ããããã¯ãŒã¯ããããžæŠç¥ã§ã¯ãªãã·ã³ãã«æŠç¥ã®äœ¿çšã§ããããªã¢ãŒãããŒã¿ã»ã³ã¿ãŒã§ããŒããèµ·åããããšããã«åé¡ãçºçããŸããã ããã«NTSã䜿çšããããšã劚ãããã®ã¯ãããŸããã§ããããå€åºå ã§ãšã©ãŒãä¿®æ£ããå¿ èŠããããŸããã ããã§ãåããŒã¿ã»ã³ã¿ãŒã«ããŒã¿ã®ã¬ããªã«ã1ã€ä¿æããããã«ãã¬ããªã±ãŒã·ã§ã³ã調æŽãããŸããã NetworkTopologyStrategyã䜿çšãããšãã¯ã©ã¹ã¿ãŒã®ããããžãèšè¿°ããããšãã§ããŸã-ã©ã®ããŒã¿ã»ã³ã¿ãŒãã©ã®ã©ãã¯ã«ãã®ããŒããŸãã¯ãã®ããŒããé 眮ããããã®åŸãCassandraãããŒã¿ãžã®ã¢ã¯ã»ã¹ãæé©åããŸãã ã¬ã³ãŒããŸãã¯èªã¿åãå€ã¯ããŒã«ã«ã§åŠçããããã®ããŒã¿ã»ã³ã¿ãŒã®å¿ èŠãªããŒããå©çšã§ããªãå Žåã«ã®ã¿ãã¯ã©ã€ã¢ã³ãã¯å¥ã®ããŒãããã®ããŒã¿ãæåŸ ããŸãã
ã¯ã©ã€ã¢ã³ããã¡ã€ã©ãŒ
ã¢ããªã±ãŒã·ã§ã³ã¯javaã§èšè¿°ãããŠãããHectorã©ã€ãã©ãªã䜿çšããŠããŒã¿ããŒã¹ãæäœããŸãã Hectorã¯ååã«è³¢ããæ¥ç¶çšã®ã¯ã©ã¹ã¿ãŒããŒããéžæããããã®ããŸããŸãªããªã·ãŒãã¯ã©ã€ã¢ã³ãã«æäŸããŸãã æåã«åæ¢ãããªãã·ã§ã³-åã¯ã©ã€ã¢ã³ãã¯ãæéã®å¿çãåä¿¡ããããŒãã§åäœããçŽæçã«æ£ããããã«èŠããŸããããçŸå®ã¯æ®é ·ã§ããããšãå€æããŸãã-ããŒãã®1ã€ãä»ã®ããŒããããèããéãå¿çãããšããã¹ãŠã®ã¯ã©ã€ã¢ã³ããããã«æ¥ãã§è¡ããŸããå®éã«åœŒã«DDoSãäžããŸããã è² è·ã®å¢å ã«ããããŒãã®å¿çãé ããªããšãå šå¡ãæ¥ãã§å¥ã®ããŒãã«ç§»åããŸããã ããŒã¿ã»ã³ã¿ãŒå ã®ããŒãã®è² è·ãåçã«åæ£ãããããã«ãã¯ã©ã€ã¢ã³ãã¯ããŒã¿ã»ã³ã¿ãŒå ã®ãã¹ãŠã®ãçããŠãããããŒããåã§å²ã¿ãŸãã ããŒãã100ããªç§ä»¥å ã«å¿çããªãå Žåãã¯ã©ã€ã¢ã³ãã¯èªèº«ã®ããŒããããããããšããŠããŒã¯ããæã åŒã³åºããŠã¹ããŒã¿ã¹ã確èªããŸãã ããã§åé¡ã¯å®å šã«è§£æ±ºããŸããã
å§çž®ãä¿®ç
Cassandraã¯ãããŒããšã«ãœãŒããããSSTableããŒãã«ã®åœ¢åŒã§ããŒã¿ããã£ã¹ã¯ã«ä¿åããŸãïŒåããŒãã«ã®ããã€ãã®è£å©ãã¡ã€ã«ãšãšãã«ïŒã MemTableããŒãã«ãã¡ã¢ãªãããã£ã¹ã¯ã«ãã©ãã·ã¥ããããšãåæ°ããSSTableãäœæãããŸãã èšé²ããããšãSSTableã¯å€æŽãããŸããã å€ãSSTableãšããŒã¿ãåé€ããå¯äžã®æ¹æ³ã¯ãå§çž®æé ã䜿çšããããšã§ãããã®æé ã§ã¯ãè€æ°ã®ïŒãŸãã¯ãã¹ãŠã®ïŒSSTableã1ã€ã«åéããŸãã ãã®ã¢ã»ã³ããªã§ã¯ãå€ãã®éèŠãªäœæ¥ãè¡ãããŸããå€ãå»æ£ïŒåé€ãããããŒã¿ããŒã«ãŒïŒã¯åé€ãããå€ãTTLããŒã¿ã¯åé€æžã¿ãšããŠããŒã¯ããããããã®å»æ£ã¯æ°ããSSTableã«é 眮ãããŸãã å§çž®ã®çš®é¡ã«ãã£ãŠã¯ããã¯ã°ã©ãŠã³ãã§èªåçã«å®è¡ããããã®ãšãæåã§ããªã¬ãŒã§ãããã®ããããŸãã ãã®å§çž®ã®çµæãæ°ããããŒãã«ã衚瀺ããïŒéåžžã¯ãããå°ãªãæ°ãšããªã¥ãŒã ã§ïŒããŸã å€ããªã£ãŠããªããã¥ãŒã ã¹ããŒã³ãšããŒã¿ã®æ··åã§æ§æãããŸãã
ããŒãã«ã®éãå§çž®/ããŒãžæäœã®åœ±é¿ã®æžå°ã¯ãããŒãžé »åºŠïŒããã«å¯Ÿå¿ããããŒãã«ã®ãµã€ãºïŒãæé©ãªäžŠå床ïŒäžŠåããŒãžã®æ°ã®æžå°ã«ãããæäœæéã¯å¢å ããŸããããã£ã¹ã¯ã®è² è·ã¯æžå°ããŸãïŒããã³å§çž®æäœã®èš±å¯ããããã£ã¹ã¯ãã©ãã£ãã¯ã«ãããŸãã
修埩æäœã¯ãã¬ããªã«éã§ããŒã¿ãšå»æ£æšèãåæããŸãã Cassandraã«ã¯ãã¬ããªã«ã®1ã€ãžã®èšé²ãåããŠå€±æããå Žåã®ããã«ãå€åºå ã§åæããŒã«ããããŸããããããã®ããŒã«ã¯ãã¹ãŠ100ïŒ ã®ä¿èšŒãæäŸãããã®ã§ã¯ãããŸããã ãã®ãããäžéšã®ããŒã¿åŠçã·ããªãªã§ã¯ãå®æçã«ä¿®åŸ©ãå®è¡ããããšããå§ãããŸãããäžéšã§ã¯ä¿®åŸ©ãå¿ èŠã§ãã ããŒãéïŒããã³ããŒã¿ã»ã³ã¿ãŒéïŒã®ããªã倧éã®ããŒã¿ã®è»¢éããã®ããã»ã¹ã«é¢äžããå¯èœæ§ãããããã修埩ã®çŽåã«ããŒã¿ã®äžäžèŽãæå°éã«æããããšãéèŠã§ãã æé©ãªä¿®åŸ©æé ã®éžæãšãã®æºåã«ã¯ããªãæéãããããŸãããæäœãé£ãããããŸãé »ç¹ã«å®éšããªãããã§ãã
ãã®çµæã次ã®ä¿®çã¹ã¿ãŒãã¢ããæŠç¥ãéçºããŸãããæé ã¯é±ã«1åå€éã«éå§ãããŸãã 以åã¯ãå°ããªColumnFamilyã®å Žåããã£ã¹ã¯äžã®ããŒãã«ã®å®å šãªããŒãžãå®è¡ããïŒãã®ããã»ã¹ã¯ã»ãšãã©ãªãœãŒã¹ãæ¶è²»ããŸããïŒã倧ããªColumnFamilyã®ãå€ããïŒ4æ¥ä»¥äžïŒããŒãã«ã®å®å šãªããŒãžãå®è¡ãããŸãã åŸè ã®æäœã¯ãäžæ¹ã§å€ãã®å¢ç³ããããã«ããä»æ¹ã§æ¯èŒçå°ãªããªãœãŒã¹ãæ¶è²»ããŸãã 修埩ãéå§ããããŸã§ã«ãæå°éã®ããŒã¿ããã£ã¹ã¯ã«ä¿åãããããŒãéã®å·®åãšåæãããããèšç®ããããã»ã¹ã«ã¯æå°éã®æéïŒçŽ1æéïŒãããããŸãã
修埩ã¯ç¹ã«ãããã¯ãŒã¯ã®åé¡ã«æ©ãŸãããŸã-åæäžã«æ¥ç¶ãé·æéïŒåïŒäžæããããã倧ããªãã±ããæ倱ãããå ŽåãTCPçµç±ã§çºçããããŒãéã®äº€æãã¹ã¿ãã¯ããŸãã cassandraã®æ°ããããŒãžã§ã³ã§ã¯ããã®ãããªãã³ã°ã®ã¿ã€ã ã¢ãŠããæå®ã§ããŸãã
ã¡ã¢ãªãšã¬ããŒãžã³ã¬ã¯ã·ã§ã³
ãã1ã€ã®åŸ®åŠãªç¹ã¯ãJVMã¡ã¢ãªã®äœ¿çšã§ãã ç¹ã«ã䞊åå§çž®ããã³ä¿®åŸ©äžã«ããŒãã®è² è·ãå¢å ããŸãã ããã©ã«ãã®ãã©ã¡ãŒã¿ã¯ããªãã«é©ããŠããªããããããŸãããããªãã¯å®éšããå¿ èŠããããŸãã
æšå¥šäºé
- è² è·ã®æ§è³ªãšãã¢ããªã±ãŒã·ã§ã³ã«æäŸããå¿ èŠããããã©ã¡ãŒã¿ãã§ããã ãæ©ã決å®ããŸãã 詳现ã«ã€ããŠã¯ãã¿ã¹ã¯ãããŒãžã£ãŒã«ãåãåãããã ããã åæã«åºã¥ããŠéãèšèšããŸãã éçºè ã«ããŒã¿ããŒã¹ã¹ãã¬ãŒãžãæ éã«èšèšããããäŸé ŒããŠãã ããã
- å¿çæéãéèŠãªå Žåã¯ã空ã容éãšãã£ã¹ã¯é床ãšRAMã確ä¿ããŠãã ããã
- ããŒãã§åãããŒããŠã§ã¢ãšãœãããŠã§ã¢ã䜿çšããåç©åãç¹æ®ãããªãã§ãã ããã
- ãã¹ãŠã詳现ã«ç£èŠããŸãã åé¡ãåæããããã«ã©ã®ããŒã¿ãå¿ èŠãã¯äºåã«ã¯ããããŸããã
- æ°ããããŒãã®ã€ã³ã¹ããŒã«ãèªååããŸãã
- cassandraã®ããŒã¿ã®ã©ã€ããµã€ã¯ã«ã詳现ã«ç解ããŸããããŒã¿ã®ä¿åå Žæãšä¿åå Žæãèªã¿åãæ¹æ³ãããŒã¿ããŒã¹ããã®é¢è±æ¹æ³ã
çµè«
éå»1幎éã§ã3ã€ã®ã¯ã©ã¹ã¿ãŒãç«ã¡äžããŸããããã®ãã¡2ã€ã¯å®åãããžã§ã¯ãã§ã1ã€ã¯éçºäžã§ãã äžè¬ã«ãCassandraã¯ã泚æãæãå¿ èŠãããæäœã®æ¥œåã§ãããšèšããŸãã éã®é »ç¹ãªé害ãåã ã®ãµãŒããŒã®äº€æ/è¿œå ãå®æçãªã¢ããã°ã¬ãŒããããŸããŸãªèšå®ãšããã»ã¹ãåãã皌åäžã®ããŒãã§ã®ç¶ç¶çãªå®éšã«ãããããããéçšã®å¹Žã«ããã£ãŠãå¥ã®ããŒãã§ã®cassandraãŸãã¯ã¯ã©ã¹ã¿ãŒå šäœã®é¢è±ã«é¢ããåäžã®åé¡ã¯ãããŸããã§ããã æçµçã«ããã®å®å®æ§ãšã¹ã±ãŒã©ããªãã£ã®äž¡æ¹ã1ã€ã®åºæ¬ååã«ãã£ãŠä¿èšŒãããŸãããã¹ãŠã®ããŒããåã圹å²ãæãããç·å¯ã«æ¥ç¶ãããŠããŸããã