Omnimaga

Omnimaga => Discontinued => Our Projects => OmnomIRC Development => Topic started by: Netham45 on May 06, 2011, 06:01:24 pm

Title: OmnomIRC temporarily disabled
Post by: Netham45 on May 06, 2011, 06:01:24 pm
OmnomIRC is temporarily disabled until we can track down the source of the site slowness.

iOmnom and iOmnom_Mini are unaffected.
Title: Re: OmnomIRC temporarily disabled
Post by: DJ Omnimaga on May 06, 2011, 06:10:50 pm
Netham, I am afraid that OmnomIRC is effectively the source of the slowness. When the entire site domain runs slow like this, but script execution time is not very high and 51.aspirationhosting is up, then it's because our account is throttled for too many resources usage.

One concern I have is that this month we had 6.5 million of hits. Before we had about 3.5 and the highest we had was 5 millions I think. I can only think of the two following scenarios:

-Either the recent OmnomIRC updates introduced bugs causing an overload of resources or the new OmnomIRC is simply too demanding on the server.
-Either we get too much traffic to sustain OmnomIRC anymore on a shared hosting.

In the latter case, this would either mean that you have to host the entire OmnomIRC elsewhere or we say farewell to it.

That said, something needs to be done, because this is starting to affect our activity a whole lot.

Title: Re: OmnomIRC temporarily disabled
Post by: Netham45 on May 06, 2011, 06:11:45 pm
I think I just came up with a way where I can take almost all of OmnomIRC off of the server.

Do we have unlimited subdomains?
Title: Re: OmnomIRC temporarily disabled
Post by: Eeems on May 06, 2011, 06:15:09 pm
JSONP would probably help with this probably :)
Title: Re: OmnomIRC temporarily disabled
Post by: DJ Omnimaga on May 06, 2011, 06:15:18 pm
I think so, although the domain is hosted on 1and1 and managed on Aspiration, so it could be 100.

But keep this in mind: OmnomIRC alone was 12 millions of hits last month. O.O

By the way how much bandwidth did we use last month?

EDIT: Eeems what is JSONP? ???
Title: Re: OmnomIRC temporarily disabled
Post by: Netham45 on May 06, 2011, 06:17:06 pm
JSONP wouldn't be any good, it's incompatible with AJAX.

Yup, I got everything I need.

I'm going to make a subdomain on Omnimaga.org, omnom.omnimaga.org. I can then set the document.domain to omnimaga.org for OmnomIRC stuffs, then I can get around the same-origin policy and remove the bounces(logbounce.php, userbounce.php, messagebounce.php), which are the main 3 that are generating traffic.


Edit: JSONP is just a way of moving data.
Title: Re: OmnomIRC temporarily disabled
Post by: Eeems on May 06, 2011, 06:19:57 pm
JSONP wouldn't be any good, it's incompatible with AJAX.

Yup, I got everything I need.

I'm going to make a subdomain on Omnimaga.org, omnom.omnimaga.org. I can then set the document.domain to omnimaga.org for OmnomIRC stuffs, then I can get around the same-origin policy and remove the bounces(logbounce.php, userbounce.php, messagebounce.php), which are the main 3 that are generating traffic.


Edit: JSONP is just a way of moving data.
it would require a little changing to your end and it would work fine for me. iOmnom can handle JSONP fine with a tiny bit of modification. JSONP also allows you to not have to follow the same-origin policy and it would work pretty great.
Title: Re: OmnomIRC temporarily disabled
Post by: Netham45 on May 06, 2011, 06:20:42 pm
it's also incompatible with AJAX, has a considerably higher client-side load requirement, and constantly refreshes the pages.
Title: Re: OmnomIRC temporarily disabled
Post by: Eeems on May 06, 2011, 06:25:25 pm
it's also incompatible with AJAX, has a considerably higher client-side load requirement, and constantly refreshes the pages.
I was pretty sure they were pretty close to the same thing. I also haven't noticed the higher client load requirement with json/jsonp when I used it.
Title: Re: OmnomIRC temporarily disabled
Post by: DJ Omnimaga on May 06, 2011, 07:28:32 pm
So all the files would be hosted on your IP, but the domain name would be used?
Title: Re: OmnomIRC temporarily disabled
Post by: Netham45 on May 06, 2011, 07:29:20 pm
Almost all of them. I still need the two files to get the userlist.
Title: Re: OmnomIRC temporarily disabled
Post by: DJ Omnimaga on May 06, 2011, 07:33:46 pm
Ah ok

I definitively think the php files in question received too many requests and it caused overload on the server. I hope it doesn't cause problems on yours, though.
Title: Re: OmnomIRC temporarily disabled
Post by: Netham45 on May 06, 2011, 07:35:13 pm
It won't be putting much, if any, extra strain on my server.
Title: Re: OmnomIRC temporarily disabled
Post by: Eeems on May 06, 2011, 07:36:13 pm
It won't be putting much, if any, extra strain on my server.
are iOmnom/iOmnom_mini getting moved over as well?
Title: Re: OmnomIRC temporarily disabled
Post by: Netham45 on May 06, 2011, 07:41:00 pm
For now, no, though you may need to update it to use view_omnom. I'm removing logbounce.

Omnom is re-enabled now too.

OmnomIRC's presence on Omnimaga.org has been reduced to two userlist files. Shouldn't put any load on Omnimaga anymore.
Title: Re: OmnomIRC temporarily disabled
Post by: DJ Omnimaga on May 06, 2011, 11:08:56 pm
Couldn't OmnomMini and iOmnom cause slow loading too if they got popular?
Title: Re: OmnomIRC temporarily disabled
Post by: Netham45 on May 06, 2011, 11:18:31 pm
ima move iOmnom Mini to my server some tme, but I don't think it is a big issuee right now.