91
75

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

etcd概要

Last updated at Posted at 2016-01-03

※書きかけなので、随時更新。

etcd(etc distributed)とは

etcdはGo言語で記述された設定情報の共有とサービス検出のための分散KVS。
あるサーバーで設定した値を入れたら、他のサーバーでも値が更新されていた。
etcd(etc distributed)という名前は、/etcに置かれたファイルを分散するという意味から来ていると思われる。
CoreOS(Linuxディストリビューションの一種)の中で提供されている機能の一つでもある。

特徴

  • curl(HTTP、FTP、SCPなど多数のファイル転送プロトコルを使えるツール)でデータの出し入れができる
  • SSL認証可
  • 高速な書き込み速度(ベンチマークは 1000/s 程度)
  • Raft(コンセンサスアルゴリズム)を使用して分散

コマンド


● クラスタの状態
etcdctl cluster-health

● リーダーの確認
curl http://localhost:2379/v2/stats/leader

● メンバの確認
etcdctl member list
curl http://localhost:2379/v2/members

● メンバの削除
etcdctl member remove id
curl http://localhost:2379/v2/members/id -XDELETE

メンバの追加
curl http://localhost:2379/v2/members -XPOST -H "Content-Type: application/json" -d '{"node":"value"}'

参考

91
75
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
91
75

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?