Agenda. About Gengo. Our PostgreSQL usage. pgpool-ii. Lessons



Similar documents
レッドハット 製 品 プライスリスト Red Hat Enterprise Linux 製 品 (RHEL for HPC) 更 新 :2015 年 4 22

レッドハット 製 品 プライスリスト Red Hat Enterprise Linux2013 新 製 品 (ベースサブスクリプション) 更 新 :2015 年 4 22

レッドハット 製 品 プライスリスト 標 準 価 格. Red Hat Enterprise Linux 製 品 (RHEL Server)

TS-3GB-S.R v1.0 VoIP Supplementary Services Descriptions: Call Forwarding - Unconditional

Discover the power of reading for university learners of Japanese in New Zealand. Mitsue Tabata-Sandom Victoria University of Wellington

医 学 生 物 学 一 般 問 題 ( 問 題 用 紙 1 枚 解 答 用 紙 2 枚 )

= 注 意 = 更 新 型 番 (RN) 複 数 年 型 番 (F3 F5)も 対 象 に 含 みます 改 訂 日 付 SKU Description No.

Data Mining for Risk Management in Hospital Information Systems

My experience of Ruby Education in Taiwan

ใบสม ครเข าร วมโครงการน ส ตแลกเปล ยนมหาว ทยาล ยเกษตรศาสตร

Current Situation of Research Nurse Education and Future Perspectives in Japan

How To Teach English At Kumon

Linux Foundation Automotive Summit - Yokohama, Japan

この 外 国 弁 護 士 による 法 律 事 務 の 取 扱 いに 関 する 特 別 措 置 法 施 行 規 則 の 翻 訳 は 平

Wicket Hiroto Yamakawa

Cost Accounting 1. B r e a k e v e n A n a l y s i s. S t r a t e g y I m p l e m e n t a t i o n B a l a n c e d S c o r e c a r d s

How To Run A Server On A Microsoft Cloud Server (For A Small Amount Of Money)

Graduate Program in Japanese Language and Culture (Master s Program) Application Instructions

Document and entity information

Direct Marketing Production Printing & Value-Added Services: A strategy for growth

Advanced Training Program for Teachers of the Japanese-Language Application Instructions For FY 2016

Abbreviations. Learning Goals and Objectives 学 習 到 達 目 標. Structure of Presentation

Cash, Receivables & Marketable Securities

第 2 回 Linux-HA Japan 勉 強 会

Why today? What s next?

Bushido: Way of the Samurai. Golden Screens. Chokuo TAMURA Hawks with pine and plum blossom x cm each

HIF 2015 Japanese Language and Japanese Culture Program

Teacher Training and Certificate System

育 デジ (Iku-Digi) Promoting further evolution of digital promotion

Panasonic AC-DC Power Supply Design Support Service

JF Standard for Japanese-Language Education 2010

Ritsumeikan University Global 30 Project AY 2012 Follow-up

Green Solution with Simegy

SPECIFICATION. Not recommend for new design. MS6M Power Integrated Module 7MBR15UF060 MS6M Fuji Electric Device Technology Co.,Ltd.

California Subject Examinations for Teachers

IHS Technology. IHS Technology Business Intelligence Enabling market leadership through research, analysis and strategy

BULBOUS CELL MEDIA GROUP

For victims of traffic accidents

Electricity Business Act ( Act No. 170 of July 11, 1964)

Public Financial Assistance for Formal Education in Japan

Upper Secondary Education in Japan

The existence of credential effects in Canadian nursing education; Quebec versus the rest of Canada

オープンソース NFV プラットフォーム の 取 り 組 み

Act on Special Measures Concerning Nuclear Emergency Preparedness (Act No. 156 of December 17, 1999)

Bluetooth FAQ. This document is an FAQ (Frequently Asked Questions) about Bluetooth in general and Logitech products using Bluetooth technology.

<HNAS_SNMP 監 視 取 扱 説 明 書 別 紙 2 イベントリスト> Event ID

