Questo contenuto non è disponibile nella lingua selezionata.
Chapter 3. Deploying Ceph services on dedicated nodes
By default, director deploys the Ceph MON and Ceph MDS services on the Controller nodes. This is suitable for small deployments. However, with larger deployments, Red Hat recommends that you deploy the Ceph MON and Ceph MDS services on dedicated nodes to improve the performance of your Ceph cluster. Create a custom role for services that you want to isolate on dedicated nodes.
For more information about custom roles, see Creating a New Role in the Advanced Overcloud Customization guide.
Director uses the following file as a default reference for all overcloud roles:
-
/usr/share/openstack-tripleo-heat-templates/roles_data.yaml
3.1. Creating a custom roles file Copia collegamentoCollegamento copiato negli appunti!
To create a custom role file, complete the following steps:
Procedure
Make a copy of the
roles_data.yamlfile in/home/stack/templates/so that you can add custom roles:cp /usr/share/openstack-tripleo-heat-templates/roles_data.yaml /home/stack/templates/roles_data_custom.yaml
$ cp /usr/share/openstack-tripleo-heat-templates/roles_data.yaml /home/stack/templates/roles_data_custom.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Include the new custom role file in the
openstack overcloud deploycommand.
3.2. Creating a custom role and flavor for the Ceph MON service Copia collegamentoCollegamento copiato negli appunti!
Create a custom role CephMon and flavor ceph-mon for the Ceph MON role.
Prerequisites
- You must already have a copy of the default roles data file. For more information, see Chapter 3, Deploying Ceph services on dedicated nodes.
Procedure
-
Open the
/home/stack/templates/roles_data_custom.yamlfile. -
Remove the service entry for the Ceph MON service,
OS::TripleO::Services::CephMon, from the Controller role. Add the
OS::TripleO::Services::CephClientservice to the Controller role:Copy to Clipboard Copied! Toggle word wrap Toggle overflow At the end of the
roles_data_custom.yamlfile, add a customCephMonrole that contains the Ceph MON service and all the other required node services:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the
openstack flavor createcommand to define a new flavor namedceph-monfor theCephMonrole:openstack flavor create --id auto --ram 6144 --disk 40 --vcpus 4 ceph-mon
$ openstack flavor create --id auto --ram 6144 --disk 40 --vcpus 4 ceph-monCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteFor more information about this command, enter:
openstack flavor create --help.Map this flavor to a new profile, also named
ceph-mon:openstack flavor set --property "cpu_arch"="x86_64" --property "capabilities:boot_option"="local" --property "capabilities:profile"="ceph-mon" ceph-mon
$ openstack flavor set --property "cpu_arch"="x86_64" --property "capabilities:boot_option"="local" --property "capabilities:profile"="ceph-mon" ceph-monCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteFor more information about this command, enter
openstack flavor set --help.Tag nodes into the new
ceph-monprofile:openstack baremetal node set --property capabilities='profile:ceph-mon,boot_option:local' UUID
$ openstack baremetal node set --property capabilities='profile:ceph-mon,boot_option:local' UUIDCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following configuration to the
node-info.yamlfile to associate theceph-monflavor with the CephMon role:parameter_defaults: OvercloudCephMonFlavor: CephMon CephMonCount: 3
parameter_defaults: OvercloudCephMonFlavor: CephMon CephMonCount: 3Copy to Clipboard Copied! Toggle word wrap Toggle overflow
For more information about tagging nodes, see Section 2.4, “Manually tagging nodes into profiles”. For more information about custom role profiles, see Tagging Nodes Into Profiles.
3.3. Creating a custom role and flavor for the Ceph MDS service Copia collegamentoCollegamento copiato negli appunti!
Complete the following steps to create a custom role CephMDS and flavor ceph-mds for the Ceph MDS role. You must already have a copy of the default roles data file as described in Chapter 3, Deploying Ceph services on dedicated nodes.
Procedure
-
Open the
/home/stack/templates/roles_data_custom.yamlfile. Remove the service entry for the Ceph MDS service,
OS::TripleO::Services::CephMds, from the Controller role:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Comment out this line. In the next step, you add this service to the new custom role.
At the end of the
roles_data_custom.yamlfile, add a customCephMDSrole that contains the Ceph MDS service and all the other required node services:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- The Ceph MDS service requires the admin keyring, which you can set with either the Ceph MON or Ceph Client service. If you deploy Ceph MDS on a dedicated node without the Ceph MON service, you must also include the Ceph Client service in the new
CephMDSrole.
Enter the
openstack flavor createcommand to define a new flavor namedceph-mdsfor this role:openstack flavor create --id auto --ram 6144 --disk 40 --vcpus 4 ceph-mds
$ openstack flavor create --id auto --ram 6144 --disk 40 --vcpus 4 ceph-mdsCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteFor more information about this command, enter
openstack flavor create --help.Map the new
ceph-mdsflavor to a new profile, also namedceph-mds:openstack flavor set --property "cpu_arch"="x86_64" --property "capabilities:boot_option"="local" --property "capabilities:profile"="ceph-mds" ceph-mds
$ openstack flavor set --property "cpu_arch"="x86_64" --property "capabilities:boot_option"="local" --property "capabilities:profile"="ceph-mds" ceph-mdsCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteFor more information about this command, enter
openstack flavor set --help.Tag nodes into the new
ceph-mdsprofile:openstack baremetal node set --property capabilities='profile:ceph-mds,boot_option:local' UUID
$ openstack baremetal node set --property capabilities='profile:ceph-mds,boot_option:local' UUIDCopy to Clipboard Copied! Toggle word wrap Toggle overflow
For more information about tagging nodes, see Section 2.4, “Manually tagging nodes into profiles”. For more information about custom role profiles, see Tagging Nodes Into Profiles.