On 27/06/12 07:34, Gabor Szabo wrote:
Yesterday finally I moved trac to the new server and enabled it.
It quickly started to show huge load.
With the help of Phillip Pollard we tracked it down to running
out of memory and filling up the swap disk due to many hits
on /trac by search engines.
We have not found a "real" solution as I was too tired and had to
go to sleep. Configuring Apache to Deny access to the /trac
directory for the search engines I noticed proved to eliminate
the problem.
Most of them are not a great loss as they hardly brought in
any visitors but I'd like to enable at least Google at some point.
I set up robots.txt so even Google will only hit the important pages
but I am not sure if I can tell Google how to re-read robots.txt
before it goes on?
I even had to set Deny on an individual IP address where an
unrestricted wget -r was trying to fetch the whole site.
That was surprising, but I have the IP address.
There are few more things I need to set up (e.g. cron jobs) but if
you notice something is not working or is misbehaving, please let
me know.
Sorry that it took so long.
regards
Gabor
start -> http://irclog.perlgeek.de/padre/2012-06-26#i_5759514
trac update -> http://irclog.perlgeek.de/padre/2012-06-26#i_5759926
1, install as per -> http://trac.edgewall.org/wiki/TracInstall
Python, setuptools, Genshi, PySqlite, Pygments as per above (apt)
followed by
easy_install Babel==0.9.5
easy_install Trac
2, Ran tracd against Padre trac image
tweaked trac.ini to run
works ok
3, install mod_wsgi (apt)
http://trac.edgewall.org/wiki/TracModWSGI
4, tested using apache info/status and top
max load on server 1.2 initially dropping to <0.6
apache cpu max 1%
Intel(R) Pentium(R) M processor 1.86GHz
1 Gb Ram
but this was not run against Padre svn, which I would think would make a
difference on initial load, doing a syc update.
Suggest, you look at using trac -> wsgi <- apache
also try doing it against a clean trac test project in first case
also diff latest trac.ini against exsisting Padre trac.ini
Then switch Padre trac to use wsgi.
as for running as current Padre with mod_python, I did not bother. As of
16^th June 2010, the mod_python project is officially dead.
I also noted that current trac is 0.12.3 where as latest Padre is using
0.12.2?
ToDo look at converting Padre trac DB from sqlite to mysql
regards
bowtie
ps, why enable Google, should it not be DuckDuckGo, nice and clean, plus
they sponsor perl events
see:
http://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=OJ:L:2009:337:0011:0036:En:PDF
http://keepingbrandshuman.com/2012/03/22/advice-on-the-eu-cookie-directive/
http://www.thinkagency.co.uk/eu-cookie-directive-aka-cookie-law/
_______________________________________________
Padre-dev mailing list
Padre-dev@perlide.org
http://mail.perlide.org/mailman/listinfo/padre-dev