EDB-Report. 最 新 Web 脆 弱 性 トレンドレポート( ) ~ Exploit-DB( 公 開 されている 内 容 に 基 づいた 脆 弱 性 トレンド 情 報 です

Posting and Reading Messages (PC version) 1/4

Christ Episcopal Church Sei Ko Kai

EFL Information Gap Activities for Architecture Majors

外 部 委 託 が 進 む 中 での 地 方 自 治 体 職 員 の 雇 用 の 保 護 PROTECTION OF EMPLOYMENT FOR LOCAL GOVERNMENT WORKERS UNDER OUTSOURCING

AW Travelling Light


Most EFL teachers in Japan find that there are groups of verbs which consistently

第 十 三 回 PCクラスタシンポジウム. Cray クラスタ 製 品 のご 紹 介 クレイ ジャパン インク

Using the Moodle Reader Module to Facilitate an Extensive. Reading Program


LEAVING CERTIFICATE 2011 MARKING SCHEME JAPANESE HIGHER LEVEL

Visitors International

Hello, Chicago Okinawa Kenjinkai members,

GRADUATE SCHOOL OF INTERNATIONAL RELATIONS

Preschool Education and Care in Japan

For thousands of years, teachers have looked for products to assist them in educating

さくらインターネット 研 究 所 上 級 研 究 員 日 本 Vyattaユーザー 会 運 営 委 員 松 本 直 人

2009 年 3 月 26 日 2 泊 3 日 スーザン 田 辺 先 生 引 率 のセーレム 市 の 高 校 生 が 当 会 の 会 員 宅 や 会 員 友 人 宅 にホームステイをしました 以 下 は 彼 らの 感 想 文 です

Industrial Accident Compensation Insurance Application Guidance for Foreign Workers <Volume 2>

Absolute Beginner s Guide to Hiragana (With an Introduction to Grammar and Kanji)

Employment Security Act (Act No. 141 of 1947)

第 9 回 仮 想 政 府 セミナー Introduction Shared Servicesを 考 える ~Old but New Challenge~ 東 京 大 学 公 共 政 策 大 学 院 奥 村 裕 一 2014 年 2 月 21 日

Gender Equality in Education in Japan

New Publication of IIMA Global Market Volatility Index

Welcome Guide. SD/TF Card Reader. Model: AR200

Development of the Incorporating System of Automatic Contrast Injector and Radiology Information System (RIS) for Contrast-enhanced CT Examination

Unwillingness to Use Social Networking Services for Autonomous Language Learning among Japanese EFL Students

Ibaraki University. Graduate School of Agriculture. (Master s Program)

Technology and Cost Considerations for Cloud Deployment: Amazon Elastic Compute Cloud (EC2) Case Study

東 京 外 国 語 大 学 語 学 研 究 所 論 集 第 18 号 (2013.3), フィンランド 語

Running R from Amazon's Elastic Compute Cloud

TS-3GA (Rel10)v Telecommunication management; File Transfer (FT) Integration Reference Point (IRP); Requirements

7 myths about cars and free trade agreements

2015 JCI World Congress Kanazawa. Trade Show. Exhibitor Manual 2015/9/9

Grade 9 Language and Literature (English) Course Description

OTM in the Cloud. Ryan Haney

Interest in the relationship between religion and language

MPLS Configration 事 例

Sompo Japan Nipponkoa Group's CSR Case Report

Getting Started. A guide for newly qualified translators

Design Act ( Act No. 125 of 1959)

BDO Advisory K.K. Introduction of Financial Advisory Services. July Page 1

2016 July 5. August 16

JALT2009. The 35th JALT International Conference on Language Teaching and Learning The Teaching-Learning Dialogue: An Active Mirror

AUTOMOBILE LIABILITY SECURITY ACT

Transcription:

Agenda About Gengo Our PostgreSQL usage pgpool-ii Lessons

Agenda About Gengo Our PostgreSQL usage pgpool-ii Lessons

Who I am 冨 田 陽 介 Backend and Ops Engineer Experience Ops role for the first time at Gengo, 1 year 3 month. Project lead for pgpool-ii upgrade

Communicate freely. Connect to people-powered translation at scale. Gengo engineering 12 engineers, 9+ languages spoken

What is Gengo Web API 54 Submit your translation via Website or API 11,000 translators and counting Language pairs and counting http://gengo.com/open data/

The Order Flow

1 2 3 Order translation Translator gets job Receive your translation

1 2 3 Order translation Translator gets job Receive your translation

1 2 3 Order translation Translator gets job Receive your translation

The API A direct connection Fully automated workflow, no project management, plug into 11,000 translators Quick to start Client libraries, developer support and a friendly testing environment Clean and easy Documented REST API makes integrating straight forward

You can try freely! http://translate.gengo.com/event/

Agenda About Gengo Our PostgreSQL usage pgpool-ii Conclusion

Elastic Load Balancer Web Instances Single DB Instance

100% CPU

Elastic Load Balancer Web Instances Use HAProxy to load balance Single DB Instance Multiple Read DB Instance

Read Only Slaves Changed here

Elastic Load Balancer Add servers temporarily while doing the actual fix Web Instances Master DB Instance Multiple Read DB Instance

Elastic Load Balancer Reduce servers after the actual fix Web Instances Redis Instances Master DB Instance Multiple Read DB Instance

Many jobs

Scale up master DB

Elastic Load Balancer いっちゃんええや つ 使 おう!! Web Instances Redis Instances Master DB Instance Multiple Read DB Instance

Before (m1.xlarge) CPU: Intel Xeon family 4 vcpu 8 ECU After (c3.8xlarge) CPU: Intel Xeon E5-2680 v2 32 vcpu 108 ECU Memory: 15GB Memory: 60GB Cost: $0.350 / hour Cost: $1.680 / hour

Split database

Elastic Load Balancer Most of the writes go there when many jobs come in Web Instances Redis Instances Queue DB Instance Master DB Instance Multiple Read DB Instance

Many jobs Changed here

Agenda About Gengo Our PostgreSQL usage pgpool-ii Conclusion

Elastic Load Balancer SPOF Web Instances Redis Instances Queue DB Instance Master DB Instance Multiple Read DB Instance

Asked help for improvement Hot-standby Improve read slave balancing From PostgreSQL 9.1 to 9.3 Few downtime

pgpool-ii by SRA OSS ## 社 長 がpgpool-iiのcommiter! http://www.enterprisedb.co.jp/edbs2014/assets/material/edbsummit2014_sra%20oss.pdf

Elastic Load Balancer Web Instances Redis Instances pgpool (warm) pgpool (active) Queue DB Instance Master DB Instance Multiple Read DB Instance

Web Instances pgpool (warm) pgpool (active) Master DB Instance Multiple Read DB Instance

Web Instances pgpool (cold) pgpool (active) Promotes one of the slaves to master & Other slaves start following new master Master DB Instance Multiple Read DB Instance

Web Instances pgpool (cold) pgpool (active) Put broken slave out of rotation Master DB Instance Multiple Read DB Instance

SRA OSS Write specification document Prepare install scripts Write operation manual Rehearsal on staging env Gengo Prepare servers Application changes Check the documentation Rehearsal on staging env Communicate via email & skype <- recommend

Problems we faced

Connection setting FATAL: connection limit exceeded for non superusers num_init_children * max_pool in pgpool-ii < max_connections in PostgreSQL

Health check failure FATAL:ERROR: pid 82828: health check failed. 2 th host xx.xx.xx.xx at port 5432 is down

Distractive command pcp_promote_node http://www.pgpool.net/docs/latest/pgpool en.html#pcp_promote_node [2014/07/24 10:56:04] Yuta MASANO: pcp_promote_node は pgpool-ii 以 外 のその 他 のクラスタリングソフトウェアで PostgreSQL を 管 理 する 場 合 に 使 われます ちょうどその 辺 の 議 論 が ML にございました [2014/07/24 10:56:06] Yuta MASANO: [[pgpool-general: 3019] Re: pcp_promote_node usecase?] http://www.sraoss.jp/pipermail/pgpool-general/2014- July/003058.html

Result

About 1 month to deploy on live, as scheduled 3 hours downtime, as estimated by SRA, better than expected Works stably for more than 2 months Everyone satisfied

Improvement

Web Instances pgpool (warm) Requires manual recovery pgpool (active) Master DB Instance Multiple Read DB Instance

Web Instances monitoring pgpool (warm) pgpool (active) Master DB Instance Multiple Read DB Instance

AWS Web Instances 3. Update Route53(DNS) via api 1. Detect service down pgpool (warm) pgpool (active) 2. Starts pgpool Master DB Instance Multiple Read DB Instance

3 to 5 minutes downtime, automatical recover Web Instances pgpool (active) pgpool (broken) Master DB Instance Multiple Read DB Instance

Agenda About Gengo Our PostgreSQL usage pgpool-ii Lessons

pgpool-ii is not simple, but super critical

You can code the database set up

Save the capture of graphs!

Wow Such thanks.