Вы находитесь на странице: 1из 29

Calamari Overview

June 2014
Calamari
A high level interface for Ceph
administrators:
!
Graphical user interface
REST API
!
!
First released in 2013 as part of
Ceph Enterprise
Inktank
!
Recently released as open source
software by Red Hat
!
Ceph CLI
# ceph status
cluster 2f4a59b1-ea72-4153-929e-eba559aca948
health
monma
p
mdsma
p
osdmap
pgmap
HEALTH_WARN
3
e1: 1 mons at
near full osd(s)
{a=100.44.151.141:6789/0},
{0=a=up:active}
election epo
e10:
e16:
v29:
1/1/1 up
3 osds: 3 up, 3 in
264 pgs, 3 pools, 1894 bytes data, 20 objects
315 GB used, 5655 MB / 338 GB avail
128
136
7101 B/s
active+clean+replay
active+clean rd,
6 op/s client io
For contrast: Ceph CLI
# ceph osd dump
epoch 20
fsid 2f4a59b1-ea72-4153-929e-eba559aca948 created
2014-06-23 23:22:52.927811 modified 2014-06-23
23:28:55.310487
flags
pool 0 'rbd' replicated size 3 min_size 1 crush_ruleset 0 object_hash rjenkins pg_nu
pool 1 'cephfs_data' replicated size 3 min_size 1 crush_ruleset 0 object_hash rjenki
stripe_width 0
pool 2 'cephfs_metadata' replicated size 3 min_size 1 crush_ruleset 0 object_hash rj
max_osd 3
osd.0 up in weight 1 up_from 19 up_thru 19 down_at 18 last_clean_interval [15,16)
100.44.151.141:6804/29476 exists,up fc3c4961-1b55-4038-8b21-7b39f9c1d004
osd.1 up in weight 1 up_from 19 up_thru 19 down_at 18 last_clean_interval [15,16)
100.44.151.141:6810/29482 exists,up f246b34d-1023-4e86-a5cb-f068d2050a81
osd.2 up in weight 1 up_from 19 up_thru 19 down_at 18 last_clean_interval [15,16)
100.44.151.141:6822/29488 exists,up
blacklist 100.44.151.141:6815/26222 blacklist
100.44.151.141:6823/27374
87335244-466c-4c42-859f-bf00109230a5
expires 2014-06-23 23:49:11.465028 expires
2014-06-23 23:52:52.126655
REST example
Calamari API
More than a proxy to Ceph CLI:
High level operations: dont just issue
a command, wait until it has taken
effect.
Consistency: dont consider operations
complete until related state is updated in
Calamari.
Validation and informative errors.
Asynchronous: a request ID to monitor
for completion or cancellation, instead
of blocking during operation.
!
!
!
!
Accessible API documentation
Available at http://calamari.readthedocs.org
Management Integration
EASY
is now
A higher level API is
easier to integrate with:
!
management tools like
Horizon
open source
monitoring stacks

your custom tools
!
!
!
Build custom dashboards
for info you care about
!
Calamari Architecture
LAN
salt-minion

Diamond

Ceph server

salt-minion

Diamond

Ceph server

salt-minion

Diamond

Ceph server

salt-master

graphite

Calamari REST API

Calamari service

Calamari User Interface

your app here
Technologies in Calamari
Python/Javascript with emphasis on
re-use:
!
Existing system components wherever
!
possible: SaltStack,
Diamond, ZeroMQ,
Familiar frameworks:
graphite,
PostgreSQL
Django,
!
django-rest-framework, angular.js
Downside: lots of dependencies - work
ongoing to simplify packaging.
!
Calamari Extensibility
Exploit existing frameworks plugin
engines:
!
Extend agent-side code with existing
module interfaces of Diamond and
SaltStack
Extend Calamari server with new
ZeroRPC services and
django-rest-framework ViewSets.
!
!
REST is naturally extensible using URL
namespaces
User Interface divided into apps
!
!
Calamari is now Open Source
Source code:
https://github.com/ceph/calamari
https://github.com/ceph/calamari-clients
Mailing list:
http://lists.ceph.com/listinfo.cgi/ceph-calamari-ceph.c om
Issue tracker:
http://tracker.ceph.com/projects/calamari
Documentation:
http://calamari.readthedocs.org
Licensing:
LGPL (python) and MIT (javascript)
Future
Inktank Ceph Enterprise 1.2 coming soon:
!
http://www.inktank.com/enterprise/
!
Ceph Developer Summit
!
When: Tuesday June 24th
Where: online
Plan Giant and Hammer Ceph releases
Kick off community work on Calamari
!
!
!
!
Get involved with the Ceph community
at:
http://www.ceph.com
!



!ohn Spray
Senlor ueveloper
!ohn.spray[lnkLank.com

2
8
ConLacL us
lnfo[lnkLank.com
1-833-lnk1Ank

uon'L forgeL Lo follow us on:
1wluer: hups://Lwluer.com/lnkLank
lacebook: hup://www.facebook.com/lnkLank
?ou1ube: hup://www.youLube.com/lnkLanksLorage



1hank you for llsLenlng!