Skip to content

Instantly share code, notes, and snippets.

{
"opid" : 922414160,
"active" : true,
"waitingForLock" : false,
"secs_running" : 6,
"op" : "query",
"ns" : "",
"query" : {
"writebacklisten" : ObjectId("4f9204fb36dcde4b00f48481")
},
{
"opid" : 922414160,
"active" : true,
"waitingForLock" : false,
"secs_running" : 6,
"op" : "query",
"ns" : "",
"query" : {
"writebacklisten" : ObjectId("4f9204fb36dcde4b00f48481")
},
0 1 0 0 0 8 0 242g 486g 9.06g 0 0 0 39|233 38|233 684b 6k 577 simperium1 M 23:19:40
0 0 0 0 0 6 0 242g 486g 9.06g 0 0 0 39|233 38|233 460b 66k 576 simperium1 M 23:19:41
0 0 0 0 0 8 0 242g 486g 9.06g 0 0 0 39|233 38|233 762b 66k 575 simperium1 M 23:19:42
0 0 0 0 0 6 0 242g 486g 9.06g 0 0 0 39|233 38|233 460b 66k 575 simperium1 M 23:19:43
0 0 0 0 0 8 0 242g 486g 9.06g 0 0 0 39|233 38|233 762b 66k 575 simperium1 M 23:19:44
insert query update delete getmore command flushes mapped vsize res faults locked % idx miss % qr|qw ar|aw netIn netOut conn set repl time
0 0 0 0
{
"opid" : 922414160,
"active" : true,
"waitingForLock" : false,
"secs_running" : 6,
"op" : "query",
"ns" : "",
"query" : {
"writebacklisten" : ObjectId("4f9204fb36dcde4b00f48481")
},
2012-05-03_01:32:33.22089 Thu May 3 01:32:33 [conn8] command admin.$cmd command: { writebacklisten: ObjectId('4f9204fb36dcde4b00f48481') } ntoreturn:1 reslen:44 300000ms
2012-05-03_01:32:43.05207 Thu May 3 01:32:43 [rsSync] clone chalk-bump-f49.b.note 1488255
2012-05-03_01:32:48.21775 Thu May 3 01:32:48 [rsSync] 1509195 objects cloned so far from collection chalk-bump-f49.b.note
2012-05-03_01:33:41.14857 Thu May 3 01:33:41 [journal] old journal file will be removed: ./data/journal/j._9
2012-05-03_01:33:43.01237 Thu May 3 01:33:43 [rsSync] clone chalk-bump-f49.b.note 1675647
2012-05-03_01:33:47.25267 Thu May 3 01:33:47 [conn15] command admin.$cmd command: { serverStatus: 1 } ntoreturn:1 reslen:1791 654ms
2012-05-03_01:33:49.14785 Thu May 3 01:33:49 [rsSync] 1693853 objects cloned so far from collection chalk-bump-f49.b.note
2012-05-03_01:33:51.79718 Thu May 3 01:33:51 [conn15] command admin.$cmd command: { serverStatus: 1 } ntoreturn:1 reslen:1791 540ms
2012-05-03_01:33:55.78583 Thu May 3 01:33:55 [Fi
import os
import time
import uuid
import simplejson
import gevent
import gevent.queue
from gevent import monkey; monkey.patch_all()
from bottle import route, run, view, request, response
caches:
user_unread
# tracks total unread count for each user
key
user_id -> count
receipt_users
# tracks which users are at a given read receipt
# used to know when we can stop tracking the count for a receipt
flows:
message new ->
channel_command append new
for user in room:
notify user
notifier.send user channel_id, message
cache incr channel_id, user.id
flows:
message new ->
channel_command append new
for user in room:
notify user
notifier.send user channel_id, message
cache incr channel_id, user.id