2009年12月10日星期四

[PerlChina] Re: TheSchwartz tips

On 2009-12-11 13:12, Fayland Lam wrote:
> read it if you're interested.
>
> well, now we have 4 theschwartz worker script, 3 run at z56-1 and the
> other one runs at on static.zpcdn server.
>
> tip 1: I changed some TheSchwartz code, and I want to make it live.
> svn up at z56-1 then run
> [root@z56-1 ~]# perl /var/www/Zorpia/Misc/cron/TheSchwartz_restart.pl
> it will send INTTERM to the script and no data will lost since we
> treat TERM in the script.
>
> tip 2: the log files
> basically BatchSendMessage log is at /var/log/theschwartz.msg.log
> and Signup is at /var/log/theschwartz.signup.log
> others are at /var/log/theschwartz.log
>
> please use $job->debug to save some debug info into the log.


tip 3: check queues and errors
we have a tools under trunk, you can use
[fayland@alpha ~]$ perl Misc/tools/theschwartz.pl
to check the queues.
and
[fayland@alpha ~]$ perl Misc/tools/theschwartz.pl errors
Fri Dec 4 10:04:35 2009 [1463267]: DBIx::Class::ResultSet::create():
Error executing 'INSERT INTO conversation (conv_id, folder, msg_count,
msgs_from_user, msgs_to_user, new_for_user, set_id, user_id) VALUES (?,
?, ?, ?, ?, ?, ?, ?)': Duplicate entry '112885606' for key 1 at
/var/www/Zorpi
Thu Dec 10 16:13:07 2009 [1466871]: DBIx::Class::ResultSet::create():
Error executing 'INSERT INTO conversation (conv_id, folder, msg_count,
msgs_from_user, msgs_to_user, new_for_user, set_id, user_id) VALUES (?,
?, ?, ?, ?, ?, ?, ?)': Duplicate entry '113511574' for key 1 at
/var/www/Zorpi
Thu Dec 10 20:42:51 2009 [1466912]: Can't locate object method
"dbic_data" via package "Zorpia::Db::Geo::user" at
/var/www/Zorpia/Misc/cron/../../lib/Zorpia/TheSchwartz/Signup.pm line 45.
Thu Dec 10 20:45:47 2009 [1466914]: Can't locate object method
"geo_name" via package "Zorpia::Db::Geo::user" at
/var/www/Zorpia/Misc/cron/../../lib/Zorpia/ResultSet/user_addressbook.pm
line 51.
Thu Dec 10 20:46:21 2009 [1466915]: Can't locate object method
"geo_name" via package "Zorpia::Db::Geo::user" at
/var/www/Zorpia/Misc/cron/../../lib/Zorpia/ResultSet/user_addressbook.pm
line 51.

to check errors.

Thanks.

>
> let me know if you have any issue.
>
> Thanks.
>


--
Fayland Lam // http://www.fayland.org/

--

您收到此邮件是因为您订阅了 Google 网上论坛的"PerlChina Mongers 讨论组"论坛。
要向此网上论坛发帖,请发送电子邮件至 perlchina@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 perlchina+unsubscribe@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。

没有评论: