Using dedicated hosts for database node instances may be beneficial for Oracle licensing purposes.
Note: RHEL 7/8 cannot be used with dedicated hosts, except for high memory instances (u-6tb1.metal, u-9tb1.metal, u-12tb1.metal, u-18tb1.metal, and u-24tb1.metal). For other instance types, use Oracle Linux 7/8.
There are two ways of using dedicated hosts:
- Launching onto specific Dedicated Hosts
- Launching into a Host Resource Group
Launching onto specific Dedicated Hosts
Follow AWS documentation for allocating dedicated hosts.
Example using AWS CLI:
aws ec2 allocate-hosts \
--instance-family "r5" \
--availability-zone "us-east-1a" \
--auto-placement off \
--host-recovery on \
--quantity 1 \
--tag-specifications 'ResourceType=dedicated-host,Tags={Key=Name,Value=my_dedicated_host}'
Enabling host recovery is recommended for better uptime.
In your FlashGrid Cluster configuration file, manually add the following attributes for the corresponding nodes in the instances parameter:
- 'tenancy': 'host'
- 'affinity': 'host'
- 'host_id': '<your host id>'
Example:
instances = [
{'name': 'rac1', 'role': 'database', 'storage_profile': 'database', 'az': 'a', 'ins_type': 'r5.12xlarge', 'tenancy': 'host', 'affinity': 'host', 'host_id': 'h-1111111111111111'},
{'name': 'rac2', 'role': 'database', 'storage_profile': 'database', 'az': 'b', 'ins_type': 'r5.12xlarge', 'tenancy': 'host', 'affinity': 'host', 'host_id': 'h-2222222222222222'},
{'name': 'racq', 'role': 'quorum', 'storage_profile': 'quorum', 'az': 'c', 'ins_type': 'c5.large'},
]
Launching into a Host Resource Group
Follow AWS documentation for creating a host resource group.
In your FlashGrid Cluster configuration file, manually add the following attributes for the corresponding nodes in the instances parameter:
'tenancy': 'host'
'host_rg_arn': '<your host resource group ARN>'
Example:
instances = [
{'name': 'rac1', 'role': 'database', 'storage_profile': 'database', 'az': 'a', 'ins_type': 'r5.12xlarge', 'tenancy': 'host', 'host_rg_arn': 'arn:aws:resource-groups:us-east-1:1234567890:group/DED_HOST_RG'},
{'name': 'rac2', 'role': 'database', 'storage_profile': 'database', 'az': 'b', 'ins_type': 'r5.12xlarge', 'tenancy': 'host', 'host_rg_arn': 'arn:aws:resource-groups:us-east-1:1234567890:group/DED_HOST_RG'},
{'name': 'racq', 'role': 'quorum', 'storage_profile': 'quorum', 'az': 'c', 'ins_type': 'c5.large'},
]