Skip to main content

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

Project description

pygbase8s

介绍

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

安装教程

pip install pygbase8s

使用说明

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

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

from pygbase8s 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 import CM
from pygbase8s 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-1.0.0.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

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

pygbase8s-1.0.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pygbase8s-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d8a8015560d7bd5617766eb398932b3671d94eb693d6b25ea7d2fe06849729b9
MD5 1591ba0584c2aac71c9ef76b8da354a9
BLAKE2b-256 75868eae3c65417488d5375781ec9e38fee511f816dfeede20110716eaba90ca

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pygbase8s-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ed5119d3783dcb0e29155edca341ca70e84f3c6142100799a942b6f449ed685
MD5 a99bbb1ed1757c5d2f7dfa4996fc5031
BLAKE2b-256 bb0099ee08d3ea8650b3957f80ee5f441bdf2b60b54c8a9e84bfecdb2d74c424

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