The goal is to provide real-time information from Redis Cache via Node.js to web clients. The data include temperature, ozone levels and humidity, collected from devices in various regions. A sample record: key: be65-429a-8706a:region2 value: [{“id”:”be65-429a-8706a:region2″,”x”:175.1319,”y”:174.3768,”ts”:”Thu Oct 15 2015 14:03:33 GMT+0000 (UTC)”,”temp”:”32.7″,”humidity”:”87.2″,”o3ppm”:”0.420″}] For this demonstration, I used openSUSE 13.2 x86-64 on a single core VM with 1.75GB of RAM and installed Node.js v4.2 via zypper. I also installed redis version 3.0.4 for local testing, but the […]
Category: JavaScript
CouchDB on Suse VM in Azure For Less Than $100/month (Part 1 of 5)
The following outlines a series of posts designed to walk readers through building and benchmarking a reasonably cheap, fast and reliable location tracking app using CouchDB on an OpenSUSE VM in the Azure cloud. This first installment will introduce the project. Introduction Goals Cheap, Fast, Reliable Eventual Consistency Installation Create VM Installs SSH Security Capture VM Client Code Create Databases Create Benchmark/Testing Code Create Views Start Replication Cron Jobs Performance Tweaks stale=update_after CouchDB local.ini mods […]
CouchDB on Suse VM in Azure For Less Than $100/month (Part 2 of 5)
Part two of this series covers the creation of Azure VMs and the installation of CouchDB. Introduction Goals Cheap, Fast, Reliable Eventual Consistency Installation Create VM Installs SSH Security Capture VM Client Code Create Databases Create Benchmark/Testing Code Create Views Start Replication Cron Jobs Performance Tweaks stale=update_after CouchDB local.ini mods Mapping Data Aggregate Heat Map Live Map 2. Installation Create VM – This process will create two virutal machines. The screenshots and future examples will refer […]
CouchDB on Suse VM in Azure For Less Than $100/month (Part 3 of 5)
This is the third part of the series and covers creating CouchDB databases for tracking data and for the benchmark app. Introduction Goals Cheap, Fast, Reliable Eventual Consistency Installation Create VM Installs SSH Security Capture VM Client Code Create Databases Create Benchmark/Testing Code Create Views Start Replication Cron Jobs Performance Tweaks stale=update_after CouchDB local.ini mods Mapping Data Aggregate Heat Map Live Map 3. Client Code This project will allow a user with a web browser […]
CouchDB on Suse VM in Azure For Less Than $100/month (Part 4 of 5)
This is the fourth part of the series and covers a few performance tweaks to improve data ingestion. Introduction Goals Cheap, Fast, Reliable Eventual Consistency Installation Create VM Installs SSH Security Capture VM Client Code Create Databases Create Benchmark/Testing Code Create Views Start Replication Cron Jobs Performance Tweaks stale=update_after CouchDB local.ini mods Mapping Data Aggregate Heat Map Live Map 4. Performance Tweaks In addition to using cron jobs to maintaining database performance, a few changes […]