基于postgres的vmshepherd运行时和锁管理
vmshepherd-runtime-postgres-driver的Python项目详细描述
vmshepgherd运行时postgres驱动程序
简介
为VmShepherd-驱动程序提供插件,允许在Postgres数据库中存储运行时数据和锁管理。
安装
只需使用pip。
pip install vmshepherd-runtime-postgres-driver
库需要(以及vmshepherd本身)python 3.6或更高版本。
使用量
安装包(与vmshepherd在同一环境中)并配置VmShepherd,如:
# ... runtime: driver: PostgresDriver host: (hostname -f) database: vmshepherd user: vmshepherd password: vmshepherd # ...
可用配置选项
Name | Type | Description | Default value |
---|---|---|---|
host | string | Postgres DB host. | |
port | integer | Postgres DB port. | 5432 |
database | string | Postgres DB name. | |
user | string | Postgres auth user. | |
password | string | Postgres auth password. | |
pool_size | integer | Postgres connection pool size. | 2 |
发展
运行测试:
make test
在Docker中创建本地数据库并启动vmshepherd:
make db make develop
更改日志
1.2.1(2019-08-26)
- 错误修复:设置预设数据-不可变参数
1.2.0(2019-08-23)
- 保留运行时状态为的列表vm
1.1.0(2019-08-21)
- 重构-将逻辑移到SQL过程中
1.0.0(2018-06-10)
- 公开发布
X.Y.Z(2018年XX年)
- 内部开发
0.0.1(2018-03-15)
- 初始版本