Skip to Content
SRE サイトリライアビリティエンジニアリング ―Googleの信頼性を支えるエンジニアリングチーム
book

SRE サイトリライアビリティエンジニアリング ―Googleの信頼性を支えるエンジニアリングチーム

by Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy, 澤田 武男, 関根 達夫, 細川 一茂, 矢吹 大輔, Sky株式会社 玉川 竜司
August 2017
Intermediate to advanced
590 pages
8h 40m
Japanese
O'Reilly Japan, Inc.
Content preview from SRE サイトリライアビリティエンジニアリング ―Googleの信頼性を支えるエンジニアリングチーム

24章cronによる分散定期スケジューリング

執筆:Štěpán Davidovič†1

編集:Kavita Guliani

本章では、分散cronサービスのGoogleにおける実装について述べます。これは、演算ジョブの定期的なスケジューリングを必要とするGoogle内部のチームの大部分が利用しているものです。cronは一見基本的なものに見えますが、私たちはcronを扱ったこれまでの経験を通じて、このサービスの設計や実装について多くの教訓を学びました。ここでは分散cronが直面する問題と、その解決方法の選択肢の概要を述べます。

cronは広く使われているUnixのユーティリティであり、ユーザーが指定した時刻や間隔に従って、定期的に任意のジョブを起動するように設計されています。本章ではまず、cronの基本原理とその最も一般的な実装を分析し、cronのようなアプリケーションを大規模な分散環境で動作させることによって単一のマシンの障害に対する信頼性を向上させる方法を見ていきます。本章で説明するのは少数のマシン群にデプロイされる分散cronシステムですが、Borgのようなデータセンター用のスケジューリングシステムと組み合わせることで、データセンター全体にわたってcronジョブを起動できます[Ver15]。

24.1 cron

それでは、まず通常cronが単一のマシンでどのように使われているのかを見ていき、続いてデータセンター間にまたがるサービスとしてのcronの実行の様子に踏み込んでいきましょう。

24.1.1 イントロダクション

cronは、システムの管理者や一般的なユーザーが、実行するコマンドとその実行のタイミングを指定できるように設計されています。cronは、ガベージコレクションや定期的なデータ分析を含むさまざまな種類のジョブを実行します。最も一般的な時間指定のフォーマットは“crontab ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

SREをはじめよう ―個人と組織による信頼性獲得への第一歩

SREをはじめよう ―個人と組織による信頼性獲得への第一歩

David N. Blank-Edelman, 山口 能迪

Publisher Resources

ISBN: 9784873117911Other