Riq, response from CocosLive is extremely slow last few days. I saw this behavior about 5-6 times last 3-4 days. Is there some allocated bandwidth with google that we are exceeding maybe?
CocosLive server too slow
(18 posts) (4 voices)-
Posted 2 years ago #
-
The daily quota is not being exceeded. I'm monitoring the quota every 2 or 3 days, and the server has between 15~20% of "free space".
But, I also have noticed that the server is responding slower, specially at night.
Right now (9:27 GMT-3) is responding very fast.I'll increment the daily quota even more, to see if it is related to the quota or not.
Posted 2 years ago # -
Thanx
Btw, I think you put 10 seconds timeout, and my app can't get only 20 scores in that time when the response is slow.Posted 2 years ago # -
yes, the timeout is 7 seconds. But I can't configure it.
Every request should finish in less than 7 seconds, otherwise GAE will raise an exception.Posted 2 years ago # -
I'll investigate this issue, but if increment the quota does not solve the issue, then I think I can't do much, since it will be related to scaling issues with GAE.
An alternative is to have 2 or 3 more instances of cocoslive, to reduce the load.
Posted 2 years ago # -
right now the server is slow, but i'm not sure why.
The CPU time consuption is at 54%:
54% 55.34 of 102.50 CPU hoursand the daily quota will be reset in 5 hours, so I don't think the problem is related to the quota.
The other quotas (mail, space, bandwidth, etc) are not even near 20%.
Posted 2 years ago # -
Yes, it's slow and really unusable right now :(
I don't get it, CocosLive is hosted on Google servers or not? Is it payed hosting or free? Anyway someone should be asked where is the problem, maybe it's not related to GAE or anything like that...
Posted 2 years ago # -
yes, it is hosted on GAE, and I'm paying nearly 30$ per week.
I'll contact GAE support.Posted 2 years ago # -
You sure should contact them. I mean for $120 per month you can get server capable of serving zillion of users for simple app as cocoslive. For my other business I have server with 12 domains serving about 1.500.000 uniques per day, with PHP, MySQL and everything I need. I am burning about 20.000 GB per month, with images and videos. Though, it's a little more expensive than $120 but I am telling you just for illustrative purposes. How much bandwidth cocoslive is burning and how many hits/uniques are there per day anyway?
Suppose it was easy start with GAE, but simple MySQL would serve for cocoslive much better than GAE if you ask me. Score server should be pretty easy to implement with MySQL and without all the troubles you have right now. You could query/sort it in almost every imaginable way.
Btw, I am amazed at how much work, time and everything you invest in cocos2d and cocoslive. I don't know how much do you earn from it but I hope you and other main developers will become millionaires from this at the end :)
Posted 2 years ago # -
thanks for the suggestion.
In theory, GAE (or any other bigtable) should scale much easier than MySQL (or than any other relational DB)But in practice... mmmm...
This is just a guess, but I think GAE has a limitation of maximum queries per second... I can't remember that number now, but I think that's the only logical explanation, otherwise I don't understand why at night cocoslive is very slow, but and during the day it is pretty fast.
Posted 2 years ago # -
I understand your point about GAE and its capabilities. But frankly, high score server is very very simple application. I can't imagine better app to be served by MySQL than this, just one table with many fields. Maybe you don't need all this power of GAE for such an app. Simple solution but without limitations may serve better...
Anyway you should contact them ASAP and see what's going on. There must be some kind of limit that's reached in peak times.
Posted 2 years ago # -
I just got it there: http://code.google.com/appengine/docs/quotas.html
The maximum per-minute quotas with billing enabled can accommodate around 500 requests per second for many applications, enough to handle a spike in traffic from your site getting mentioned in news stories
But according to them:
the word "Limited" will appear by the appropriate quota on the Quota Details screen in the Admin Console
Do you see any of those warnings?
Posted 2 years ago # -
nope... I don't see any warning... according to the "quota panels" everything is normal...
argh....Posted 2 years ago # -
Ok, then nothing until they respond to you. Please keep us posted about this when you get some answer from them.
500 requests per second looks pretty enough. But what they count as request? For example, when you request 20 scores through cocoslive client, is that 1 request, 20 requests or maybe 20 x number of fields requests?
Posted 2 years ago # -
I haven't actually used GAE (mainly stuck to Amazon EC2 and VPS services like Slicehost so far). But I looked into it a while ago and vaguely remember something about app initialization on GAE being very slow. Since GAE dynamically starts and stops app instances to accommodate load, you might be running into this. Are you actually seeing a lot of http requests? Perhaps the issue is that during off peak times, http requests are likely to trigger app initialization on GAE.
Posted 2 years ago # -
good news.
I did some adjustments during the peak hour, and the server seems to responding OK.I'm using a new Geo IP service. it seems that GAE had some probles with urlfetch, and now it is using 1 urlfetch instead of 2
Uses memcache with .add and not .set (???)
And also I sent an email to GAE support (without answer).
For the moment it is running OK. I hope it continues like this.
Posted 2 years ago # -
It's very fast now. It's about the same time I tested it yesterday...
Thanx :)
Posted 2 years ago # -
Running great - thanks Riq!
Posted 2 years ago #
Reply
You must log in to post.