Skip to content

Instantly share code, notes, and snippets.

@ideaOwl
ideaOwl / .block
Last active Nov 12, 2018
hack-a-portfolio - D3 Workshop: Part 1 - Basic HTML, d3, and Data Binding
View .block
license: mit
@ideaOwl
ideaOwl / .block
Last active Nov 12, 2018
test - D3 Workshop: Part 1 - Basic HTML, d3, and Data Binding
View .block
license: mit
View mongodb_3.2.x_replica_sets_on_aws_ec2.md

#MongoDB 3.2.x Replica Sets on AWS EC2 A MongoDB replica set provides a mechanism to allow for a reliable database services. The basic replica set consists of three servers, a primary, a secondary and an arbitrator. The primary and secondary both hold a copy of the data. The arbitrator is normally a low spec server which just monitors the other servers and help with the failover process. In production, there can be more than three servers.

To setup mongo as a replica set on Amazon Web Services EC2 you need to first setup a security group with ssh on port 22 and mongodb on port 27017. You then need to create three servers. Select Ubuntu 14.04 LTS x64 and a micro (or bigger depending on your database size, ideally you should have enough memory to match your database size) instance for the primary and secondary and a nano instance for the arbitrator.

##Adjust the File System on each Server The operating system by default will update the last access time on a file. In a high data throughput database application

@ideaOwl
ideaOwl / database.rules.json
Created Aug 7, 2018 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
View database.rules.json
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@ideaOwl
ideaOwl / .block
Created May 16, 2018
Adventures in VR with aframe.io
View .block
license: mit
@ideaOwl
ideaOwl / .block
Last active Mar 24, 2018
D3 Workshop: Part 3 - Conference Data
View .block
license: mit
@ideaOwl
ideaOwl / .block
Last active Mar 24, 2018
(Solution) D3 Workshop: Part 3 - Conference Data
View .block
license: mit
@ideaOwl
ideaOwl / .block
Last active Mar 24, 2018
D3 Workshop: Part 2 - SVGs and d3 Transitions
View .block
license: mit
@ideaOwl
ideaOwl / .block
Created Mar 24, 2018
(Solution) D3 Workshop: Part 2 - SVGs and d3 Transitions
View .block
license: mit
@ideaOwl
ideaOwl / .block
Last active Mar 24, 2018
(Solution) D3 Workshop: Part 1 - Basic HTML, d3, and Data Binding
View .block
license: mit