Skip to content

Instantly share code, notes, and snippets.

View qpfiffer's full-sized avatar
🔚

Quinlan Pfiffer qpfiffer

🔚
View GitHub Profile
From 791ae0840290992d296093676a34c5755b2ba077 Mon Sep 17 00:00:00 2001
From: Quinlan Pfiffer <[email protected]>
Date: Thu, 20 Mar 2014 17:12:17 -0700
Subject: [PATCH] get_expiration should work now.
---
streamulus/database.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/streamulus/database.py b/streamulus/database.py
Adrastea
Aitne
Amalthea
Ananke
Aoede
Arche
Autonoe
Callirrhoe
Callisto
Carme
DEBUG src/oleg.c:201: New key: :1:django.contrib.sessions.cache1 Klen: 33
DEBUG src/port_driver.c:144: Command from server: 2
DEBUG src/port_driver.c:115: Key: :1:django.contrib.sessions.cacheabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz
@qpfiffer
qpfiffer / gist:9401983
Created March 6, 2014 23:33
Overwrite somewhere.
DEBUG src/port_driver.c:135: Command from server: 2
DEBUG src/port_driver.c:108: Key: :1:django.contrib.sessions.cachej2hpi8i40qgq92br48wqjxkpkuv39ys5�
DEBUG src/port_driver.c:113: Content type: application/octet-stream
DEBUG src/port_driver.c:135: Command from server: 2
DEBUG src/port_driver.c:108: Key: :1:django.contrib.sessions.cachej2hpi8i40qgq92br48wqjxkpkuv39ys5�
DEBUG src/port_driver.c:113: Content type: application/octet-stream
DEBUG src/port_driver.c:135: Command from server: 2
DEBUG src/port_driver.c:108: Key: :1:django.contrib.sessions.cachevqx0ms4awgsybueodse3uzouqhbcgg2kin/ol_util.beam
DEBUG src/port_driver.c:113: Content type: application/octet-stream
DEBUG src/port_driver.c:135: Command from server: 2
140 k = _ol_read_data(fd);
(gdb)
[ERROR] (src/aol.c:106: errno: None) Error reading
141 check(k, "Error reading"); /* Everything needs a key */
(gdb) print k
$3 = <optimized out>
(master)
λ:~/src/project_oleg ./run_server.sh
[-] Starting server.
[-] Listening on IP {127,0,0,1}, port 8080
^C
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
(v)ersion (k)ill (D)b-tables (d)istribution
a
(master)
λ:~/src/project_oleg ./run_server.sh 5000
λ:~/src/wrk ./wrk -t4 -c400 -d30s http://localhost:8080/test2
Running 30s test @ http://localhost:8080/test2
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 62.41ms 592.68ms 6.57s 98.97%
Req/Sec 3.88k 1.12k 8.79k 72.30%
452660 requests in 30.00s, 57.41MB read
Socket errors: connect 0, read 0, write 0, timeout 183
Requests/sec: 15089.93
Transfer/sec: 1.91MB
2014-02-27 18:47:56 nea "instead of an ACID or BASE system this database is based on the MAYO paradigm"
2014-02-27 18:48:07 nea Marginally Available Yolk and Oil Database
2014-02-26 12:33:33 Hamcha how about a database that makes sense?
2014-02-26 12:34:40 Hamcha oh wait
2014-02-26 12:34:49 Hamcha did you just wipe the old roadmap and actually make one that makes sense?
2014-02-26 12:34:52 Hamcha WHERE'S RAR COMPRESSION?
Feb 19 21:10:31 [-] ----- test_dump -----
Feb 19 21:10:31 [-] Opened DB: 0x10830d0.
Feb 19 21:10:31 [-] Dumping DB to disk.
Feb 19 21:10:32 [-] Dumped 1000000 records
Feb 19 21:10:32 [-] Loading DB from disk.
Feb 19 21:10:32 [-] Duplicate bucket, crazy hash5631 is the same as old bucket key crazy hash563169
Feb 19 21:10:32 [x] Not all records were loaded. 999999
Feb 19 21:10:32 [x] Failed.