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
137. “https://groups.google.com/forum/#!msg/consul-tool/qewFEqgAoF8/b9hxhmy1v6gJ
The reason we recommend setting GOMAXPROCS is to avoid potential
starvation of the scheduler. The Go runtime uses green threads (M:N). If
a single goroutine blocks the scheduler (via cgo for example) it can cause
degraded performance. Having another kernel thread available helps to
mitigate those issues.