Ceph Rest Api 文档

Teuthology平台部署手册 Teuthology架构自动化测试框架流程大致如下:软件组成Teuthology 测试框架所使用到的软件组成如下:Jenkins 持续集成工具teuthology Ceph 测试套件shaman 查询提供软件包的 chacra 节点,水平扩展和调度 chacra 节点chacra 提供不同架构二进制包或文件的管理 REST API 接口Teuthology部署部署paddles/pulpito n... 阅读详情

Ceph Rest Api 是一套ceph自带的HTTP接口,官方文档上待补充,但其实,配好ceph rest api之后,默认页面会显示所有的API列表。放在这里作为参考。

Possible commands: Method Description
auth/add?entity=entity(<string>)&caps={c aps(<string>) [<string>...]} PUT add auth info for <entity> from input file, or random key if no input is given, and/or any caps specified in the command
auth/caps?entity=entity(<string>)&caps=c aps(<string>) [<string>...] PUT update caps for <name> from caps specified in the command
auth/del?entity=entity(<string>) PUT delete all caps for <name>
auth/export?entity={entity(<string>)} GET write keyring for requested entity, or master keyring if none given
auth/get?entity=entity(<string>) GET write keyring file with requested key
auth/get-key?entity=entity(<string>) GET display requested key
auth/get-or-create?entity=entity(<string >)&caps={caps(<string>) [<string>...]} PUT add auth info for <entity> from input file, or random key if no input given, and/or any caps specified in the command
auth/get-or-create-key?entity=entity(<st ring>)&caps={caps(<string>) [<string>...]} PUT get, or add, key for <name> from system/caps pairs specified in the command. If key already exists, any given caps must match the existing caps for that key.
auth/import PUT auth import: read keyring file from -i <file>
auth/list GET list authentication state
auth/print-key?entity=entity(<string>) GET display requested key
auth/print_key?entity=entity(<string>) GET display requested key
tell/<osdid-or-pgid>/bench?count={count( <int>)}&size={size(<int>)} PUT OSD benchmark: write <count> <size>-byte objects, (default 1G size 4MB). Results in log.
tell/<osdid-or-pgid>/cluster_log?level=e rror&message=message(<string>) [<string>...] PUT log a message to the cluster log
compact PUT cause compaction of monitor's leveldb storage
config-key/del?key=key(<string>) PUT delete <key>
config-key/exists?key=key(<string>) GET check for <key>'s existence
config-key/get?key=key(<string>) GET get <key>
config-key/list GET list keys
config-key/put?key=key(<string>)&val={va l(<string>)} PUT put <key>, value <val>
tell/<osdid-or- pgid>/cpu_profiler?arg=arg(status|flush) PUT run cpu profiling on daemon
tell/<osdid-or-pgid>/debug/kick_recovery _wq?delay=delay(<int[0-]>) PUT set osd_recovery_delay_start to <val>
tell/<osdid-or-pgid>/debug_dump_missing? filename=filename(<outfilename>) GET dump missing objects to a named file
df?detail={detail} GET show cluster free space stats
tell/<osdid-or- pgid>/dump_pg_recovery_stats GET dump pg recovery statistics
tell/<osdid-or-pgid>/flush_pg_stats PUT flush pg stats
fs/ls GET list filesystems
fs/new?fs_name=fs_name(<string>)&metadat a=metadata(<string>)&data=data(<string>) PUT make new filesystem using named pools <metadata> and <data>
fs/reset?fs_name=fs_name(<string>)&sure= {--yes-i-really-mean-it} PUT disaster recovery only: reset to a single-MDS map
fs/rm?fs_name=fs_name(<string>)&sure={-- yes-i-really-mean-it} PUT disable the named filesystem
fsid GET show cluster FSID/UUID
health?detail={detail} GET show cluster health
heap?heapcmd=heapcmd(dump|start_profiler |stop_profiler|release|stats) PUT show heap usage info (available only if compiled with tcmalloc)
tell/<osdid-or-pgid>/heap?heapcmd=heapcm d(dump|start_profiler|stop_profiler|rele ase|stats) PUT show heap usage info (available only if compiled with tcmalloc)
injectargs?injected_args=injected_args(< string>) [<string>...] PUT inject config arguments into monitor
tell/<osdid-or-pgid>/injectargs?injected _args=injected_args(<string>) [<string>...] PUT inject configuration arguments into running OSD
tell/<osdid-or-pgid>/list_missing?offset ={offset(<string>)} GET list missing objects on this pg, perhaps starting at an offset given in JSON
log?logtext=logtext(<string>) [<string>...] PUT log supplied text to the monitor log
tell/<osdid-or-pgid>/mark_unfound_lost?m ulcmd=mulcmd(revert|delete) PUT mark all unfound objects in this pg a
ceph-rest-api的IPv6环境配置 本文作者: lemon 本文链接: https://lemon2013.github.io/2017/12/26/ceph-rest-api/ 版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 许可协议。转载请注明出处! 引言 ceph-rest-api 是一个 WSGI (网页服务网关接口)应用程序,可作为网页服务独立运行,也可在支持 WSGI 的网页服务器... 阅读详情

