diff options
Diffstat (limited to 'recipes-extended/ceph/ceph/ceph.conf')
-rw-r--r-- | recipes-extended/ceph/ceph/ceph.conf | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/recipes-extended/ceph/ceph/ceph.conf b/recipes-extended/ceph/ceph/ceph.conf new file mode 100644 index 00000000..fd9de6ce --- /dev/null +++ b/recipes-extended/ceph/ceph/ceph.conf | |||
@@ -0,0 +1,70 @@ | |||
1 | [global] | ||
2 | # Unique ID for the cluster. Run uuidgen to get this string. | ||
3 | fsid = %CLUSTER_UUID% | ||
4 | # Initial monitor | ||
5 | mon initial members = node1 | ||
6 | # IP address of the initial monitor, i.e. 128.224.149.xx | ||
7 | mon host = %PUBLIC_IP% | ||
8 | # Public network where the monitor is connected to, i.e, 128.224.0.0/16 | ||
9 | public network = %PUBLIC_DOMAIN% | ||
10 | # For version 0.55 and beyond, you must explicitly enable | ||
11 | # or disable authentication with "auth" entries in [global]. | ||
12 | auth cluster required = cephx | ||
13 | auth service required = cephx | ||
14 | auth client required = cephx | ||
15 | osd journal size = 1024 | ||
16 | |||
17 | # Uncomment the following line if you are mounting with ext4 | ||
18 | # filestore xattr use omap = true | ||
19 | |||
20 | # Number of replicas of objects. Write an object 2 times. | ||
21 | # Cluster cannot reach an active + clean state until there's enough OSDs | ||
22 | # to handle the number of copies of an object. In this case, it requires | ||
23 | # at least 2 OSDs | ||
24 | osd pool default size = 2 | ||
25 | |||
26 | # Allow writing one copy in a degraded state. | ||
27 | osd pool default min size = 1 | ||
28 | |||
29 | # Ensure you have a realistic number of placement groups. We recommend | ||
30 | # approximately 100 per OSD. E.g., total number of OSDs multiplied by 100 | ||
31 | # divided by the number of replicas (i.e., osd pool default size). So for | ||
32 | # 10 OSDs and osd pool default size = 2, we'd recommend approximately | ||
33 | # (100 * 10) / 2 = 500. | ||
34 | osd pool default pg num = 500 | ||
35 | osd pool default pgp num = 500 | ||
36 | osd crush chooseleaf type = 1 | ||
37 | |||
38 | [osd] | ||
39 | osd mkfs type = xfs | ||
40 | osd mkfs options xfs = "-f" | ||
41 | osd mount options xfs = "rw,noatime,inode64,logbufs=8,logbsize=256k" | ||
42 | |||
43 | # All port numbers below are not hard-coded, but expected by ceph, so please | ||
44 | # do not change the numbers. | ||
45 | [mon.node1] | ||
46 | host = node1 | ||
47 | mon addr = %PUBLIC_IP%:6789 | ||
48 | |||
49 | [osd.0] | ||
50 | host = node1 | ||
51 | public addr = %PUBLIC_IP%:6800 | ||
52 | cluster addr = %PRIVATE_IP%:6800 | ||
53 | devs = /dev/sda1 | ||
54 | |||
55 | [osd.1] | ||
56 | host = node1 | ||
57 | public addr = %PUBLIC_IP%:6801 | ||
58 | cluster addr = %PRIVATE_IP%:6801 | ||
59 | devs = /dev/sda2 | ||
60 | |||
61 | [osd.2] | ||
62 | host = node1 | ||
63 | public addr = %PUBLIC_IP%:6802 | ||
64 | cluster addr = %PRIVATE_IP%:6802 | ||
65 | devs = /dev/sda3 | ||
66 | |||
67 | [mds.a] | ||
68 | host = node1 | ||
69 | devs = /dev/sda4 | ||
70 | |||