Closed GoogleCodeExporter closed 9 years ago
Original comment by sibprogrammer
on 16 Nov 2010 at 8:28
Watchdog and panel itself uses connection defined in database.yml config.
Theoretically its possible to switch to MySQL by modifying configs, loading
schema and default data. Probably I provide instruction soon how to do it
manually.
Original comment by sibprogrammer
on 16 Nov 2010 at 8:35
I gave it a go yesterday and there was a problem with watchdog (@sql.execute
was not working with prepaired statements) and /admin/event-log/list was giving
an error: Marshal data too short. Everything else was working fine, when I've
ported sqlite database to mysql.
Original comment by fornex....@gmail.com
on 16 Nov 2010 at 8:41
This issue was updated by revision r771.
MySQL support for watchdog.
Original comment by sibprogrammer
on 17 Nov 2010 at 5:41
This issue was updated by revision r772.
Proper params binding for MySQL.
Original comment by sibprogrammer
on 17 Nov 2010 at 6:34
This issue was updated by revision r773.
Fix problem with data serialization in event log.
Original comment by sibprogrammer
on 18 Nov 2010 at 3:39
If you decide to update from svn, don't forget to delete old records using:
DELETE FROM event_logs;
Original comment by sibprogrammer
on 18 Nov 2010 at 3:40
thanks a lot for such a rapid fix for mysql. Everything works fine, except that
watchdog eats 600mb of memory:
3324 root 18 0 687m 608m 3748 S 0.0 59.4 4:10.02 ruby
is this normal behaviour?
Original comment by fornex....@gmail.com
on 18 Nov 2010 at 4:51
No, it's very strange. On my test machine its size is 33 Mb after 2 hours of
work.
Original comment by sibprogrammer
on 18 Nov 2010 at 4:58
once in a minute or so, it is also taking 99% of CPU. Watchdog reserves this
amount of memory at the start. We have at the moment 3 slaves with 60 virtual
servers in total.
Original comment by fornex....@gmail.com
on 18 Nov 2010 at 5:09
Original comment by sibprogrammer
on 19 Nov 2010 at 5:50
Article about panel database and how to switch to MySQL was create. See
http://code.google.com/p/ovz-web-panel/wiki/Database
Original comment by sibprogrammer
on 20 Nov 2010 at 4:08
Original issue reported on code.google.com by
fornex....@gmail.com
on 15 Nov 2010 at 8:43