From: Colin McCabe Subject: Re: [PATCH] config: Update sample config with more examples Date: Thu, 21 Apr 2011 14:14:12 -0700 Message-ID: References: <1303416459-29471-1-git-send-email-wido@widodh.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:60412 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754109Ab1DUVWF convert rfc822-to-8bit (ORCPT ); Thu, 21 Apr 2011 17:22:05 -0400 Received: by fxm17 with SMTP id 17so77708fxm.19 for ; Thu, 21 Apr 2011 14:22:04 -0700 (PDT) In-Reply-To: <1303416459-29471-1-git-send-email-wido@widodh.nl> Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Wido den Hollander Cc: ceph-devel@vger.kernel.org Looks good. I would leave out the "log dir" stuff, though. That thing has been deprecated since forever in favor of "log file". cheers, Colin On Thu, Apr 21, 2011 at 1:07 PM, Wido den Hollander wr= ote: > > Signed-off-by: Wido den Hollander > --- > =A0src/sample.ceph.conf | =A0 77 ++++++++++++++++++++++++++++++++++++= ++++++-------- > =A01 files changed, 65 insertions(+), 12 deletions(-) > > diff --git a/src/sample.ceph.conf b/src/sample.ceph.conf > index 473114b..67cb5ae 100644 > --- a/src/sample.ceph.conf > +++ b/src/sample.ceph.conf > @@ -10,6 +10,22 @@ > =A0; the current host (e.g., in a setup with a startup.conf on each > =A0; node). > > +; The variables $type, $id and $name are available to use in paths > +; $type =3D The type of daemon, possible values: mon, mds and osd > +; $id =3D The ID of the daemon, for mon.alpha, $id will be alpha > +; $name =3D $type.$id > + > +; For example: > +; osd.0 > +; =A0$type =3D osd > +; =A0$id =3D 0 > +; =A0$name =3D osd.0 > + > +; mon.beta > +; =A0$type =3D mon > +; =A0$id =3D beta > +; =A0$name =3D mon.beta > + > =A0; global > =A0[global] > =A0 =A0 =A0 =A0; enable secure authentication > @@ -18,17 +34,42 @@ > =A0 =A0 =A0 =A0 ; allow ourselves to open a lot of files > =A0 =A0 =A0 =A0 max open files =3D 131072 > > - =A0 =A0 =A0 =A0; set up logging > - =A0 =A0 =A0 =A0log file =3D /var/log/ceph/$name.log > + =A0 =A0 =A0 =A0; You can change the default log location if you wan= t to > + =A0 =A0 =A0 =A0;log dir =3D /var/log/ceph > + =A0 =A0 =A0 =A0;log file =3D $name.log > + > + =A0 =A0 =A0 =A0; Logging to syslog is also possible > + =A0 =A0 =A0 =A0; If you want to disable logging to files, you shoul= d empty log dir and file > + =A0 =A0 =A0 =A0;log to syslog =3D true > + =A0 =A0 =A0 =A0;log dir =3D > + =A0 =A0 =A0 =A0;log file =3D > + > + =A0 =A0 =A0 =A0; This is the default pid file location > + =A0 =A0 =A0 =A0;pid file =3D /var/run/ceph/$name.pid > > - =A0 =A0 =A0 =A0; set up pid files > - =A0 =A0 =A0 =A0pid file =3D /var/run/ceph/$name.pid > + =A0 =A0 =A0 =A0; If you want to run a IPv6 cluster, set this to tru= e. Dual-stack isn't possible > + =A0 =A0 =A0 =A0;ms bind ipv6 =3D true > > =A0; monitors > =A0; =A0You need at least one. =A0You need at least three if you want= to > =A0; =A0tolerate any node failures. =A0Always create an odd number. > =A0[mon] > - =A0 =A0 =A0 mon data =3D /data/mon$id > + =A0 =A0 =A0 mon data =3D /data/$name > + > + =A0 =A0 =A0 =A0; If you are using for example the RADOS Gateway and= want to have your newly created > + =A0 =A0 =A0 =A0; pools a higher replication level, you can set a de= fault > + =A0 =A0 =A0 =A0;osd pool default size =3D 3 > + > + =A0 =A0 =A0 =A0; You can also specify a CRUSH rule for new pools > + =A0 =A0 =A0 =A0; Wiki: http://ceph.newdream.net/wiki/Custom_data_pl= acement_with_CRUSH > + =A0 =A0 =A0 =A0;osd pool default crush rule =3D 0 > + > + =A0 =A0 =A0 =A0; Timing is critical for monitors, but if you want t= o allow the clocks to drift a > + =A0 =A0 =A0 =A0; bit more, you can specify the max drift. > + =A0 =A0 =A0 =A0;mon clock drift allowed =3D 1 > + > + =A0 =A0 =A0 =A0; Tell the monitor to backoff from this warning for = 30 seconds > + =A0 =A0 =A0 =A0;mon clock drift warn backoff =3D 30 > > =A0 =A0 =A0 =A0; logging, for debugging monitor crashes, in order of > =A0 =A0 =A0 =A0; their likelihood of being helpful :) > @@ -37,15 +78,15 @@ > =A0 =A0 =A0 =A0;debug paxos =3D 20 > =A0 =A0 =A0 =A0;debug auth =3D 20 > > -[mon.0] > +[mon.alpha] > =A0 =A0 =A0 =A0host =3D alpha > =A0 =A0 =A0 =A0mon addr =3D 192.168.0.10:6789 > > -[mon.1] > +[mon.beta] > =A0 =A0 =A0 =A0host =3D beta > =A0 =A0 =A0 =A0mon addr =3D 192.168.0.11:6789 > > -[mon.2] > +[mon.gamma] > =A0 =A0 =A0 =A0host =3D gamma > =A0 =A0 =A0 =A0mon addr =3D 192.168.0.12:6789 > > @@ -70,17 +111,25 @@ > =A0; =A0Define as many as you like. > =A0[osd] > =A0 =A0 =A0 =A0; This is where the btrfs volume will be mounted. > - =A0 =A0 =A0 osd data =3D /data/osd$id > + =A0 =A0 =A0 osd data =3D /data/$name > > =A0 =A0 =A0 =A0; Ideally, make this a separate disk or partition. =A0= A few > =A0 =A0 =A0 =A0; hundred MB should be enough; more if you have fast o= r many > =A0 =A0 =A0 =A0; disks. =A0You can use a file under the osd data dir = if need be > - =A0 =A0 =A0 ; (e.g. /data/osd$id/journal), but it will be slower th= an a > + =A0 =A0 =A0 ; (e.g. /data/$name/journal), but it will be slower tha= n a > =A0 =A0 =A0 =A0; separate disk or partition. > > =A0 =A0 =A0 =A0 ; This is an example of a file-based journal. > - =A0 =A0 =A0 osd journal =3D /data/osd$id/journal > - =A0 =A0 =A0 osd journal size =3D 1000 ; journal size, in megabytes > + =A0 =A0 =A0 osd journal =3D /data/$name/journal > + =A0 =A0 =A0 =A0; Journal size, in megabytes > + =A0 =A0 =A0 osd journal size =3D 1000 > + > + =A0 =A0 =A0 =A0; If you want to run the journal on a tmpfs, disable= DirectIO > + =A0 =A0 =A0 =A0;journal dio =3D false > + > + =A0 =A0 =A0 =A0; You can change the number of recovery operations t= o speed up recovery > + =A0 =A0 =A0 =A0; or slow it down if your machines can't handle it > + =A0 =A0 =A0 =A0;osd recovery max active =3D 3 > > =A0 =A0 =A0 =A0; osd logging to debug osd issues, in order of likelih= ood of being > =A0 =A0 =A0 =A0; helpful > @@ -98,6 +147,10 @@ > =A0 =A0 =A0 =A0; usually fine for basic testing). > =A0 =A0 =A0 =A0btrfs devs =3D /dev/sdx > > + =A0 =A0 =A0 =A0; If you want to specify some other mount options, y= ou can do so. > + =A0 =A0 =A0 =A0; The default values are rw,noatime > + =A0 =A0 =A0 =A0;btrfs options =3D rw,noatime > + > =A0[osd.1] > =A0 =A0 =A0 =A0host =3D epsilon > =A0 =A0 =A0 =A0btrfs devs =3D /dev/sdy > -- > 1.7.0.4 > > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel"= in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html