Author Archives: Michael Schurter

Failing with MongoDB

Posted on November 5, 2011 by Michael Schurter

Update: Sorry this isn’t my best piece of writing and there seems to be some confusion. The dataset in question was first in a 1.8 master/slave pair and then migrated to sharded replica sets and 2.0.0. For a bit of … Continue reading

Posted in Open Source, Technology | Tagged mongodb | 45 Comments

MemoryMapFile Convenience Class for Python

Posted on September 5, 2011 by Michael Schurter

My obsession with mmap hasn’t died, but while Python’s mmap module is a wonderful low level library it’s a bit hard for a newcomer to use properly. I’ve started toying with a convenience wrapper class for mmap.mmap (at least the … Continue reading

Posted in Open Source, Python, Technology | Tagged mmap | Leave a comment

Sharing Python data between processes using mmap

Posted on May 15, 2011 by Michael Schurter

I’ve been toying with an idea of exposing statistics for a Python application via shared memory to keep the performance impact on the application as low as possible. The goal being an application could passively expose a number of metrics … Continue reading

Posted in GNU/Linux, Open Source, Python, Technology | Tagged ctypes, mmap, Python, struct | 1 Comment

signalfd

Posted on February 20, 2011 by Michael Schurter

This article covers signalfd, a system call only available on Linux. If anyone knows of an equivalent for OSX or BSDs,* please let me know. It’d be great to create a compatibility layer. Writing asynchronous IO code is fun; handling … Continue reading

Posted in GNU/Linux, Open Source, Python, Technology | 1 Comment

schmongodb slides from Update Portland

Posted on February 2, 2011 by Michael Schurter

A few months ago someone in #pdxwebdev on Freenode asked an innocent MongoDB question. In response I ranted seemingly endlessly about our experience with MongoDB at Urban Airship. After a few moments somebody (perhaps sarcastically? who can know on IRC) … Continue reading

Posted in Open Source, Technology | Tagged mongodb, updatepdx, urbanairship | 7 Comments

Deploying Python behind Nginx Talk Slides

Posted on January 25, 2011 by Michael Schurter

I gave a talk on deploying Python WSGI apps behind nginx at the Portland Python User Group meeting on January 11th and finally got around to publishing the slides: schmingx. I should mention Jason Kirtland informed me after the meeting … Continue reading

Posted in GNU/Linux, Open Source, Python, Technology | Tagged nginx, pdxpython, presentation, slides, wsgi | 4 Comments