相关推荐

ceph 版本选择 

稳定版本 J 版本 filestore 对文件系统的存储,格式化出系统能够识别的格式,量大了会出现很多问题,需要二次开发 L 版本 bluestore 直接操作裸盘,raid 0 ,ceph-volume 命令格式化,add ceph 到集群,所以比J 版本快很多 ...

qq_36270681的博客 5366

go-ceph-rest-api:Go 中的 Ceph Rest API

go-ceph-rest-api 我们可怜地尝试移植 Ceph API。 初始化子模块 ceph-ansible 克隆后,运行 $ git submodule init $ git submodule update 设置工作区 我们需要访问 cephceph-dev 库来处理这个问题。 启动 vagrant box 以启动工作区。 $ vagrant up 工作区应该安装在/vagrant/workspace 。 这被设置为$GOPATH以在 VM 内部工作。 构建项目 构建二进制文件是在 VM 内完成的。 $ vagrant ssh $ cd /vagrant/workspace/src/github.com/darkcrux/go-ceph-rest-api $ go get $ go build 运行 API 目前,二进制文件将使用默认的 ceph 配置。 这需

Ceph概述、准备ceph部署环境、cephadm概述、安装Ceph集群、ceph块存储、存储池、rbd镜像管理、ceph客户端配置

块存储:提供像普通硬盘一样的存储,为使用者提供“硬盘”文件系统存储:类似于NFS的共享方式,为使用者提供共享文件夹对象存储:像百度云盘一样,需要使用单独的客户端Ceph存储集群至少需要一个Ceph监视器、Ceph管理器和Ceph OSD(对象存储守护程序)。运行Ceph文件系统客户端时,需要Ceph元数据服务器。监视器:Ceph Monitor(ceph-mon)维护集群状态图,包括监视器图、管理器图、OSD图、MDS图和CRUSH图。这些映射是Ceph守护进程相互协调所需的关键集群状态。

fmj121030的博客 2434

ceph-rest-api的使用

最近在想怎么去更有效的监控和管理ceph集群的问题,之前主要就是脚本调用ceph的命令,有没有更方便和有效的方式呢?之前部署过calamari,不过这个calamari比较庞大,所以看看ceph原生的rest api. ceph rest api是一个wsgi(Web Service Gateway Interface)应用,默认监听5000端口 ceph-rest-api

hit1944的专栏 8618

ceph对象存储和REST api访问对象存储实战

对象存储将数据存储为离散的项,每个项单独称为一个对象。与文件系统中的文件不同,对象不是在目录和子目录树中组织的。相反,对象存储在平坦的名称空间中。通过使用对象的唯一对象ID(也称为对象键)检索每个对象。应用程序不使用普通的文件系统操作来访问对象数据。相反,应用程序访问REST API来发送和接收对象。Red Hat Ceph Storage支持两种最常见的对象api: Amazon S3(简单存储服务)和OpenStack Swift(OpenStack对象存储)。

悦分享 450

Ceph部署

CRUSH 算法通过计算数据存储位置来确定如何存储和检索。CRUSH授权Ceph 客户端直接连接 OSD ,而非通过一个中央服务器或代理。数据存储、检索算法的使用,使 Ceph 避免了单点故障、性能瓶颈、和伸缩的物理限制。CRUSH 需要一张集群的 Map,利用该Map中的信息,将数据伪随机地、尽量平均地分布到整个集群的 OSD 里。OSD 列表把设备汇聚为物理位置的“桶”(Bucket,也叫失败域,Failure Domain)列表指示 CRUSH 如何复制存储池中的数据的规则列表。

任我行的博客 1979

使用Rest api管理Ceph网关

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34292959的博客 261

Ceph集群搭建系列(三):Ceph 集群图形管理和监控

转载:ceph监控系统 ceph监控系统 ceph的相关项目提供ceph监控和管理工具来监控信息 。本文简要介绍inkscope和calamari两种监控管理工具。 通过本章我们可以学到Ceph官方提供ceph-rest-api,并带领大家一步一步实现基于ceph-rest-api的Web监控管理工具。 1. inkscope 工具 [inkscope]安装的ceph...

Yannick Jiang 的专栏 2678

Calamari 项目推荐

