1 =================================
2 Deploying a development cluster
3 =================================
5 In order to develop on ceph, a Ceph utility,
6 *vstart.sh*, allows you to deploy fake local cluster for development purpose.
11 It allows to deploy a fake local cluster on your machine for development purpose. It starts rgw, mon, osd and/or mds, or all of them if not specified.
13 To start your development cluster, type the following::
15 vstart.sh [OPTIONS]...
17 In order to stop the cluster, you can type::
24 .. option:: -i ip_address
26 Bind to the specified *ip_address* instead of guessing and resolve from hostname.
30 Keep old configuration files instead of overwritting theses.
32 .. option:: -l, --localhost
34 Use localhost instead of hostanme.
36 .. option:: -m ip[:port]
38 Specifies monitor *ip* address and *port*.
46 Add *config* to all sections in the ceph configuration.
48 .. option:: --nodaemon
50 Use ceph-run as wrapper for mon/osd/mds.
52 .. option:: --smallmds
54 Configure mds with small limit cache size.
58 Enable Cephx (on by default).
64 .. option:: -d, --debug
68 .. option:: --valgrind[_{osd,mds,mon}] 'valgrind_toolname [args...]'
70 Launch the osd/mds/mon/all the ceph binaries using valgrind with the specified tool and arguments.
72 .. option:: --bluestore
74 Use bluestore as the objectstore backend for osds
76 .. option:: --memstore
78 Use memstore as the objectstore backend for osds
80 .. option:: --cache <pool>
82 Set a cache-tier for the specified pool
90 Theses environment variables will contains the number of instances of the desired ceph process you want to start.
94 OSD=3 MON=3 RGW=1 vstart.sh
97 ============================================================
98 Deploying multiple development clusters on the same machine
99 ============================================================
101 In order to bring up multiple ceph clusters on the same machine, *mstart.sh* a
102 small wrapper around the above *vstart* can help.
107 To start multiple clusters, you would run mstart for each cluster you would want
108 to deploy, and it will start monitors, rgws for each cluster on different ports
109 allowing you to run multiple mons, rgws etc. on the same cluster. Invoke it in
112 mstart.sh <cluster-name> <vstart options>
116 ./mstart.sh cluster1 -n -r
119 For stopping the cluster, you do::
121 ./mstop.sh <cluster-name>