EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #06329
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Bot net Attacks
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Bot net Attacks
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Tue, 7 Mar 2017 13:55:50 +0000
Hi Jens, We had a similar issue a while ago - which was being caused by on-the-fly (or request-driven) view generation. For author views, where some authors do not have a unique ID, this is computationally intensive, and it is better addressed by making
sure you are in control of the page generation. If the pages have already been generated, normal bot activity should not be an issue. We addressed the issue by: 1)
Changing the max_age of the person view (and in the end, all views) so regeneration is never triggered by a request 2)
Changing the generate_views to be able to accept multiple viewids 3)
Changing the cronjob to generate all views *except* the person one daily, and the person one once a week The details are here: https://github.com/eprints/eprints/pull/417 Our 'subject' and 'year' views have
max_menu_age => 10*24*60*60, #10 days max_list_age => 10*24*60*60, #10 days But our 'people' view has: max_menu_age => 20*24*60*60, #20 days max_list_age => 20*24*60*60, #20 days Our crontab looks a bit like this (with the above additions in place): # # # Generate subject and year views Mon-Fri 10 3 * * 1-5 <eprints_root>/bin/generate_views <archiveid> --view year --view subject # # # Generate people view on Sunday 10 5 * * 0 <eprints_root>/bin/generate_views <archiveid> --view people It might be worth checking to see if your person views are being generated on-the-fly - look at the modification time of the browse
pages - compare them to the bot activity. If they are being re-generated by a request the above will help. If not… more thinking to do! Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of jens.vieler@id.uzh.ch Dear List
|
- References:
- [EP-tech] Easier way to do this in a citation?
- From: Andrew Collington <a.p.collington@sussex.ac.uk>
- Re: [EP-tech] Easier way to do this in a citation?
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Easier way to do this in a citation?
- From: Andrew Collington <a.p.collington@sussex.ac.uk>
- [EP-tech] Bot net Attacks
- From: jens.vieler@id.uzh.ch
- [EP-tech] Easier way to do this in a citation?
- Prev by Date: [EP-tech] Antwort: Bot net Attacks
- Next by Date: [EP-tech] Antwort: Re: Bot net Attacks
- Previous by thread: [EP-tech] Antwort: Bot net Attacks
- Next by thread: [EP-tech] Antwort: Re: Bot net Attacks
- Index(es):