Opens in a new windowOpens an external websiteOpens an external website in a new window
This website utilizes technologies such as cookies to enable essential site functionality, as well as for analytics, personalization, and targeted advertising purposes. To learn more, view the following link: Cookie Policy
『ご注文は監視自動化ですか?』
Serf と Consul を使って運用を楽しくする話
Serf とか Consul とか聞くけど、イマイチわからん!という疑問はありませんか。
どのような働きをするのかや、使いどころを、皆さんと共有したいなと思っています。
1. はじめに
2. 基本編
・ Serf
・ Consul
・ envconsul
3. 実践編
・ API 連携
4. まとめ
July Tech Festa 2014
June 22, 2014, @ AITT Shinagawa, Tokyo, Japan
#techfesta #jtf2014
95. そして足りない機能がある…………
> サーバ立ち上げ時に、「ネットワークID」じゃ
なくて「ポートID」を指定する必要がある
> forkされた段階のgophercloudには未実装
$ nova help boot
--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid>
Create a NIC on the server. Specify option
multiple times to create multiple NICs. net-
id: attach NIC to network with this UUID
(either port-id or net-id must be provided),
v4-fixed-ip: IPv4 fixed address for NIC
(optional), v6-fixed-ip: IPv6 fixed address
for NIC (optional), port-id: attach NIC to
port with this UUID (either port-id or net-id
98. $ go test ./...
# git.***.***/tech/packer-builder-nyah
../../../../.go/src/git.***.***/tech/packer-builder-nyah/
builder.go:75: cannot use auth (type "github.com/mitchellh/
gophercloud-fork-40444fb".AccessProvider) as type "github.com/
udzura/gophercloud-fork-9419da4".AccessProvider in argument to
"github.com/udzura/gophercloud-fork-9419da4".Server:
"github.com/mitchellh/gophercloud-
fork-40444fb".AccessProvider does not implement "github.com/
udzura/gophercloud-fork-9419da4".AccessProvider (wrong type for
FirstEndpointUrlByCriteria method)
have FirstEndpointUrlByCriteria("github.com/
mitchellh/gophercloud-fork-40444fb".ApiCriteria) string
want FirstEndpointUrlByCriteria("github.com/
udzura/gophercloud-fork-9419da4".ApiCriteria) string
116. サーバをカジュアルに増やす
> from 12 facter app
> V. Build, release, run
> Strictly separate build and run stages
> IX. Disposability
> Maximize robustness with fast startup and graceful shutdown
128. メモリをガツッと確保する
> Consul makes use of LMDB internally for various
data storage purposes. LMDB relies on using
memory-mapping, a technique in which a sparse
file is represented as a contiguous range of
memory.
> vm.overcommit_memory=2 だったので、落ちた
> ※ 0.5.0では vm.overcommit_memory=2 でも落ちな
くなっていた
https://www.consul.io/docs/faq.html