]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: enable RBD cache and socket on OpenStack deployments 2892/head
authorSébastien Han <sebastien.han@enovance.com>
Mon, 10 Nov 2014 14:06:20 +0000 (15:06 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Wed, 12 Nov 2014 09:19:44 +0000 (10:19 +0100)
Enabling the RBD cache improves sequential IOs and the socket helps a
lot while troubleshooting. These 2 items are considered as best
practice for OpenStack deployments with Ceph.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
doc/rbd/rbd-openstack.rst

index 885e4469fa734d0bef8e715a49800e8fee59cf0b..10d1d9af144c53f6e9711ab16b18fb86e604ee18 100644 (file)
@@ -263,6 +263,25 @@ Configuring Nova
 In order to boot all the virtual machines directly into Ceph, you must
 configure the ephemeral backend for Nova.
 
+It is recommended to enable the RBD cache in your Ceph configuration file
+(enabled by default since Giant). Moreover, enabling the admin socket
+brings a lot of benefits while troubleshoothing. Having one socket
+per virtual machine using a Ceph block device will help investigating performance and/or wrong behaviors.
+
+This socket can be accessed like this::
+
+    ceph daemon /var/run/ceph/ceph-client.cinder.19195.32310016.asok help
+
+Now on every compute nodes edit your Ceph configuration file::
+
+    [client]
+        rbd cache = true
+        rbd cache writethrough until flush = true
+        admin socket = /var/run/ceph/$cluster-$type.$id.$pid.$cctid.asok
+
+.. tip:: If your virtual machine is already running you can simply restart it to get the socket
+
+
 Havana and Icehouse
 ~~~~~~~~~~~~~~~~~~~
 
@@ -295,13 +314,13 @@ On every Compute node, edit ``/etc/nova/nova.conf`` and add::
 To ensure a proper live-migration, use the following flags::
 
     libvirt_live_migration_flag="VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST"
-    
-    
+
+
 Juno
 ~~~~
 
-In Juno, Ceph block device was moved under the ``[libvirt]`` section. 
-On every Compute node, edit ``/etc/nova/nova.conf`` under the ``[libvirt]`` 
+In Juno, Ceph block device was moved under the ``[libvirt]`` section.
+On every Compute node, edit ``/etc/nova/nova.conf`` under the ``[libvirt]``
 section and add::
 
     [libvirt]