I would prefer to block this at the web server level. However, I have now added a maximum app container lifetime through the middleware. The previous system supposedly only removed containers of users that left the site. The new system also removes actively used containers. Let us see how well that works. If that is insufficient, I will set up the mentioned cron job.

 

Following tonight’s update, the app should work again.

 

Christian Düben
Doctoral Candidate
Chair of Macroeconomics
Hamburg University
Germany
christian.dueben@uni-hamburg.de
https://www.christian-dueben.com

 

From: CollEc-run <collec-run-bounces@lists.openlib.org> On Behalf Of Lars Vilhuber
Sent: Sonntag, 14. Mai 2023 19:28
To: Christian Zimmermann <chuichuiche@gmail.com>; Thomas Krichel <krichel@openlib.org>
Cc: CollEc Run <collec-run@lists.openlib.org>
Subject: Re: [CollEc] PetalBot

 

User-agent: PetalBot
Disallow: /

 

-- 

Lars Vilhuber, Economist

Cornell University

p: +1.607-330-5743

https://calendly.com/larsvilhuber

My working day may not be your working day. Please respond during your working day.


From: CollEc-run <collec-run-bounces@lists.openlib.org> on behalf of Christian Zimmermann <chuichuiche@gmail.com>
Sent: Sunday, May 14, 2023 11:40
To: Thomas Krichel <krichel@openlib.org>
Cc: CollEc Run <collec-run@lists.openlib.org>
Subject: Re: [CollEc] PetalBot

 

Block it before it even opens sessions.

 

Christian Zimmermann

 

 

On Sun, May 14, 2023 at 9:26 AM Thomas Krichel <krichel@openlib.org> wrote:

  Düben, Christian writes

> Instead of querying CollEc in one user session, Petalbot opens lots
> of different user sessions, each coming with its own Docker
> container.

  It's what you expect from a bot.

> I am now working on upgrading the middleware and adding a cron job
> that removes crashed Docker containers every few minutes. The cron
> job is not an elegant fix, but could stop Helos from crashing due to
> too many containers.

  Thank you!!!

  I am out hiking tomorrow, leaving at 5:13 and back at 14:00 or so,
  in UTC+7.


--
  Written by Thomas Krichel http://openlib.org/home/krichel on his 21163rd day.

_______________________________________________
CollEc-run mailing list
CollEc-run@lists.openlib.org
http://lists.openlib.org/cgi-bin/mailman/listinfo/collec-run