Site Loading Incredibly Slow
- Chaqa
- Bronze Donator
- Posts: 14167
- Joined: Fri Sep 29, 2017 7:33 pm
- Location: Allentown, PA, USA
- Contact:
Site Loading Incredibly Slow
For the past few days the site has been loading painfully slowly. I know at least a few others have noted it.
-
- Posts: 873
- Joined: Wed Jan 31, 2024 3:45 pm
- Contact:
Re: Site Loading Incredibly Slow
This thread hasn't loaded yet, but I stg if it mentions how slow Webdip has been loading in the last few days...
- dargorygel
- Site Moderator
- Posts: 6682
- Joined: Mon Dec 18, 2017 1:55 pm
- Location: Over the rainbow
- Contact:
Re: Site Loading Incredibly Slow
I didn't want to be "that guy" to post it in the forums, but totally slow. The AI based games are also taking 4-6 hrs to process even a retreat. I think there must be some server maintenance or some such going on...
-
- Posts: 873
- Joined: Wed Jan 31, 2024 3:45 pm
- Contact:
Re: Site Loading Incredibly Slow
Hi all, Yep I had heard that bot games were running slow, haven't had time to look into it but am going to do so now. First thing I notice is that the server load is very high but not sure exactly why at the moment, the database process is doing a lot of work just not sure what it's working on atm. Will keep you posted and do some maintenance while Im here
Re: Site Loading Incredibly Slow
Whenever I looked at the running queries it was running several queries counting the number of liked posts users have.. Looks like every time you open a forum thread, for each post in the thread, the system was looking for ever other post made by that user and counting the number of times that post was liked. A little wasteful..
Looking into it though we've also got tens of thousands of guest sessions open in the forum.. They're doing things like looking at the members list starting with different letters, opening multiple report post screens, searching for posts, downloading files..
Looking into it further .. I think we're being DDoSed: The majority of our user base is in the US, and in the last 7 days we've had ~60k forum search requests from the US.. but 1,810k forum search requests from Hong Kong.. A search request is a typical sort of request intended to use resources on the server since anyone can do a search but it requires the server to do a lot of work, so this isn't about spamming it's purely about using server resources.
You can also see that thoughout a whole day on the 6th the request rate was static, which you'll never see from real users who sleep, and how the request rate suddenly dropped for a while then resumed, indicating the requests are coming from a single source.
To be honest I'm surprised the server was usable at all and didn't totally grind to a halt.. Millions of requests to search, view user profiles, submit reports, view posts, and for each request for each post there was a lookup for the posting user of all their other posts to count the number of likes..
I wonder if anyone has a grudge against the site or has some reason to want to cause trouble.. hmmm..
Anyway I'm going to cache user like count against the user record, so that the count will be delayed but will only need to be counted each day, and more importantly block everything in the forum except the index, view forum and view post pages for users without an account.
It is a concern though as .. I hesitate to say this but .. if whoever is doing this knew what they were doing they would target play.webdiplomacy.net and create anonymous bot games instead.
I'll also add something to limit anonymous bot games by IP, and aggressively delete anonymous bot games that aren't being actively played.
What a pain having to use very limited time to work on webDip on nonsense like this..
Looking into it though we've also got tens of thousands of guest sessions open in the forum.. They're doing things like looking at the members list starting with different letters, opening multiple report post screens, searching for posts, downloading files..
Looking into it further .. I think we're being DDoSed: The majority of our user base is in the US, and in the last 7 days we've had ~60k forum search requests from the US.. but 1,810k forum search requests from Hong Kong.. A search request is a typical sort of request intended to use resources on the server since anyone can do a search but it requires the server to do a lot of work, so this isn't about spamming it's purely about using server resources.
You can also see that thoughout a whole day on the 6th the request rate was static, which you'll never see from real users who sleep, and how the request rate suddenly dropped for a while then resumed, indicating the requests are coming from a single source.
To be honest I'm surprised the server was usable at all and didn't totally grind to a halt.. Millions of requests to search, view user profiles, submit reports, view posts, and for each request for each post there was a lookup for the posting user of all their other posts to count the number of likes..
I wonder if anyone has a grudge against the site or has some reason to want to cause trouble.. hmmm..
Anyway I'm going to cache user like count against the user record, so that the count will be delayed but will only need to be counted each day, and more importantly block everything in the forum except the index, view forum and view post pages for users without an account.
It is a concern though as .. I hesitate to say this but .. if whoever is doing this knew what they were doing they would target play.webdiplomacy.net and create anonymous bot games instead.
I'll also add something to limit anonymous bot games by IP, and aggressively delete anonymous bot games that aren't being actively played.
What a pain having to use very limited time to work on webDip on nonsense like this..
Re: Site Loading Incredibly Slow
Looks like they were also targeting play.webdiplomacy.net as there were thousands of unattended games.
Anyway I've made changes, let's see how it goes.
- Unattended bot games are culled more frequently,
- per-user anonymous game limits reduced,
- only basic functions are allowed for forum users that aren't logged on, and
- anonymous users don't see like info.
If you notice any issues let us know.
Anyway I've made changes, let's see how it goes.
- Unattended bot games are culled more frequently,
- per-user anonymous game limits reduced,
- only basic functions are allowed for forum users that aren't logged on, and
- anonymous users don't see like info.
If you notice any issues let us know.
-
- Posts: 443
- Joined: Fri Nov 03, 2023 12:54 pm
- Contact:
Re: Site Loading Incredibly Slow
Three out of 3 AI bot games turned out "Finished" almost moments after starting.
Re: Site Loading Incredibly Slow
Hmm, I can't reproduce this but I can see how it may be possible if you logged on a long time ago and the last session end time hasn't updated. I've made the unattended game check check whether the user is currently logged in, let me know if you still have issues
-
- Posts: 206
- Joined: Mon Sep 12, 2022 10:20 pm
- Contact:
Re: Site Loading Incredibly Slow
I think Hong Kong is controlled by China now, and a DDoS attack could be a crude attempt to censor the site by blocking requests. Of course I'm just guessing, and there's a very narrow possibility that the forum has become viral in Hong Kong...
¶ Keep thy heart with all diligence; for out of it are the issues of life.
-- Proverbs of Solomon, chapter 4, verse 23
-- Proverbs of Solomon, chapter 4, verse 23
- Jamiet99uk
- Posts: 32404
- Joined: Sat Dec 30, 2017 11:42 pm
- Location: Durham, UK
- Contact:
Re: Site Loading Incredibly Slow
I could mention someone, but you can't handle the truth...
The only person you're truly competing against, Wesley, is yourself.
- Chaqa
- Bronze Donator
- Posts: 14167
- Joined: Fri Sep 29, 2017 7:33 pm
- Location: Allentown, PA, USA
- Contact:
Re: Site Loading Incredibly Slow
What about people who have logged in in the past ~48 hours?kestasjk wrote: ↑Mon May 13, 2024 1:45 amHmm, I can't reproduce this but I can see how it may be possible if you logged on a long time ago and the last session end time hasn't updated. I've made the unattended game check check whether the user is currently logged in, let me know if you still have issues
Re: Site Loading Incredibly Slow
@kestajk:
In reply to your question I get only:
No-press bot game limit 600/600 reached: Apologies, the no-press bot game limit has been reached. To conserve server resources we have to limit the number of anonymous games. Please try again later.
In reply to your question I get only:
No-press bot game limit 600/600 reached: Apologies, the no-press bot game limit has been reached. To conserve server resources we have to limit the number of anonymous games. Please try again later.
Re: Site Loading Incredibly Slow
Hmm.. I'm not getting it, I'm in two bot games at the moment one which I just started.
Btw I'm playing in a Cicero game atm.. damn those bots are so neat, they always blow me away how smart they are
Btw I'm playing in a Cicero game atm.. damn those bots are so neat, they always blow me away how smart they are
Re: Site Loading Incredibly Slow
I'm sure it wouldn't be a big surprise.. I don't know how I can accumulate enemies running a free to play DIplomacy website but somehow I pull it offJamiet99uk wrote: ↑Mon May 13, 2024 2:06 pmI could mention someone, but you can't handle the truth...
Yeah I expect the government has bigger things to worry about, though my partner is from HK and apparently they can be very petty.. I'm really not sure what's behind this, but I enjoy writing code for a Diplomacy website in my free time and even I think this person needs to get a life..learnedSloth wrote: ↑Mon May 13, 2024 1:58 pmI think Hong Kong is controlled by China now, and a DDoS attack could be a crude attempt to censor the site by blocking requests. Of course I'm just guessing, and there's a very narrow possibility that the forum has become viral in Hong Kong...
Re: Site Loading Incredibly Slow
Hmm, not sure what you mean it previously cancelled games where an account's last session ended over 48 hours ago, but after hearing that games were closing instantly I changed it to the last session ended over 48 hours ago and they're not logged on at the moment. I think that'll do the trick but let's seeChaqa wrote: ↑Mon May 13, 2024 2:26 pmWhat about people who have logged in in the past ~48 hours?kestasjk wrote: ↑Mon May 13, 2024 1:45 amHmm, I can't reproduce this but I can see how it may be possible if you logged on a long time ago and the last session end time hasn't updated. I've made the unattended game check check whether the user is currently logged in, let me know if you still have issues
Re: Site Loading Incredibly Slow
My bot game stopped and didn’t refund me my so now I have 90.
I’m so bad I can’t even have the minimum amount of points. Do I get a record for lowest points?
I’m so bad I can’t even have the minimum amount of points. Do I get a record for lowest points?
Free Guess: Garfield
Who is online
Users browsing this forum: No registered users