TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Our site just got onto Mashable - HELP

14 点作者 wesleyzhao超过 14 年前
Hey Everyone, For the past few weeks my friends and I have been hacking together small projects from our dorm rooms trying to find something that would stick.<p>Two days ago we released WhereMyFriends.Be, and last night we were fortunate enough to have been posted on Mashable! We immediately were forced to migrate to Rackspace to make sure our site stayed up: http://wheremyfriends.be<p>We have been up all night maintaining the site, catching any bugs from users, and just making sure things go smoothly.&#60;p&#62;We have noticed the site slowing down over the course of the night and have been on phone with Rackspace. They think the problem may be a piling queue of requests to our MySQL data tables (which are currently using MyISAM).<p>We really want to get the site back up to speed as soon as possible but we are honestly at a loss for what to do. We've never experienced a traffic surge like this before. We are on the verge of putting up a landing page and stopping the flow of Mashable traffic.<p>Does anyone have any suggestions for what we can do to get ourselves back up and running?<p>Thanks for any suggestions!<p>(Note: we are using PHP, MySQL, Javascript)

9 条评论

sagacity超过 14 年前
Also, as discussed in one of your previous threads, in case the current Geolocation API you're using is slowing things down (at least in part), you might want to try this:<p><a href="http://news.ycombinator.com/item?id=2255089" rel="nofollow">http://news.ycombinator.com/item?id=2255089</a><p>Edit: Or, directly: <a href="http://IPLoc.info/api" rel="nofollow">http://IPLoc.info/api</a><p>(Partly inspired by your thread from which, I sent you an email, but never heard back from you.)<p>If you wish to try this, I'll be happy to work with you to get our (free) geolocation API setup on your site <i>quickly</i>.
评论 #2263999 未加载
dmc超过 14 年前
Without being familiar with your service, do you implement caching? memcached[1] may lighten your load if you do not.<p>What web server do you use, apache? Perhaps nginx or lighttpd would be a better fit if you do use apache.<p>Check out this post[2] for more details on decreasing load.<p>and try not to knock your server offline at your peak time ;)<p>HTH.<p>[1] <a href="http://memcached.org/" rel="nofollow">http://memcached.org/</a><p>[2] <a href="http://news.ycombinator.com/item?id=2220273" rel="nofollow">http://news.ycombinator.com/item?id=2220273</a>
评论 #2257864 未加载
dclaysmith超过 14 年前
I would:<p>* Change the landing page you have up there. Focus on the product (not your current predicament). A few screeshots. Make people want to comeback later today or tomorrow.<p>* Eliminate any non-essential database calls. Convert php files to static html (or copy and paste the output of the page and just echo it).<p>* Check your slow query logs in mysql and index. Definitely make sure you have any primary keys set and foreign keys (used in joins) indexed. Then look at your queries and add index on your slowest queries.<p>If you aren't sure it's MySql, copy all of your images onto Rackspace cloud files/amazon s3. This will lower traffic through your machine/disk access.
评论 #2259470 未加载
hallmark超过 14 年前
Hey guys, first off, congrats!<p>You'll get many snippets of advice here, and tons of web resources to chase down and read.<p>If you want to revert back to a live site quickly, may I recommend direct help? I'll step in first and offer my services. Or ask here and I'm sure other HNers will step up as well.<p>I've troubleshooted MySQL slow queries. I've done memcaching and static file hosting on CDNs.<p>If it takes a ton of effort, we can figure out compensation once the site is back up and running like a charm. If you don't have any money, list my name somewhere and help me build my personal reputation. :)<p>HTH. I've also sent an email to Dan.
评论 #2263995 未加载
rst超过 14 年前
At the risk of stating the obvious, you might want to check the query plans on your most common mySql queries, to make sure that all the appropriate indexes are in place and in use. I've not done this with mySql myself, but this looks like it <i>might</i> be useful:<p><a href="http://www.learn-mysql-tutorial.com/OptimizeQueries.cfm" rel="nofollow">http://www.learn-mysql-tutorial.com/OptimizeQueries.cfm</a>
fhars超过 14 年前
If you are writing frequent updates to your MyISAM tables, you should switch to a database backend that allows concurrent updates. MyISAM is only useful for read-mostly or single writer scenarios. See also <a href="http://www.mysqlperformanceblog.com/2006/06/17/using-myisam-in-production/" rel="nofollow">http://www.mysqlperformanceblog.com/2006/06/17/using-myisam-...</a>
评论 #2259454 未加载
sagacity超过 14 年前
Congrats!<p>You might want to check this (and possibly also the parent thread), quick:<p><a href="http://news.ycombinator.com/item?id=2235994" rel="nofollow">http://news.ycombinator.com/item?id=2235994</a><p>God speed. :-)
jimboyoungblood超过 14 年前
How much traffic was Mashable throwing at you?
评论 #2259478 未加载
thomasdavis超过 14 年前
What technologies are you using?
评论 #2257854 未加载