6.8 定制 store-daemon

以下设置对于 Store 组件的 daemon 服务来说是可调的。

依赖项

Requiresstore-monitor
Required bystore-gateway
Considerations: none

store-daemon 设定的设置

以下的 etcd 键由 store-daemon 组件设置,通常在它的 /bin/boot 脚本。

设置 描述
/deis/store/osds/$HOST 这个 OSD 示例(instance) 的 Ceph OSD ID (由 Ceph 生成)

store-daemon 使用的设置

以下的 etcd 键由 store-daemon 组件使用。
设置|描述
—|—
/deis/store/adminKeyring|一个 admin 用户用来访问 Ceph 集群(cluster)的 keyring (由 store-monitor 设置)
/deis/store/fsid|Ceph 文件系统 ID (由 store-monitor 设置)
/deis/store/hosts/*|deis-monitor 主机(由 store-monitor 设置)
/deis/store/monKeyring|监视器(monitor) 用来访问 Ceph 集群的 keyring (由 store-monitor 设置)
/deis/store/monSetupComplete|设置Ceph 集群什么时候 setup 完成(由 store-monitor 设置)
/deis/store/monSetupLock|store-monitor 已经完成 setup 的主机 (由 store-monitor 设置)
/deis/store/minSize|集群可接受写的最小 store-daemons 数量(由 store-monitor 设置)
/deis/store/pgNum|storage pools 的 Ceph placement groups 数量 (由 store-monitor 设置)
/deis/store/size|存储在 Ceph 的数据副本数量 (由 store-monitor 设置)

使用一个定制的 store-daemon 镜像

你可以使用一个定制的 store-daemon 组件的 Dokcer 镜像来代替 Deis 提供的镜像:

  1. $ deisctl config store-daemon set image=myaccount/myimage:latest

这将从公有的 Docker registry 拉取(pull)镜像。你也可以从一个私有的 registry 拉取(pull):

  1. $ deisctl config store-daemon set image=registry.mydomain.org:5000/myaccount/myimage:latest

确保你定制的镜像功能与 Deis 自带的 stock store-daemon image 一样。明确的说,就是确保它设置和读取合适的 etcd 键。