This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12:27 <nginr> Hi .. Need a suggestion. I want to test the behaviour of my | |
cluster as the data in the cluster keeps on increasing. Upto 1 TB. | |
I want to test the behaviour of Read, Write and Search. Is it possible to do with curl ?? | |
12:28 <chids> nginr: Possible to do what with curl - execute read, | |
write and search requests? | |
12:28 <aphyr> PBC or erlang might be faster, but I've used the HTTP interface | |
for testing in our ruby app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11:55 <pferdefleisch> yo yo yo, I would like to use riak as a file serving | |
db for a rails 3 project. I am wondering if you can use ripple to save | |
images. I looked through the code(specifically casting.rb) and didn't see | |
an image or binary type. This makes me think that I need to use the riak_client | |
gem and set content type "image/jpg" or the like. | |
11:56 <pferdefleisch> so, can i even use the riak_client gem -- and -- is this even | |
a good idea in the first place? | |
11:56 <pferdefleisch> thx! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ey_gatekeeper Iness-MacBook-Pro:~ $ cat ~/.eyerc | |
:staging: | |
:xdna: | |
:gatekeeper: https://gatekeeper-staging.engineyard.com | |
:key:### | |
:secret: ### | |
:pal: | |
:url: https://pal-staging.engineyard.com | |
# :production: | |
# :xdna: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults: &defaults | |
host: localhost | |
# slaves: | |
# - host: slave1.local | |
# port: 27018 | |
# - host: slave2.local | |
# port: 27019 | |
development: | |
<<: *defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DataMapper | |
module Adapters | |
class ConnectionPoolAdapter < AbstractAdapter | |
def initialize(name, options) | |
super | |
assert_kind_of 'options', @options[:pool], Array | |
raise ArgumentError, "The are no adapters in the adapter pool" if @options[:pool].empty? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tm99-s00026 sm_mongodb # cat /etc/conf.d/mongodb/mongodb.conf | |
#!/bin/sh | |
# | |
# /etc/conf.d/mongodb | |
# | |
# Mongodb essentials | |
MONGODB_EXEC="/mongod" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tm99-s00026 ~ # sm --debug=mongodb mongodb configure | |
DEBUG mongodb: config path: /opt/sm/pkg/active/config/mongodb.conf | |
tm99-s00026 ~ # sm --debug=mongodb --force mongodb makedefaultconfig force | |
DEBUG mongodb: default config path: /etc/conf.d/mongodb.conf | |
tm99-s00026 ~ # cat /etc/conf.d/mongodb.conf | |
# Mongodb essentials | |
# MONGODB_EXEC="/opt/sm/pkg/active/bin/mongod" | |
# MONGODB_DATA="/db/mongodb/active/data" | |
# MONGODB_LOG="/etc/conf.d/mongodb.conf" | |
# MONGODB_USER="mongodb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
# This script will generate the commands used to preshard a collection | |
# in mongodb. | |
# | |
# See: | |
# http://www.mongodb.org/display/DOCS/Splitting+Chunks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgres=# \dx | |
List of installed extensions | |
Name | Version | Schema | Description | |
---------+---------+------------+------------------------------ | |
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language | |
(1 row) | |
postgres=# \dx+ | |
Objects in extension "plpgsql" | |
Object Description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On Heroku | |
# Create dump file | |
heroku pgbackups:capture --app <application_name> | |
# On Engine Yard slice | |
# Get dump file from heroku | |
curl -o latest.dump `heroku pgbackups:url b005 --app <application_name> -e <environment>` | |
# drop and recreate database | |
bundle exec rake db:drop |
OlderNewer