- 100%の時間 利用可能なサービスはない
- 配慮のないクライアント
- 50倍の要求
- (訳注: 上記2つはPokemon Goのことでもある)
- スラフィックのスパイク
- 海底ケーブルの切断
- 私達のサービスに依存するユーザーがいる
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
(() => { | |
// initialize app | |
function init() { | |
_firebaseInit() | |
_firebaseAuthInit() | |
} | |
function _(el) { | |
return document.getElementById(el); |
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
package dynamodb | |
import ( | |
"fmt" | |
"testing" | |
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" | |
) | |
func BenchmarkToSliceMap_old(b *testing.B) { |
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
package example | |
import ( | |
"context" | |
) | |
// Executor is example process. | |
// This might be, downloading data via http / reading data from local big file / waiting data from client etc... | |
type Executor interface { | |
Exec() (data interface{}, err error) // this might take a long time. |
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
#!/bin/sh | |
# original from http://sandrinodimattia.net/posting-successful-ssh-logins-to-slack/ | |
if [ "$PAM_TYPE" != "close_session" ]; then | |
whitelist="127.0.0.1 localhost" # change here | |
is_white=0 | |
# check authorized host | |
for HOST in $whitelist |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
(wip) |
- GoogleのSRE: 最適化に時間を使う
- コンピューティングリソースだけでなく、時間の使い方も最適化する
- トイルに時間を使いたくない
- トイルに関する包括的な話はSRE本の5章参照
- この章でのトイルの定義:
- サービス維持に関するもので、繰り返され、予測可能な一連のタスク
- 本番運用にトイルは避けられない
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/env ruby | |
require "qiita" | |
require "slack-notifier" | |
require "aws-sdk" | |
require 'yaml' | |
require 'json' | |
class RDSLogDownloader |