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
      • GET
      • Decommission
      • Threshold
      • Migrate
    • Datanode Related
    • 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
  • Metanode Related

Metanode Related

GET

curl -v "http://10.196.59.198:17010/metaNode/get?addr=10.196.59.202:17210"  | python -m json.tool

Show the base information of the metaNode, such as addr, total memory, used memory and so on.

Parameters

Parameter

Type

Description

addr

string

the addr which communicate with master

response

{
    "ID": 3,
    "Addr": "10.196.59.202:17210",
    "IsActive": true,
    "Zone": "zone1",
    "MaxMemAvailWeight": 66556215048,
    "TotalWeight": 67132641280,
    "UsedWeight": 576426232,
    "Ratio": 0.008586377967698518,
    "SelectCount": 0,
    "Carry": 0.6645600532184904,
    "Threshold": 0.75,
    "ReportTime": "2018-12-05T17:26:28.29309577+08:00",
    "MetaPartitionCount": 1,
    "NodeSetID": 2,
    "PersistenceMetaPartitions": {}
}

Decommission

curl -v "http://127.0.0.1/metaNode/decommission?addr=127.0.0.1:9021"

Remove the metaNode from cluster, meta partitions which locate the metaNode will be migrate other available metaNode asynchronous.

Parameters

Parameter

Type

Description

addr

string

the addr which communicate with master

Threshold

curl -v "http://127.0.0.1/threshold/set?threshold=0.75"

If the used memory percent arrives the threshold, the status of the meta partitions which locate the metaNode will be read only.

Parameters

Parameter

Type

Description

threshold

float64

the max percent of memory which metaNode can use

Migrate

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

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

Parameters

Parameter

Type

Description

srcAddr

string

Source meta node

targetAddr

string

Target meta node

count

int

The number of meta 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