Developers.IO MeetUp 01 Massive Messaging Platform Deployment in a Week.satoshi
HashiCorp のブログに Serf の新しいメジャーバージョン、0.7 に関する記事があがっていましたので翻訳します(私の立場としては、基本的に翻訳については中の人の許可をいただいている形です。しかし、英語の原文が優先されるべき、という立場から、参考訳という形をとっています)。 —-ここから Serf 0.7 – HashiCorp https://hashicorp.com/blog/serf-0.7.html ■ Serf 0.7 今日、私たちは Serf 0.7 をリリースします。Serf はメンバ管理(membership)・障害検出(failure detection)・オーケストレーション(orchestration)のための非中央集中型ソリューションです。Serf は複数の大規模デプロイ(単一クラスタ上に 10,000 台以上のマシン)に用いられており、Consul と
このところ、Serfのコードを読んでいました。一旦、読んで理解した内容をまとめてみたいと思います。 Packages Serfは大きく次の2つのパッケージに分かれており、各々の役割は以下のようになっています。 memberlist クラスタのノードの状態管理 イベントの発行 serf コマンドの提供 イベントをフックして任意のスクリプトを実行する仕組み クラスタの状態のスナップショットの作成とリストア そして、serfはパッケージはmemberlistパッケージに依存しています。 今回はmemberlistについて分かったことを書いていきます。 Memberlist Summary memberlistはSerfクラスタの各ノード内に1つずつ存在しており、Serfクラスタ内の全ノード情報を保持しています。この保持しているノード情報が、Serfクラスタのノード間でやり取り(full stat
自分のブログに書いたことを順番にまとめる. serfの基本的な動作を試してみた url: http://blog.hifumi.info/2014/07/23/try-serf-clustering/ serfのことが何も分からなかったので,アレコレと試した作業記録のようなものを雑多に書いている. provisionをほんのちょっとだけ工夫して,vagrant up --provisionでひと通りの道具が揃うようにした. $script = <<SCRIPT [ -f /usr/local/src/serf.zip ] || wget -q https://dl.bintray.com/mitchellh/serf/0.6.3_linux_amd64.zip -O /usr/local/src/serf.zip [ -f /usr/local/bin/serf ] || unzip /u
Recent entries Apache2.4のリリース予定は来年(2011年)初め(あくまで予定) inoue 2010-12-23 Herokuの発音 inoue 2010-12-20 雑誌記事「ソフトウェア・テストPRESS Vol.9」の原稿公開 inoue 2010-12-18 IPA未踏のニュース inoue 2010-12-15 労基法とチキンゲーム inoue 2010-12-06 フロントエンドエンジニア inoue 2010-12-03 ASCII.technologies誌にMapReduceの記事を書きました inoue 2010-11-25 技術評論社パーフェクトシリーズ絶賛発売中 inoue 2010-11-24 雑誌連載「Emacsのトラノマキ」の原稿(part8)公開 inoue 2010-11-22 RESTの当惑 inoue 2010-11-22 「プ
cloudpack の 自称 Sensu芸人 の かっぱこと 川原 洋平(@inokara)です。 はじめに 夜の 9 時に寝たら 1 時過ぎに目が覚めて寝れなくなったので Serf のイベントハンドラを触ってみた。 Serf について 詳しいことは @zenbutsu さんが纏めてくださっているので @zenbutsu さんの qiita 記事やブログは要チェック! アジェンダと構成 member-join member-leave 構成 以下のような構成。 [ serf on EC2 ] [ serf on EC2 ] すんません、アスキーアートで。 準備 serf のインストール バイナリを落っことして来るだけ 適当なイベントハンドラ join.sh /bin/sh echo "join" > /tmp/join.log leave.sh /bin/sh echo "leave" >
Gossip-based Membership Serf relies on an efficient and lightweight gossip protocol to communicate with nodes. The Serf agents periodically exchange messages with each other in much the same way that a zombie apocalypse would occur: it starts with one zombie but soon infects everyone. In practice, the gossip is very fast and extremely efficient. Failure Detection Serf is able to quickly detect fai
Serfが必要とされる理由 複数のサーバ環境上で、一斉にセットアップ用やデプロイ用のコマンドを実行したり、バージョン番号の確認を行ったりするためには、どのような方法が最適でしょうか。管理対象が数台程度であれば、毎回手打ちでSSHログインを実行し、コマンドを実行する方法もありでしょう。 しかし、その作業が同じ手順の繰り返しである場合や、システムにおける作業対象が十数台~数百台まで増えたとしたらどうでしょう? 人の手で行うとなると、作業にかかる時間が増える上に、作業ミス発生のリスクも高まります。ミスを防ぐためには、チェックの仕組みも必要となります。たとえそれが単純な作業だったとしても、システム全体としては非常に面倒なものになりがちです。 このような問題を解決するためのツールとして、parallel-sshが挙げられます。parallel-sshは名称の通り、ある環境上から対象となるサーバ群に対
Serf を使用した Munin-node 自動追加, ついでに Winodws8 に Munin-nodeいれてみるMuninWindows8CentOS6.5serf Serf 使ってみる。が、ちょいとw いまさら自分で「Serfとは?」って書かなくとも沢山検索にヒットしますし、あえて何番煎じ?って感じなので'まとめ'だけ。あとちょっと色々あそんだのでいつものメモ(Window に Munin-node と Serf 入れるたらまた少しはまった)。 アジェンダ的には、 ・Serf 入れてみる ・Window に Munin-node いれてみる ・Munin のノード自動追加 Serf とは Serfは、Vagrant で有名なMitchell Hashimoto氏が作成したgo言語で作られたツール。いわゆるオーケストレーションツールといわれているもの。詳しくは、下記のプレゼン資料が非
I'm jumping on a plane right now (a couple hours) but I'd be happy to answer any questions related to Serf once I land. Just leave them here and I'll give it my best shot! We've dreamt of something like Serf for quite awhile and I'm glad it is now a reality.Some recommended URLs if you're curious what the point is: "What is Serf?" http://www.serfdom.io/intro/index.html "Use Cases" http://www.serfd
In this series of blog posts, we have progressively built increasingly complex Docker-based applications. We started with a simple 2-container Docker app. ThenIn this series of blog posts, we have progressively built increasingly complex Docker-based applications. We started with a simple 2-container Docker app. Then we built a 3-container decentralized Docker app with Serf. Today we are building
Helping Developers do Ops EasierIn last week’s post, we talked about how to create a 2-container application with Docker. Now we want to use a brand new project called Serf (from the makers of Vagrant) to have the containers learn about each other automatically. Serf uses gossip-based membership to create a decentralized solution for service discovery and orchestration that is lightweight, highly
zenbutsuさんのserf-munin12、glidenote先生の改造版3があり、3番煎じは流石の薄味ですが、Perlでserf-muninのイベントハンドラを書いてみました。 https://github.com/hfm/serf-munin.pl 実はまともにperlのスクリプトを書くのはこれが2回目です。1回目は1.5年くらい前に書いた雑過ぎる席替えスクリプト4です。 あと、こちらのserf-munin.plは30days Album5のバックエンドでひっそりと動いてもらっています。 おっくんのおかげで30daysにserfが入った。/ serfの基本的な動作を試してみた | blog: takahiro okumura http://t.co/VHxWdcVaEO — kuroda (@lamanotrama) 2014, 7月 23 基本的な動作はzenbutsuさん、gl
Gossip-based Membership Serf relies on an efficient and lightweight gossip protocol to communicate with nodes. The Serf agents periodically exchange messages with each other in much the same way that a zombie apocalypse would occur: it starts with one zombie but soon infects everyone. In practice, the gossip is very fast and extremely efficient. Failure Detection Serf is able to quickly detect fai
» Gossip Protocol Serf uses a gossip protocol to broadcast messages to the cluster. This page documents the details of this internal protocol. The gossip protocol is based on "SWIM: Scalable Weakly-consistent Infection-style Process Group Membership Protocol", with a few minor adaptations, mostly to increase propagation speed and convergence rate. Advanced Topic! This page covers the technical det
serf2excel.pl �;] U �iH] U #!/usr/bin/perl use Encode; use Spreadsheet::WriteExcel; $serf = '/usr/bin/serf'; my ($sec, $min, $hour, $day, $month, $year, $wday) = localtime; $year += 1900; $month++; $hour = sprintf("%.2d", $hour); $min = sprintf("%.2d", $min); $sec = sprintf("%.2d", $sec); #print "$year, $month, $day\n"; my $excel = Spreadsheet::WriteExcel->new("./hostlist.xls"); #my $font = "MS P
障害の検知と、イベントハンドラーを行えるhashicorpのツール。 概要はこちらがわかりやすいです。 http://gihyo.jp/admin/feature/01/serf-consul NAT冗長化 最近はAutoScalingによる冗長化もあるが、 切り替わり時間を短くしたいためActive/Standbyによる冗長化を実装。 Serfにより障害を検知し、APIを使用しRouteTableを切り替える。 Serf実装 Active側が正常であれば、常に経路を寄せるようにする。 Standby側はActive側の障害を検知した際にRouteTableを書き換える。 また、疎通間隔を4秒とし、タイムアウト12秒設定することで最長の障害時間を12秒にする。 オプション等は以下が参考になります。 https://www.serfdom.io/docs/agent/options.html
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く