- [Knock] Zero downtime Postgres upgrades (2023)
- [Retool] How we upgraded our 4 TB main application PostgreSQL database (2022)
- [Instacart] Creating a Logical Replica from a Snapshot in RDS Postgres (2020)
- [Instacart] Zero-Downtime PostgreSQL Cutovers (2023)
- [Notion] Herding elephants: Lessons learned from sharding Postgres (2021)
- [Notion] The Great Re-shard: adding Postgres capacity with zero downtime (2023)
- Scaling with PostgreSQL without boiling the ocean (2025)
- [[Figma] Why We Reinvented our own sharding solution (2024)](https://mediu
This file contains hidden or 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
16909055 1.2.2-RC2 | |
%7|1573202362.136|BRKMAIN|confluent.monitoring.interceptor.rdkafka#producer-1| [thrd::0/internal]: :0/internal: Enter main broker thread | |
%7|1573202362.136|WAKEUPFD|confluent.monitoring.interceptor.rdkafka#producer-1| [thrd:app]: kafka-a.example.com:9092/bootstrap: Enabled low-latency ops queue wake-ups | |
%7|1573202362.136|BROKER|confluent.monitoring.interceptor.rdkafka#producer-1| [thrd:app]: kafka-a.example.com:9092/bootstrap: Added new broker with NodeId -1 | |
%7|1573202362.136|CONNECT|confluent.monitoring.interceptor.rdkafka#producer-1| [thrd:app]: kafka-a.example.com:9092/bootstrap: Selected for cluster connection: bootstrap servers added (broker has 0 connection attempt(s)) | |
%7|1573202362.136|BRKMAIN|confluent.monitoring.interceptor.rdkafka#producer-1| [thrd:kafka-a.example.com:9092/bootstrap]: kafka-a.example.com:9092/bootstrap: Enter main broker thread | |
%7|1573202362.136|CONNECT|confluent.monitoring.interceptor.rdkafka#producer-1| [thrd:kafka-a.example.com:9092/bootstrap]: kafka-a.example.c |
I hereby claim:
- I am agis on github.
- I am agisanast (https://keybase.io/agisanast) on keybase.
- I have a public key ASDUckmoDBBFsMPuhYZsRIv21yrIVusvVavVwe8G94WeBQo
To claim this, I am signing this object:
I hereby claim:
- I am agis on github.
- I am agisanast (https://keybase.io/agisanast) on keybase.
- I have a public key ASBRmVLxlzHSuWhdyjO4-Ywh9KV-jnt_nX23dEJxKV1ucAo
To claim this, I am signing this object:
This file contains hidden or 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
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
_ "github.com/lib/pq" | |
) |
This file contains hidden or 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
app_dir = File.expand_path("../..", __FILE__) | |
shared_dir = "#{app_dir}/shared" | |
working_directory app_dir | |
pid "#{shared_dir}/pids/unicorn.pid" | |
worker_processes 2 | |
preload_app true | |
timeout 30 | |
listen "#{shared_dir}/sockets/unicorn.sock", backlog: 64 |
This file contains hidden or 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
Environment | |
Bundler 1.10.6 | |
Rubygems 2.2.5 | |
Ruby 2.1.7p400 (2015-08-18 revision 51632) [x86_64-darwin14.0] | |
GEM_HOME /Users/agis/.gem/ruby/2.1.7 | |
GEM_PATH /Users/agis/.gem/ruby/2.1.7:/Users/agis/.rubies/ruby-2.1.7/lib/ruby/gems/2.1.0 | |
Git 2.3.4 | |
Bundler settings |
This file contains hidden or 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
gem 'mongo', '=1.8.2' | |
# bson-1.8.2 | |
# bson_ext-1.8.2 | |
require 'mongo' | |
require 'benchmark/ips' | |
c = Mongo::MongoClient.new('localhost', 27017)['test']['hi'] | |
Benchmark.ips do |x| |
This file contains hidden or 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
# Teaspoon includes some support files, but you can use anything from your own support path too. | |
# require jquery/helmet | |
# require handlebars.runtime | |
# require support/expect | |
# require support/sinon | |
# require support/chai | |
# require support/sinon-chai | |
# require support/has_event | |
# | |
# require require |
Rubies older than 1.9.3-p429 will not compile with Clang and require GCC >= 4.2, install GCC 4.2:
$ brew update && brew tap homebrew/versions
$ brew install apple-gcc42
Install autoconf and automake:
$ brew install autoconf automake
Install ruby w/ falcon patch (with backport-gc):
NewerOlder