Senna 2.0ã®å±æã¨ãTritonnã§åé¡ãçºçãã¦ãã人åãæ å ±
Senna 2.0βã®ãªãªã¼ã¹ãè¦ãã¦ãã¾ããã
å»å¹´ã®å¤ã«åºãã¨è¨ã£ã¦ãã¾ããããç´ä½æ²æãã£ã¦ã®ç¾ç¶ã§ãã
ã©ã¤ãã«ã®Tokyo Cabinet/Tokyo Dystopiaã«ã¤ãã¦ã¯ã
ã¹ãã¬ã¼ã¸ã¨å
¨ææ¤ç´¢ã¤ã³ããã¯ã¹ãåå²ããæ¹åæ§ã§ãã
ä»ã¾ã§ã®Sennaã¯Tokyo Dystopiaã«è¿ããã®ã§ãããã
Senna 2.0ã§ã¯éã«Hyper Estraierã®ã»ãã«è¿ã¥ãæãã«ãªã£ã¦ãã¾ãã
ããããç¹è²ãåºã¦é¢ç½ãã§ããã¼ã
ä»åã¯è»¢ç½®ã¤ã³ããã¯ã¹é¨åã«ãããªãæãå
¥ã£ã¦ããã®ã§ã
Senna/Lucene/Tokyo Dystopiaã®ããã©ã¼ãã³ã¹æ¯è¼ããã£ã¦ã¿ããã¨æãã¾ãã
ï¼ã¨ã¯ãããããã©ã¼ãã³ã¹æ¯è¼ã¯ããããã®ã©ã¤ãã©ãªã«ç²¾éããªãã¨æå³ã®ããæ
å ±ãåºããªãã®ã§ã大å¤ã§ã¯ããã¾ããâ¦ï¼
Senna 2.0 + MySQL 5.1ç¨ã«ãã©ã¬ãã«Sennaã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ãéçºä¸ã§ãã
å¾ä»ãã¤ããªã¤ã³ã¹ãã¼ã«ãã§ããã¨ããªãéç¨ä¸æ¥½ã§ãããã
Senna 2.0ã®ãã¹ãã«ã¤ãã¦ãä»åã¯ã¯ãªã¢ã³ã¼ããããååãã ãã£ã¦ãã¾ãã
ãã¹ãã«ã¯ãã¯ãªã¢ã³ã¼ããããä½ã£ã¦ãããã¹ããã¬ã¼ã ã¯ã¼ã¯ãCutterãã使ã£ã¦ãã¾ãã
æ©ããããã°ãæ½°ãã¦ããæãã§ãã
ãã¦ãå°æ¥ã®è©±ã¯ããã¾ã§ã
ç¾å¨Tritonn/Sennaãéç¨ãã¦ããæ¹ããã
ãè½ã¡ããã ãã©â¦ãã¨ããã³ãããã ããã¨ãããã¾ãã
ããã³ããè²°ãã¦ããããå¬ããã§ããã
使ã£ã¦ããã ãã¦ãããã¨ãåããã¾ããã
ä¸å
·åãç´ãæ©ä¼ã«ããªãã¾ãã
ã¨ããããã§ãTritonnå°å
¥æã®åé¡è§£æ±ºã«å½¹ç«ã¤ãªã¹ããæ¸ãã¦ã¿ã¾ããã
ãã解決ããããããã¨ãã人ã¯ãä½åæ
å ±ã·ã¹ãã ã®ãµãã¼ããµã¼ãã¹ãã©ãã¼
Tritonnãè½ã¡ãã®ã§ãã
以ä¸ã®é ç®ãï¼ã¤ï¼ã¤ãã§ãã¯ãã¦ã¿ã¦ãã ããã
ææ°çã使ã£ã¦ããªã
Tritonnã®ææ°çãã使ããã ããã
æ§ãã¼ã¸ã§ã³ã«ã¯ããã³ãã©ãªãã¼ãã«ãåé¤ãããå ´åã«è½ã¡ãä¸å
·åãªã©ãããã¾ãã
ææ°çã¯ãCOUNT(*)ã¨2indã¨ã®çµã¿åããã§ã«ã¦ã³ããããããåé¡ãããããã§ããã
ããããç´ããçãåºãã£ã¦id:mirãããè¨ã£ã¦ããï¼
Senna/Tritonnã¨ãç¾å¨åºã¦ããææ°çã¯å®å®çãªã®ã§ã
åºæ¬ã¢ããã°ã¬ã¼ãããã»ããå®å®ãã¾ãã
- [追è¨]
SHOW SENNA STATUSã§è½ã¡ãã®ã¯ã
Tritonnã¨Sennaã®ãã¼ã¸ã§ã³å·®ç°ãåå ã§ãã
Tritonnã§æå®ãã¦ãããã¼ã¸ã§ã³ã®Sennaã使ããã¨ããªã¹ã¹ã¡ãã¾ãã
ï¼ææ°çã§ã¯èµ·ãããªãã¨æãã¾ãï¼
Sennaã®æã®ãã¼ã¸ã§ã³ã¯ã
é«è² è·ã®å ´åã«è½ã¡ã¤ã¤ããããã®å¾æ´æ°ãããã¯ããåé¡ãããã¾ãããã
ãã®åé¡ã¯ç¾å¨ä¿®æ£ããã¦ãã¾ãã
èªåã§ãã«ããã¦ãã
以åããTritonnãã使ãããã ãã¦ããæ¹ã¯ã
èªåã§MySQLã§ããããå½ã¦ã¦Tritonnãå°å
¥ããã¦ããã¨æãã¾ãã
ããããç¾å¨ã¯èªåãã«ãã¯ãªã¹ã¹ã¡ãã¦ããã¾ããã
é
å¸ããã¦ãããã¤ããªã使ããã¨ããªã¹ã¹ã¡ãããã¾ãã
OSãi386ã§ãã
amd64/em64tçã®OSãã使ããã ããã
Sennaã¯mmapã¨ããAPIãå¤ç¨ãã¦ããã®ã§ã
è«ç空éä¸è¶³ã«ããªãææã§ãã
è½ã¡ãªãããããã«ãããã¨ããããã¨æãã¾ããã
è«ç空éä¸è¶³ã§ã®éç¨ã¯ãããã©ã¼ãã³ã¹ãããªãè½ã¡ãã¨æãã¾ãã
- [追è¨]32bitçOSã§ã®å¶éã«ã¤ãã¦ã®è©³ç´°ã¨åé¿ç
æ¦ç®ã§ãSennaã®ã¤ã³ããã¯ã¹ã®æ° * 256M > 2Gã¨ãªãã¨å±éºæ°´åã§ãã
ä¸æçã«ã§ãSennaã®ã¤ã³ããã¯ã¹ã®æ°ãä¸è¨ãè¶
ããã¨ããºãã§ãã
ãã¨ãã°ãå¥åãã¼ãã«ãä½æãã¦ããrenameãããã¨ãããããªéç¨ã ã¨ã
ã¤ã³ããã¯ã¹ã®æ°ãéç¨ç¶æ
ã®ï¼åã¨ãªãã¾ãã
åé¿çã¨ãã¦ã¯ã
- INITIAL_N_SEGMENTSãæ¸ãã(ä¸è¨ã®256Mã¯ãINITIAL_N_SEGMENTSã«æ¯ä¾ãã¾ã)
- Sennaã®ã¤ã³ããã¯ã¹ã®æ°ãæ¸ãã
- ã³ã³ãã³ãåå²ããã
ãªã©ãããã¾ãã
MySQLã®ã¬ããªã±ã¼ã·ã§ã³éç¨ã®å ´åã«ã¯ã
ã¹ã¬ã¼ããã¨ã«ã¤ã³ããã¯ã¹ãä»ä¸ãããã¨ãã§ãã¾ãã
ããã§ã¤ã³ããã¯ã¹ãåå²ããã¨ããã®ãéç¨çã«æ¥½ã ã¨æãã¾ãã
ããem64t対å¿CPUãæ®åããem64tçOSãæ¯ãã¦ããç¾ç¶ã§ã¯ã
em64tçOSã«å¤ããã®ãå°æ¥çã«ã¯ãªã¹ã¹ã¡ã§ããã§ãããã
ã¤ã³ããã¯ã¹ã®æ°ãå¤ããã³ã³ãã³ãã®éãå¤ãå ´åã«ã¯ã
ç©çã¡ã¢ãªãååãªéãå¿
è¦ã§ãã
ã§ããã¾ãã¯ååãªè«ç空éã®ç¢ºä¿ãå
決ã§ãã
ä¸è¨ã®ã©ãã«ãå½ã¦ã¯ã¾ãããã³ã©ï¼
è½ã¡ãã¨ãã«ãmysqlã®logã«
0809xx 5:xx:xx - mysqld got signal 11;
ã¨ãã£ããã°ãåºãã¨æãã¾ãã
ããã«ã
Stack range sanity check OK, backtrace follows:
0xdeadbeef
0xcafebabe
0x09286322
ã¨ãã£ã16é²æ°å¤ã®ç¾
åãåºã¦ãã¾ãããï¼
Tritonnã§é
å¸ãã¦ãããã¤ããªã使ã£ã¦ããã°ã
ãã®æ°å¤ã®ç¾
åãããä¸å
·åã®å ´æã大ä½ç¹å®ãããã¨ãã§ãã¾ãã
ã¨ããããã§ããã®16æ°æ°å¤ã®ç¾
åãTritonn-devãSenna-devã¡ã¼ãªã³ã°ãªã¹ããªã©ã«æãã¦ããã ããã°å¹¸ãã§ãã
ãã§ã«å¤ãã®ä¸å
·åã¯ä¿®æ£ããã¦ããããã
æ®ãã®ä¸å
·åã«ã¤ãã¦ã¯ããªãã®ã¬ã¢ã±ã¼ã¹ã§ãããã¨ãèãããã¾ãã
ãã£ã¦ãããã³ããããã ããªãã¨ããªããªãä¿®æ£ãåºæ¥ãªãã£ããããã®ã§ãâ¦
ã¨ããããã§ã¬ããããã³ããï¼ï¼ï¼ï¼ã
CentOS 5.2ã§Tritonnã®ææ°çã®rpmã®å°å ¥ã«å¤±æãã¾ãï¼
akiyan.comã®ããã°ãè¦ã¦ãå°å ¥æ¹æ³ãæ¸ããã°â¦ã¨æãåãå®é試ãã¦ã¿ã¾ããã
ããããTritonnã§é ã£ã¦ããrpmãå°å ¥ããã¨ã
/etc/init.d/mysql start
ã失æãããã§ãããåã®æå
ã®ç°å¢ã§ãåç¾ãã¾ããã
Tritonnä½è
ã§ããid:mirããã«ãä¼ããã¦ããã¾ããã
ã¡ãªã¿ã«ãlibmysqlclient.soãè¦ã¤ãããªãåé¡ã¯ã
mysql-develçãªããã±ã¼ã¸ãã©ããããæã£ã¦ãããã¨ã«ãã£ã¦è§£æ±ºãããã¨ãåºæ¥ãã¨æãã¾ãã
ããããã«ã¤ãã¦ãtritonnå´ã§é
å¸ãã¦ãããã親åã ã¨ã¯æãã¾ãã