Skip to main content

A package for GBase 8s database installation and cluster setup.

Project description

pygbase8s

介绍

提供gbase8s数据库及相关产品的安装部署、实例、集群配置等功能

安装教程

pip install pygbase8s

使用说明

from pygbase8s.machine import RemoteMachine
# 创建一个服务器实例
machine = RemoteMachine(ip='xxx.xxx.xxx.xxx', password='root_password')

from pygbase8s.product import IDS
# 指定数据库目录
ids = IDS(path="/opt/gbase8s", machine=machine)
# 安装数据库  
ids.install(pkg_path="/data/GBase8sxxx.tar")

from pygbase8s.server_pool import ServerPool
# 初始化实例池
pool = ServerPool(ids=ids, count=5)
pool.initialize()
# 从实例池获取一个实例并初始化
server = pool.get_server()
server.initialize()
# 从实例池获取一个SDS集群并初始化
cluster = pool.get_cluster('sds')
cluster.initialize()
# 给集群配置CM
from pygbase8s.cm import CM
from pygbase8s.product import CSDK
csdk = CSDK(path="/opt/gbase8s", machine=machine)
csdk.install('/data/ClientSDKxxx.tar')
cm = CM(csdk=csdk, cluster=cluster)
cm.startup()

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygbase8s-0.0.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygbase8s-0.0.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file pygbase8s-0.0.2.tar.gz.

File metadata

  • Download URL: pygbase8s-0.0.2.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for pygbase8s-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8a21d4f2e6f9b3c4ac090e271dd9f0d494acb82da1a71ee62a189f443d4a4df3
MD5 0241d284fbf08362fd8cce96d02b3510
BLAKE2b-256 9d0a18a64ef4d86bd24904b7ec2544fd439c206f2421ab9efb428b4f925f7f19

See more details on using hashes here.

File details

Details for the file pygbase8s-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pygbase8s-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for pygbase8s-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8aee17aa4b295c90d9017fca2824445ee90316e1ba976e3c537b1a1c9896535b
MD5 e7445eedc162ca56a7542549dcd098c9
BLAKE2b-256 5d4a3f4831b45b3ef5badef65851255c4c52b4cd609c5cbde28b2ef423fae4f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page