Calamari 项目推荐 1. 项目基础介绍和主要编程语言 Calamari 是一个用于 Ceph 存储系统的 Web 监控和管理服务Ceph 是一个开源的分布式存储系统,而 Calamari 则提供了一个基于 Web 的界面来监控和管理 Ceph 集群。该项目的主要编程语言包括 Python、Roff、SaltStack、Makefile、Shell 和 Ruby。 2. 项目核心功能 Ca...

gitblog_00780的博客 333

ceph-rest-api_快速检查REST API是否有效的方法-从清单文件中获取详细信息

ceph-rest-api 在某些情况下,您可能想快速验证部署在开发,测试或生产环境中的REST API是否完全可以访问。 一种常见的实现方法是构建通用资源,该资源可提供例如已部署API的版本。 您可以手动触发对此资源的请求,或者更好的是,执行Jenkings / Hudson作业,该作业在部署后运行检查作业。 在这篇文章中,我将介绍如何实现从应用程序清单文件中读取实现细节的服务。 经验证的A...

最佳 Java 编程 276

Ceph API服务开发--S3对象操作

目标:完成Ceph基于对象网关的对象创建、删除、下载等功能的开发环境:CentOS7 / IntelliJ IDEA步骤:radosgw简介-&gt;s3对象操作功能开发-&gt;运行测试1.radosgw简介Ceph对象网关是一个构建在librados之上的对象存储接口,为应用程序访问Ceph存储提供了一个RESTful风格的网关。支持2种接口:(1)Amazon S3:项目使用接口(2)Ope...

xingyuzhe的博客 4305

ceph搭建及使用详解

第1章 ceph介绍 1.1 Ceph的主要特点 统一存储 无任何单点故障 数据多份冗余 存储容量可扩展 自动容错及故障自愈 1.2 Ceph三大角色组件及其作用 在Ceph存储集群中,包含了三大角色组件,他们在Ceph存储集群中表现为3个守护进程,分别是Ceph OSD、Monitor、MDS。当然还有其他的功能组件,但是最主要的是这三个。 Ceph OSD Ceph的OSD(Object Storage Device)守护进程。主要功能包括:存储数据、副本数据处理、数据恢复、数据回补、平衡数据分布,并将

weixin_40548182的博客 1万+

ceph-rest-api_HATEOAS-REST API的重要概念

ceph-rest-api HATEOAS-REST API的重要概念 (HATEOAS - Important Concept For REST API) HATEOAS stands for Hypertext As The Engine Of Application State. Now what does it mean and why this is important. It's a...

cunfen6312的博客 185

Ceph Swift Api 配置与使用(三)

目录 Ceph Swift Api 配置与使用 一、Ceph Swift Api 说明 二、Ceph Swift Api 特点 三、Ceph RGW 介绍 四、Ceph 存储结构 五、Ceph Swift Api 服务端的配置 1、确保集群正常安装并启动: 2、验证网关是否正常 3、创建Swift用户, 用于接口请求认证 4、激活管理后台的对象存储模块: 5、创建一个管理用户: 六、Ceph Swift Api 调用验证 1、创建ceph-demo工程: Ceph Swi..

Lansonli(蓝深李)的博客 1249

ceph rest api启用

1、在ceph的monitor服务器端。 修改vi /etc/ceph/ceph.conf下增加 [global] public addr = 1.2.0.0: 40000 2、如果1中不修改,则默认是0.0.0.0:5000 3、启用ceph-rest-api ceph-rest-api -n client.admin 转载于:https://www.cnblo...

weixin_30610755的博客 438

CEPH-初识篇】Ceph 详细介绍,一篇解决 Ceph 集群搭建, 三大存储使用

你好,我是无名小歌。 今天给大家分享一个分布式存储系统ceph。什么是cephCeph在一个统一的系统中独特地提供对象存储、块存储和文件存储。

持续分享,个人的运维经验,包含:云计算、Linux、Windows、容器、K8s、CICD、Python、运维开发、公有云等;以及个人经历相关内容,包含:实习、面试经验等。 9993

Ceph管理平台Calamari的架构与功能分析

Calamari项目开始于2013年夏天,创立它的初衷是开发一个Ceph管理平台, Calamari对外提供了十分漂亮的web管理和监控界面,以及一套改进的REST API接口(不同于Ceph自身的REST API),在一定程度上简化了Ceph的管理。最初Calamari是作为Inktank公司的Ceph企业级商业产品来销售,红帽今年5月30日收购Inktank后为了更好地推动Ceph的发展,对外宣布Calamari开源,秉承开源开放精神的红帽着实又做了一件非常有意义的事情。本文将简单剖析Calamari的

破木吉他 1478
上一篇: php-fpm 启动参数及重要配置详解
下一篇: git commit 失败"Untracked files,Changes not staged for commit" 问题的解决
donglynn
博客等级 码龄18年 147粉丝 140原创
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值