Recent

Author Topic: Forum slow for others as well ?  (Read 1039 times)

440bx

  • Hero Member
  • *****
  • Posts: 5294
Forum slow for others as well ?
« on: April 17, 2025, 09:23:07 am »
Hello,

The forum has been quite slow for me the past 4 hours or so, even getting gateway timeouts.

Anyone else experiencing this ?
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Zvoni

  • Hero Member
  • *****
  • Posts: 2964
Re: Forum slow for others as well ?
« Reply #1 on: April 17, 2025, 10:45:38 am »
This morning i had a 504 TimeOut.
But currently it works again....
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

440bx

  • Hero Member
  • *****
  • Posts: 5294
Re: Forum slow for others as well ?
« Reply #2 on: April 17, 2025, 11:03:45 am »
Yes, it seems to be working fine now.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

cdbc

  • Hero Member
  • *****
  • Posts: 2137
    • http://www.cdbc.dk
Re: Forum slow for others as well ?
« Reply #3 on: April 17, 2025, 11:15:21 am »
Hi
YES!
It's been like that for a couple of days now...  :(
It started with timeouts ca. 12.00 .. 15.00 GMT+1, then good again
Today it started around 8.00 GMT+1 .. till about now, seems fine again...
 %) :P ;D
@Marc: We need your strong Voodoo  ...again  ;)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 3.6 up until Jan 2024 from then on it's both above &: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 4.99

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1506
    • Lebeau Software
Re: Forum slow for others as well ?
« Reply #4 on: April 17, 2025, 08:07:38 pm »
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

440bx

  • Hero Member
  • *****
  • Posts: 5294
Re: Forum slow for others as well ?
« Reply #5 on: April 17, 2025, 09:34:19 pm »
Right now, it's working fine. But performance has been up and down for the past couple of months at least:
Yes, even in the same day, the performance seems to vary significantly. 

Earlier today, performance was really good but, just a minute ago, I got a gateway timeout.  It's quite unpredictable.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

TRon

  • Hero Member
  • *****
  • Posts: 4369
Re: Forum slow for others as well ?
« Reply #6 on: April 17, 2025, 11:26:10 pm »
Same issues here.

It comes and goes. At my age I'm getting pretty slow with typing these days but I am still able to outpace the login and posting speed (or the speed of posting alone). At least it doesn't time out as it used to.
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 16945
  • Ceterum censeo Trump esse delendam
Re: Forum slow for others as well ?
« Reply #7 on: April 18, 2025, 09:35:49 am »
It is a recurring issue but not due to the site manager.
It is more like: we need better hardware, but that costs money and that is not really an option (yet).
Most bots are evil, but not all of them.
There was even a request to index the forum.
The result is that many of the popular AI sites produce better Freepascal code and that is noticable...So it is annoying but also gives us better tooling.
I usually let these engines fight for what code I should use... :o
Don't worry, 99% I post is by me, myself alone and otherwise I contribute to the source I used.
My observation is that the AI models adapt when you post back your own corrected source code.. e.g. if you now ask for a freepascal example they often do a {$mode objfpc}...  ;D Post back your corrected sourcecode!
Fighting with those AI engines is great fun for the time being!
« Last Edit: April 18, 2025, 10:23:57 am by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5967
  • Compiler Developer
Re: Forum slow for others as well ?
« Reply #8 on: April 18, 2025, 02:58:59 pm »
One could probably deploy a system like Anubis which invokes some proof-of-work and thus makes things harder for AI scrapers. Sites like git.kernel.org employ it because scrapers were repeatedly scraping endpoints like snapshot or blame which are very expensive for the server side.
Disadvantage would be that it requires enabled JavaScript though specific browsers could be excluded based on their user agents. The developers are also trying to convert their proof-of-work code from pure JS to wasm which would prohibit big endian systems cause for those there are no wasm engines available as far as I know... 😕

dbannon

  • Hero Member
  • *****
  • Posts: 3348
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Forum slow for others as well ?
« Reply #9 on: April 19, 2025, 02:29:56 am »
But its a Catch-22 situation, we want the forum indexed because that is how end users get good information about FPC/Lazarus. But we need the forum usable for our own purpose.

Would a solution be providing a second, crawler accessible 'copy' of the forum, maybe replicated daily, rsync like to minimize load ?  The crawlers don't seem to mind how slow their target is.

And protect, as best we can, the 'real' forum, maybe redirecting requests identified as crawlers to the relatively static one ?

That seems a better approach that the 'trending' one of feeding bad data to a robot.txt ignoring crawler, we do actually want these crawlers to get good data.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

440bx

  • Hero Member
  • *****
  • Posts: 5294
Re: Forum slow for others as well ?
« Reply #10 on: April 19, 2025, 03:04:21 am »
I'm not sure but I think there is a way of limiting the number of requests per IP.  If an IP is detected to make more than 1 request per second, it could be limited to getting no more than 1 request per second (or every 2 or 3 seconds... crawlers don't have a life to take care of... they can wait.)

That way, any crawler that's hitting the server gets put in its place.
 
A human user would be hard pressed to make more than 1 request per second, therefore there is little chance that could negatively affect forum members and, even if it did, one second isn't that much time to wait to get a page.

Just for the record, Google does that.  When it detects a program using its search engine, it doesn't make the program wait, it simply bans the IP for 24 hours (the first time, I don't know what it does the second time, I didn't want to find out ;) )
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 16945
  • Ceterum censeo Trump esse delendam
Re: Forum slow for others as well ?
« Reply #11 on: April 19, 2025, 11:25:43 am »
Marc already uses fail2ban - alongside other tools - as far as I know.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5967
  • Compiler Developer
Re: Forum slow for others as well ?
« Reply #12 on: April 20, 2025, 11:58:48 am »
But its a Catch-22 situation, we want the forum indexed because that is how end users get good information about FPC/Lazarus. But we need the forum usable for our own purpose.

Proper behaving search engine crawlers are not a problem (and for example in Anubis they are excluded by default). The problem is AI scrapers that burden the servers of open source software and drive up both their server usage and their traffic usage for improving their AI models without even remotely respecting things like robots.txt.

A human user would be hard pressed to make more than 1 request per second, therefore there is little chance that could negatively affect forum members and, even if it did, one second isn't that much time to wait to get a page.

Well, I tend to open all the "most recently" posts in new tabs and depending on my browser's usage it might indeed do more than one request a second then 😅

 

TinyPortal © 2005-2018