CubeFS
latest

Getting Started

  • Introduction
  • Run Cluster by Yum Tools
  • Run Cluster Manually

Design Documentation

  • Resource Manager (Master)
  • Metadata Subsystem
  • Replica Subsystem
  • Object Subsystem (ObjectNode)
  • Erasure Code Subsystem
  • Client

User Documentation

  • Resource Manager (Master)
  • Meta Subsystem
  • Data Subsystem
  • Object Subsystem (ObjectNode)
  • Client
  • Monitor
  • Tune FUSE Performance
  • Run Cluster on Docker
  • Use with Hadoop
  • BlobStore Manual

Administration

  • Resource Manager (Master) API
    • Cluster
    • Metanode Related
    • Datanode Related
      • GET
      • Decommission
      • Get disk information
      • Get data partition information
      • Offline Disk
      • Migrate
    • Volume
    • Meta Partition
    • Data Partition
    • Master Management
    • User
    • Fault Domain Configuration and Management Commands
  • Meta Node API
  • BlobStore API
  • Command Line Interface

use case

  • Use Cases

Evaluation

  • Performance
  • Integrity
  • Workload
  • Scalability

Contributing

  • Contributing to CubeFS

FAQ

  • Environment Requirements and Capacity Planning
  • Q&A
CubeFS
  • Resource Manager (Master) API
  • Datanode Related

Datanode Related

GET

curl -v "http://10.196.59.198:17010/dataNode/get?addr=10.196.59.201:17310"  | python -m json.tool

Show the base information of the dataNode, such as addr, disk total size, disk used size and so on.

Parameters

Parameter

Type

Description

addr

string

the addr which communicate with master

response

{
    "TotalWeight": 39666212700160,
    "UsedWeight": 2438143586304,
    "AvailableSpace": 37228069113856,
    "ID": 2,
    "Zone": "zone1",
    "Addr": "10.196.59.201:17310",
    "ReportTime": "2018-12-06T10:56:38.881784447+08:00",
    "IsActive": true
    "UsageRatio": 0.06146650815226848,
    "SelectTimes": 5,
    "Carry": 1.0655859145960367,
    "DataPartitionReports": {},
    "DataPartitionCount": 21,
    "NodeSetID": 3,
    "PersistenceDataPartitions": {},
    "BadDisks": {}
}

Decommission

curl -v "http://10.196.59.198:17010/dataNode/decommission?addr=10.196.59.201:17310"

Remove the dataNode from cluster, data partitions which locate the dataNode will be migrate other available dataNode asynchronous.

Parameters

Parameter

Type

Description

addr

string

the addr which communicate with master

Get disk information

curl -v "http://192.168.0.11:17320/disks"

Get disk information, including disk path, space usage, disk status, etc.

Get data partition information

curl -v "http://192.168.0.11:17320/partitions"

Get data partition information, including partition ID, partition size and status, etc.

Offline Disk

curl -v "http://10.196.59.198:17010/disk/decommission?addr=10.196.59.201:17310&disk=/cfs1"

Synchronously offline all the data partitions on the disk, and create a new replica for each data partition in the cluster.

Parameters

Parameter

Type

Description

addr

string

replica address

disk

string

disk path

count

int

The number of data partitions to offline from disk,default(0) means all be offlined

Migrate

curl -v "http://10.196.59.198:17010/dataNode/migrate?srcAddr=src&targetAddr=dst&count=3"

Migrate the specified number of data partitions from the source data node to the target data node.

Parameters

Parameter

Type

Description

srcAddr

string

Source data node

targetAddr

string

Target data node

count

int

The number of data partitions to migrate,default(50)

Previous Next

© Copyright 2018, The Cube Authors. Revision b7f90c38.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
html
On Read the Docs
Project Home
Builds