• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

DI-store: OpenDILab分布式强化学习对象存储商店

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

DI-store

开源软件地址:

https://gitee.com/opendilab/DI-store

开源软件介绍:

Introduction

Decision AI Store

Installation

Prerequisites
  • Linux or macOS

  • Python >= 3.6

pip install .

Quick Start

Start Etcd Server
di_store etcd_server ./conf/di_store.yaml
Start Node Tracker
di_store node_tracker ./conf/di_store.yaml
Start Storage Server
di_store storage_server ./conf/di_store.yaml
Start Storage Client
from di_store import Clientclient = Client('./conf/di_store.yaml')ref = client.put(b'Hello world.')data = client.get(ref)print('data:', data)client.delete(ref)

Object prefetch

start storage server with group

di_store storage_server ./conf/di_store.yaml --group actor

specify prefetch_group when put object

from di_store import Clientref = client.put(b'Hello world.', prefetch_group='actor')

When an object is put with prefetch_group specified, a background schedule is triggered to spread the object to all nodes corresponding to the group.The following diagram illustrates the data dissemination.

prefetch

Directory Structure

├── di_store: python related codes│     ├── bin: executable files needed by "etcd_server", "node_tracker" and "storage_server" commands│     ├── cmd: driver for "di_store" command│     ├── common: utilities for common│     ├── driver│     │     └── etcd_server_driver.py: etcd_server driver│     ├── node_tracker│     │     └── node_tracker_client.py: node_tracker client│     ├── storage│     │     └── storage_client.py: storage client│     └── tracing│           └── tracing.py: utilities for tracing└── go: golang related codes      ├── fb: generated by the FlatBuffers compiler      ├── metadata: etcd client operations      ├── node_tracker      │     ├── fetch.go: fetch implementation of node_tracker      │     ├── main      │     │     └── node_tracker.go: the main entry point for node_tracker      │     ├── node_tracker.go      │     └── node_tracker_client.go      ├── pb: generated by ProtoBuffers      ├── plasma_client: golang codes that wraps libplasma      ├── plasma_server: golang codes that wraps executable plasma-store-server      ├── protos: .proto and .fbs files      ├── release: outputs of command "go build", executable files of node_tracker and storage_server      ├── storage_server      │     ├── fetch.go: fetch implementation of storage_server      │     ├── main      │     │     └── storage_server.go: the main entry point for storage_server      │     └── storage_server.go      ├── tracing: utilities for tracing      └── util

License

DI-store released under the Apache 2.0 license.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap