In order to setup an existing openredis instance as a slave of another existing instance, simply do the following:
- Access your [dashboard][dashboard].
- Click on
Set as slave
. - Paste in the URL of your instance.
#!/bin/sh | |
# Assuming you use gs(1) and dep(1), this program | |
# implodes your .gs directory and installs all gems | |
# listed in your .gems file with a single call to gem(1). | |
# | |
# gs(1): https://github.com/soveran/gs | |
# dep(1): https://github.com/cyx/dep | |
set -e |
module JSON | |
class << self | |
alias :old_parse :parse | |
def parse(json, args = {}) | |
args[:create_additions] = false | |
old_parse(json, args) | |
end | |
end | |
end |
require "benchmark" | |
class A | |
def initialize(atts) | |
atts.each do |k,v| | |
instance_variable_set(:"@#{k}", v) | |
end | |
end | |
end |
require "benchmark" | |
class A | |
def initialize(atts) | |
atts.each do |k,v| | |
instance_variable_set(:"@#{k}", v) | |
end | |
end | |
end |
''' | |
Created on Jun 25, 2012 | |
@author: andres.rangel | |
''' | |
import logging | |
import os | |
import re | |
from redis.client import Redis, BasePipeline, ConnectionError, StrictRedis, Script, NoScriptError | |
from redis.connection import ConnectionPool, Connection, DefaultParser |
I have some early benchmark results for our work on a high performance NATS server in Go.
Quick Summary:
We can process ~2M msgs/sec through the system, and the ingress and egress are fairly well balanced.
The basics of the architecture are intelligent buffering and IO calls, fast hashing algorithms and subject distributor/routing, and a zero-allocation hand-written protocol parser.
In addition, I used quite a bit of inlining to avoid function overhead, no use of defer, and little to no object allocation within the fast path. I will share more details and the code at a future date.