Simple code: We originally switched from Celery to RQ because Celery's code was incredibly complex and obscure (Slides). MRQ should be as easy to understand as RQ and even easier to extend. Great dashboard: Have visibility and control on everything: queued jobs, current jobs, worker status, ... Per-job logs: Get the log output of each task separately in the dashboard Gevent worker: IO-bound tasks
Programmer and traveler. Currently writing Production Go @ironzeb leanpub.com/produc... Read this first 3 Rules for Choosing Nonfiction Books I love reading nonfiction. But, as I am sure you can relate, I only have limited time. Even if we were able to make enough time to read one book a week on averageâcertainly not the case for me right nowâwe would still only be able to read around 3,000 books
mongoengine MongoEngine is a Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python. It uses a simple declarative API, similar to the Django ORM. Documentation available at docs.mongoengine.org - there is currently a tutorial, a user guide and API reference. Simple to use from mongoengine import * # To define a schema for a # document, we create a class
ã¾ã¨ã è¶ é·ããªã£ãã®ã§ã¾ã¨ããä¸ã«æã£ã¦ããã å··ã§è¨ããã¦ãããã¥ã¼ãã³ã°ã¯çµæ§åãå¤ãäºã解ã£ã¦ããã ãã¼ã«ç workingSet Analyzer ã¯ä¿¡ç¨ãªããªããï¼overSecondsã¯ã¾ãè¯ãï¼ mongoperfã®å¤ã¯å®å ¨ã«åèã«ãªããªãã insert mongoperfã®å¤ã¯insertæ§è½ã¨é¢é£ããªããï¼ä½ã測ã£ã¦ããã ï¼ï¼ ã«ã©ã ã®ããªã¢ãã±ã¼ã·ã§ã³ã«ããUPDATEæã®ãã¼ã¿è¥å¤§ååé¿($setOnInsert)ã¯MUSTã ã¯ãªãã£ã«ã«ãªæé帯ã«ã¹ãã¬ã¼ã¸ãã¡ã¤ã«(2GB)ã®çæãé¿ãããã¥ã¼ãã³ã°ã®å¹æã¯æççã ã¬ã³ã¼ãããªã¢ãã±ã¼ã·ã§ã³ã»ãã¥ã¼ãã³ã°ã¯é å¼µã価å¤ãç¡ãã(ãããéå¹æ) update ä¸è¨ã®éãå¿ ãin-placeã«ãªãããã«ããã paddingFactorãåãããã ã¨ã話ã«ãªããªãæ§è½å£å remove ããªãé«éã å ¨ä»¶åé¤ã®å ´
æè¿Pythonã«ã¯ã¾ã£ã¦ãã¾ãã ã¤ãã§ã«æ©æ¢°å¦ç¿ã®åå¼·ã«ãã¯ã¾ã£ã¦ãã¾ãã ãããã建ç¯æ¹è©ç©ºéãå¯è¦åããããããã¾ãã å ¬éããã¦ãã建ç¯æ¹è©ã¨ããã°ãã10+1ããã¼ã¿ãã¼ã¹ãã§ããã ãªãã¨ãªãè¦ãæããã¢ãã¬ã¹ã¯ ãããªæãã«ãªã£ã¦ãã®ã§ãé©å½ã«çªå·ãå¢ããã¦ã£ãã¨ãããã©ããã1549ã¾ã§ããã¿ããã ã¨ããããã§ãå ¨ãã¼ã¸ã次ã®ã·ã§ã«ã¹ã¯ãªããã§åå¾ãã¾ã # var1=http://db.10plus1.jp/backnumber/article/articleid/ var2=.html for ((i=1;i<1550;i++)) do wget -O $i$var2 $var1$i/ done; ãã®1549ã®ä¸ã«ãæ¯æãã«ãªã£ã¦ãçªå·ã100ããã¾ããã ããã§ãè¨äºã«ãã£ã¦ã¯ ãããªå ·åã«å ¬éããã¦ãªããã®ãããã¾ããå ¨1449è¨äºã®ãã¡ãå ¬éæ°ï¼721ãæªå ¬
æè¿ããããä»äºã§ã¬ãããªFluentdã¨MongoDBã触ãããã«ãªã£ã¦ã¡ãã£ã¨ããã£ããã¨ã ãã£ãã®ã§èª°ãã®å½¹ã«ç«ã¤ããç¥ããªãã®ã§æ¸ãã¦ããã Fluentdçéã¯éçºãæ´»çºãªã®ã§ãæ°ã¶æå¾ã«ã¯ãã®è¨äºã®æ å ±ãæããå¤ããªã£ã¦ããã®ã§ã注æãã ããã çµè« æ¸ãã¦ããé·ããªã£ã¦ãã¾ã£ãã®ã§å ã«è¦ç¹ã¨ãããçµè«ãæ¸ãã¦ããã apache => fluentd => MongoDB ã¨apacheã®ã¢ã¯ã»ã¹ãã°ãMongoDBã«å ¥ããã¨ãã«codeãsizeã¨ãã£ãæ°å¤ãæåå(string)ã¨ãã¦å ¥ã£ã¦ãã td-agent.confã®formatãèªä½ããã¨ãæé以å¤ã®ãã£ã¼ã«ããæåå(string)ã¨ãã¦æ±ããã fluent-plugin-typecastãå©ç¨ãããã¨ã§codeãsizeã¨ãã£ãç¹å®ã®ãã£ã¼ã«ãããstringãintegerãªã©ã®ä»»æã®ãã¼ã¿åã«å¤æå¯è½
ã¯ããã« ã¨ã³ã¸ãã¢ã®@ryooo321ã§ãã ãããããé¡ããã¾ãã ä»åã¯å¼ç¤¾ã§éç¨ä¸ã®å ¨ã¢ããªã§å©ç¨ãã¦ããè¡ååæãã©ãããã©ã¼ã ã«ã¤ãã¦ãç´¹ä»ãããã¨æãã¾ãã 2012å¹´ã®6æã«ä½ã£ã¦ãããç´9ã¶æã»ã©éç¨ãã¦ãã¾ãã ç¹å¾´ ã»æãããããªããã¼ã¿ã¹ã㢠ã»ãã¾ãã¾ãªåãåãã対å¿ã§å©ç¨ã§ããæè»ãªã¯ã¨ãª ã»æ©æãªMap/Reduceã«ããéè¨ ã»éè¨çµæãCSVãã°ã©ãã§å¯è¦å ç®ç ã»ã¦ã¼ã¶ã¼ã®åãåããã«å¹ççã«å¯¾å¿ããã¢ããªã®ä¼ç»ã»éçºã«éä¸ãããã ã»ã¦ã¼ã¶ã¼ã®è¡åãæ½è±¡åã»å¯è¦åãããã¨ã§PDCAã®è³ªãåä¸ããããã è¡åãã°ã®ããã¼ 1. ã¦ã¼ã¶ã¼ããRuby on Rails製ã®ã½ã¼ã·ã£ã«ã²ã¼ã ã«ãªã¯ã¨ã¹ã 2. Railsãããã¼ã«ã«ã®fluentdã«ãã°åºå(fluent-logger-ruby) 3. ãã¼ã«ã«ã®fluentd
2.6対å¿ç MongoDBã®èãæ¬ The Little MongoDB Book Karl Seguin è / 濱é å¸ è¨³ i ç®æ¬¡ ç®æ¬¡ i ãã®æ¬ã«ã¤ã㦠iii ã©ã¤ã»ã³ã¹ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii èè ã«ã¤ã㦠. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii è¬è¾ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii ææ°ãã¼ã¸ã§ã³ . . . . . . . . . . . . . . . . . .
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}