mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-21 15:40:58 +00:00
1 line
4.3 KiB
JSON
1 line
4.3 KiB
JSON
[{"user_id": 3409, "stars": [], "topic_id": 13585, "date_created": 1300371437.16468, "message": "anyone have any pointers?", "group_id": 81, "id": 374245}, {"user_id": 3409, "stars": [], "topic_id": 13585, "date_created": 1300371379.542006, "message": "I'm pretty new at deploying Django", "group_id": 81, "id": 374233}, {"user_id": 3409, "stars": [{"date_created": 1300694331.9166169, "user_id": 22279}], "topic_id": 13585, "date_created": 1300371403.7001221, "message": "I'm using Apache+mod_wsgi, and I just switched to daemon mode (instead of embedded)", "group_id": 81, "id": 374237}, {"user_id": 3409, "stars": [], "topic_id": 13585, "date_created": 1300371429.975193, "message": "but I'm not sure what to set in WSGIDaemonProcess (process and thread count)", "group_id": 81, "id": 374243}, {"user_id": 12133, "stars": [{"date_created": 1300694346.226212, "user_id": 22279}], "topic_id": 13585, "date_created": 1300409815.204242, "message": "i prefer use uwsgi", "group_id": 81, "id": 378861}, {"user_id": 141, "stars": [], "topic_id": 13585, "date_created": 1300421215.0304749, "message": "for the last application where we were using mod_wsgi, we weren't sure our app code was threadsafe, so we used threads=1.", "group_id": 81, "id": 379756}, {"user_id": 141, "stars": [], "topic_id": 13585, "date_created": 1300421402.0368061, "message": "(at the least you'd want as many as the machine has CPU cores, i suppose.)", "group_id": 81, "id": 379760}, {"user_id": 141, "stars": [], "topic_id": 13585, "date_created": 1300421301.5153069, "message": "at that point, the number of processes is the number of simultaneous requests you can handle, so i think you want to use as many as can fit in memory on the machine.", "group_id": 81, "id": 379758}, {"user_id": 13912, "stars": [], "topic_id": 13585, "date_created": 1300556548.8453951, "message": "usually if it's a small VPS instance I set it to 5 processes, it works fine with relatively large number of pageviews", "group_id": 81, "id": 388953}, {"user_id": 13912, "stars": [], "topic_id": 13585, "date_created": 1300556663.2190349, "message": "more processes - better concurrent request handling", "group_id": 81, "id": 388957}, {"user_id": 13912, "stars": [], "topic_id": 13585, "date_created": 1300556591.1697171, "message": "on larger 2 CPU blades I'm running it with 16 processes, works fine again", "group_id": 81, "id": 388955}, {"user_id": 13912, "stars": [], "topic_id": 13585, "date_created": 1300556600.1530421, "message": "more processes - more memory", "group_id": 81, "id": 388956}, {"user_id": 13912, "stars": [], "topic_id": 13585, "date_created": 1300556690.6358261, "message": "using it with threads made it unstable in my experience (testing with siege)", "group_id": 81, "id": 388959}, {"user_id": 3409, "stars": [], "topic_id": 13585, "date_created": 1300626428.481323, "message": "@Vasil What's a \"Small\" VPS instance for you? I'm currently running on SliceHost's 1GB Ram slice.", "group_id": 81, "id": 391874}, {"user_id": 13912, "stars": [], "topic_id": 13585, "date_created": 1300627466.6073821, "message": "mmm, I had 512mb in mind. We ran 2 apps with 5 processes each + solr + postgresql + memcache on a 1GB Rackspace instance, and that's about all it could handle.", "group_id": 81, "id": 391956}, {"user_id": 13912, "stars": [], "topic_id": 13585, "date_created": 1300627578.26226, "message": "you can easily experiment what works best, if you have a 4 core machine, run a 1GB VM instance on your workstation and hit it with siege or something similar and see how different confs will handle the load.", "group_id": 81, "id": 391973}, {"user_id": 13912, "stars": [], "topic_id": 13585, "date_created": 1300627626.3117681, "message": "But 5 processes will work just fine for start, you could use the rest of RAM for memcache, tuning your DB or varnish", "group_id": 81, "id": 391981}, {"user_id": 31054, "stars": [], "topic_id": 13585, "date_created": 1307829337.3076069, "message": "What does tweaking the number of threads do?", "group_id": 81, "id": 1371900}, {"user_id": 25337, "stars": [], "topic_id": 13585, "date_created": 1308046069.2951019, "message": "@diafygi Essentially, increases concurrency without the memory implications of multiprocess. You need your underlying libraries to be threadsafe, though (often not the case with C extensions). As ever, the excellent and under-read mod_wsgi docs have lots of information.", "group_id": 81, "id": 1389571}] |