故障和审计数据的客户。http://storj.io网站

dataserv-client的Python项目详细描述


BuildLinkCoverageLinkLicenseLinkIssuesLink

贡献

如果您有一些额外的时间和python经验,我们欢迎您的贡献。我们要求您在develop分支上发出pull请求,因为我们只对发行版使用master。请遵循PEP8,并确保您记录了任何新内容。如果您有任何问题,可以在Slack上找到整个团队。注意:如果计划运行repo的单元测试,还需要使用新的db在本地运行dataserv

设置

窗口

下载latest windows release from github

将zip文件解压缩到要安装它的文件夹中。

$ dataserv-client.exe version

当发布新版本时,dataserv客户端将自动更新。

Linux(ubuntu/mint/debian)

安装客户端

# install apt dependencies
$ sudo apt-get install python python-pip graphviz
$ sudo apt-get install python-dev libgraphviz-dev pkg-config gcc

# Some systems may need to install graphviz from the system package first.
$ sudo pip install pygraphviz --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz/"

$ sudo pip install dataserv-client
$ dataserv-client version

更新客户端

$ sudo pip install dataserv-client --upgrade
$ dataserv-client version

OSX

安装客户端

$ brew install python
$ rehash
$ pip install dataserv-client
$ dataserv-client version

更新客户端

$ pip install dataserv-client --upgrade
$ dataserv-client version

农民快速入门指南

配置farmer节点

可选择设置冷库付款地址。 您可以在此处设置交易对手钱包地址。 必须在启动节点之前完成所有配置。

dataserv-client config --set_payout_address=<BITCOIN_ADDRESS>

启动农民节点

(可选)指定存储数据的路径、可用空间和最小可用空间。

dataserv-client --store_path=<PATH> --max_size=<SIZE_IN_BYTES> --min_free_size=<SIZE_IN_BYTES> farm

可选的最大和最小可用大小语法

--max_size=1.0K  # 1024^1 bytes
--max_size=1.0KB # 1000^1 bytes
--max_size=1.0M  # 1024^2 bytes
--max_size=1.0MB # 1000^2 bytes
--max_size=1.0G  # 1024^3 bytes
--max_size=1.0GB # 1000^3 bytes
--max_size=1.0T  # 1024^4 bytes
--max_size=1.0TB # 1000^4 bytes
--max_size=1.0P  # 1024^5 bytes
--max_size=1.0PB # 1000^5 bytes

Farmer多盘导轨

要在多张光盘上进行场处理,您必须运行多个实例, 因为还不支持多个路径。为此,您需要一个配置 对于每个光盘。

不同的实例可以共享一个公共的支付地址,但是建议 为每个实例使用不同的支付地址。

盘1

dataserv-client --config_path=<CONFIG 1> config --set_payout_address=<BITCOIN_ADDRESS 1>
dataserv-client --config_path=<CONFIG 1> --store_path=<PATH 1> --max_size=<SIZE 1> farm

盘n

dataserv-client --config_path=<CONFIG n> config --set_payout_address=<BITCOIN_ADDRESS n>
dataserv-client --config_path=<CONFIG n> --store_path=<PATH n> --max_size=<SIZE n> farm

农民设置自定义高度

为了更快地构建,可以考虑使用–set_height_interval命令。 如果您设置了一个较高的高度数字,请考虑运行另一个客户端实例进行轮询。 轮询将每60秒发送一次,场或生成将仅在达到高度间隔时发送。

运行farm命令

dataserv-client --url=http://switch.driveshare.org --store_path=<PATH> --max_size=<SIZE_IN_BYTES> farm --set_height_interval=(default: 25, max recommended: 199999)

运行poll命令

dataserv-client --url=http://switch.driveshare.org poll

工人指南

可以通过执行farm或使用可选参数-workers来启动多个worker。建议只启动尽可能多的CPU和硬盘可以处理的工人。使用快速硬盘,CPU使用率可能达到80%。

dataserv-client build --workers=<number of workers>
dataserv-client farm --workers=<number of workers>

命令行界面用法

参数排序

$ dataserv-client <program arguments> COMMAND <command arguments>

参数排序示例

$ dataserv-client --debug build --rebuild

显示程序帮助、可选参数和命令

$ dataserv-client --help
usage: dataserv-client [-h] [--url URL] [--max_size MAX_SIZE]
                       [--store_path STORE_PATH] [--config_path CONFIG_PATH]
                       [--debug] [--use_folder_tree]
                       <command> ...

Dataserve client command-line interface.

optional arguments:
  -h, --help            show this help message and exit
  --url URL             Url of the farmer (default:
                        http://status.driveshare.org).
  --max_size MAX_SIZE   Maximum data size in bytes. (default: 1073741824).
  --min_free_size MIN_FREE_SIZE
                        Minimum free size in bytes. (default: 1073741824).
  --store_path STORE_PATH
                        Storage path. (default: /home/user/.storj/store).
  --config_path CONFIG_PATH
                        Config path. (default: /home/user/.storj/config.json).
  --debug               Show debug information.
  --use_folder_tree     Use folder tree to store files (always on for fat32
                        store_path).

commands:
  <command>
    version             Show version number.
    register            Register your node on the network.
    ping                Ping master node.
    poll                Let the network know your are online.
    build               Fill the farmer with data up to their max.
    audit               Audit the generated data.
    config              Edit and display config.
    farm                Start farmer.

显示命令帮助和可选参数

$ dataserv-client config --help
usage: dataserv-client config [-h] [--set_wallet SET_WALLET]
                              [--set_payout_address SET_PAYOUT_ADDRESS]

optional arguments:
  -h, --help            show this help message and exit
  --set_wallet SET_WALLET
                        Set node wallet to given hwif.
  --set_payout_address SET_PAYOUT_ADDRESS
                        Root address of wallet used by default.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在构造函数外部添加鼠标侦听器   java如何使用比较器对列表进行排序以正确排序空值?   javajavax。由于javax,邮件“535.7.3身份验证失败”。邮件升级(v1.3.1至v1.5.2)   java将arraylist流到固定的二维数组中并打印?   RecyclerView适配器上的java上下文   java如何为此Twitter API为KafkaProducer建立连接   java Spring安全性重写WebSecurity配置适配器的配置(AuthenticationManagerBuilder)是否会影响全局应用程序?   线程“awteventque0”NullPointerException中的java异常   if条件中的null值和null指针异常java   java树集<Object>允许相同类型的多个对象   java定义类;我认不出   字符串java replaceAll()   JAVAutil。scanner(Java)读取文件时如何跳过空格?   java在swing中关闭flash屏幕   java在Wildfly 16中的应用程序中加载pk12文件   有没有工具可以自动生成屏幕抓取的Java代码   创建意图时,java方法getParcelableExtra()返回null   将数据从java传递到jsp   java Android Studio |永久保存布局