今天下午出现的状况,查看 log 发现是 mongodb 不能正常服务。系统负荷偏高,unicorn.log 的进程也是进进出出。
tailf log/unicorn.log
I, [2013-07-03T23:56:13.076309 #24580] INFO -- : worker=16 spawned pid=24580
I, [2013-07-03T23:56:13.085923 #24580] INFO -- : worker=16 ready
E, [2013-07-03T23:56:15.066372 #20700] ERROR -- : worker=12 PID:24421 timeout (31s > 30s), killing
E, [2013-07-03T23:56:15.079335 #20700] ERROR -- : reaped #<Process::Status: pid 24421 SIGKILL (signal 9)> worker=12
I, [2013-07-03T23:56:15.095747 #24590] INFO -- : worker=12 spawned pid=24590
I, [2013-07-03T23:56:15.104987 #24590] INFO -- : worker=12 ready
E, [2013-07-03T23:56:17.085413 #20700] ERROR -- : worker=1 PID:24449 timeout (31s > 30s), killing
E, [2013-07-03T23:56:17.094906 #20700] ERROR -- : reaped #<Process::Status: pid 24449 SIGKILL (signal 9)> worker=1
I, [2013-07-03T23:56:17.111842 #24598] INFO -- : worker=1 spawned pid=24598
I, [2013-07-03T23:56:17.122091 #24598] INFO -- : worker=1 ready
E, [2013-07-03T23:56:20.102053 #20700] ERROR -- : worker=6 PID:24455 timeout (31s > 30s), killing
E, [2013-07-03T23:56:20.112134 #20700] ERROR -- : reaped #<Process::Status: pid 24455 SIGKILL (signal 9)> worker=6
I, [2013-07-03T23:56:20.129459 #24610] INFO -- : worker=6 spawned pid=24610
I, [2013-07-03T23:56:20.138258 #24610] INFO -- : worker=6 ready
Thu Jul 4 03:57:26 [conn10126] query krypton.topics query: { $query: { deleted_at: null, state: "publish", tags: { $all: [ "p2p租赁" ] }, node_id: { $nin: [ 17 ] } }, $orderby: { created_at: -1 } } ntoreturn:15 ntoskip:60 nscanned:17024 reslen:20 151ms
Thu Jul 4 03:57:26 [conn10126] query krypton.topics query: { $query: { deleted_at: null, state: "publish", tags: { $all: [ "p2p租赁" ] }, node_id: { $nin: [ 17 ] } }, $orderby: { created_at: -1 } } ntoreturn:15 ntoskip:60 nscanned:17024 reslen:20 124ms
Thu Jul 4 03:57:33 [conn10013] query krypton.topics query: { $query: { deleted_at: null, state: "publish", tags: { $in: [ "着迷网", "zhaomiwang" ] }, node_id: { $nin: [ 17 ] } }, $orderby: { created_at: -1 } } ntoreturn:15 nscanned:17024 nreturned:2 reslen:3234 122ms
Thu Jul 4 03:57:35 [conn10147] query krypton.topics query: { $query: { deleted_at: null, state: "publish", tags: { $all: [ "滤镜" ] }, node_id: { $nin: [ 17 ] } }, $orderby: { created_at: -1 } } ntoreturn:15 ntoskip:45 nscanned:17024 reslen:20 126ms
Thu Jul 4 03:57:35 [conn10147] query krypton.topics query: { $query: { deleted_at: null, state: "publish", tags: { $all: [ "滤镜" ] }, node_id: { $nin: [ 17 ] } }, $orderby: { created_at: -1 } } ntoreturn:15 ntoskip:45 nscanned:17024 reslen:20 135ms