high-load

can it be executed faster with big amount of data [MySQL]

做~自己de王妃 提交于 2019-12-25 11:48:44
问题 is there any way how to optimize next query: EXPLAIN EXTENDED SELECT keyword_id, ck.keyword, COUNT( article_id ) AS cnt FROM career_article_keyword LEFT JOIN career_keywords ck USING ( keyword_id ) WHERE keyword_id IN ( SELECT keyword_id FROM career_article_keyword LEFT JOIN career_keywords ck USING ( keyword_id ) WHERE article_id IN ( SELECT article_id FROM career_article_keyword WHERE keyword_id =9 ) AND keyword_id <>9 ) GROUP BY keyword_id ORDER BY cnt DESC The main task here if I have

SignalR performance

南笙酒味 提交于 2019-12-23 07:50:39
问题 We have a web-based game (SignalR for communication), our workload will be: 5,000 - 20,000 concurrent client with 0.5 - 2 messages/client/second ~= 10-40k messages/secs with the following server is there any problem handle the load (assume that signalr has 80-90% cpu) ? dual hex-cores L5639 (2.13Ghz) 24G Ram windows server 2012 standard (with long-polling we can easily do that @ 5-10% cpu) 回答1: As much as I dont want to write it, "it depends" is very much accurate here. SignalR can scale way

Logstash/Elasticsearch/Kibana resource planning

走远了吗. 提交于 2019-12-11 03:53:07
问题 How to plan resources (I suspect, elasticsearch instances) according to load: With load I mean ≈500K events/min, each containing 8-10 fields. What are the configuration knobs I should turn? I'm new to this stack. 回答1: 500,000 events per minute is 8,333 events per second, which should be pretty easy for a small cluster (3-5 machines) to handle. The problem will come with keeping 720M daily documents open for 60 days (43B documents). If each of the 10 fields is 32 bytes, that's 13.8TB of disk

APC User-Cache suitable for high load environments?

試著忘記壹切 提交于 2019-12-06 12:12:41
We try to deploy APC user-cache in a high load environment as local 2nd-tier cache on each server for our central caching service (redis), for caching database queries with rarely changing results, and configuration. We basically looked at what Facebook did (years ago): http://www.slideshare.net/guoqing75/4069180-caching-performance-lessons-from-facebook http://www.slideshare.net/shire/php-tek-2007-apc-facebook It works pretty well for some time, but after some hours under high load, APC runs into problems, so the whole mod_php does not execute any PHP anymore. Even a simple PHP script with

C: epoll and multithreading

二次信任 提交于 2019-12-03 08:17:35
问题 I need to create specialized HTTP server, for this I plan to use epoll sycall, but I want to utilize multiple processors/cores and I can't come up with architecture solution. ATM my idea is followng: create multiple threads with own epoll descriptors, main thread accepts connections and distributes them among threads epoll. But are there any better solutions? Which books/articles/guides can I read on high load architectures? I've seen only C10K article, but most links to examples are dead :(

Java High-load NIO TCP server

梦想与她 提交于 2019-11-28 03:29:54
As a part of my research I'm writing an high-load TCP/IP echo server in Java. I want to serve about 3-4k of clients and see the maximum possible messages per second that I can squeeze out of it. Message size is quite small - up to 100 bytes. This work doesn't have any practical purpose - only a research. According to numerous presentations that I've seen (HornetQ benchmarks, LMAX Disruptor talks, etc), real-world high-load systems tend to serve millions of transactions per second (I believe Disruptor mentioned about 6 mils and and Hornet - 8.5). For example, this post states that it possible

jQuery/Javascript - How to wait for manipulated DOM to update before proceeding with function

旧时模样 提交于 2019-11-27 08:36:14
What I'm trying to do is to update a simple div to say "Processing..." before executing a CPU-intensive script (it takes 3-12 seconds to run, no AJAX) then update the div to say "Finished!" when done. What I'm seeing is the div never gets updated with "Processing...". If I set a breakpoint immediately after that command, then the div text does get updated, so I know the syntax is correct. Same behavior in IE9, FF6, Chrome13. Even when bypassing jQuery and using basic raw Javascript, I see the same issue. You'd think this would have an easy answer. However, since the jQuery .html() and .text()

Tactics for using PHP in a high-load site

蓝咒 提交于 2019-11-27 05:43:17
Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques. I'm developing a tool in PHP that could attain quite a lot of users, if it works out right. However while I'm fully capable of developing the program I'm pretty much clueless when it comes to making something that can deal with huge traffic. So here's a few questions on it (feel free to turn this question into a resource thread as well). Databases At the moment I plan to

Java High-load NIO TCP server

老子叫甜甜 提交于 2019-11-27 00:04:39
问题 As a part of my research I'm writing an high-load TCP/IP echo server in Java. I want to serve about 3-4k of clients and see the maximum possible messages per second that I can squeeze out of it. Message size is quite small - up to 100 bytes. This work doesn't have any practical purpose - only a research. According to numerous presentations that I've seen (HornetQ benchmarks, LMAX Disruptor talks, etc), real-world high-load systems tend to serve millions of transactions per second (I believe

jQuery/Javascript - How to wait for manipulated DOM to update before proceeding with function

拟墨画扇 提交于 2019-11-26 22:17:42
问题 What I'm trying to do is to update a simple div to say "Processing..." before executing a CPU-intensive script (it takes 3-12 seconds to run, no AJAX) then update the div to say "Finished!" when done. What I'm seeing is the div never gets updated with "Processing...". If I set a breakpoint immediately after that command, then the div text does get updated, so I know the syntax is correct. Same behavior in IE9, FF6, Chrome13. Even when bypassing jQuery and using basic raw Javascript, I see the