Skip to content

Commit 52fae13

Browse files
Shortening RHEL/Rock boot time by deprioritizing ipv6 and disable internet check
This commit saves time because the os won't retry on unsupported ipv6 and optional Internet connection Signed-off-by: Hanwen <[email protected]>
1 parent d2ff769 commit 52fae13

File tree

7 files changed

+44
-0
lines changed

7 files changed

+44
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ This file is used to list changes made in each version of the AWS ParallelCluste
3737
- Remove generation of DSA keys for login nodes as DSA, which became unsupported in OpenSSH 9.7+.
3838
- Set instance ID and instance type information in Slurm upon compute nodes launch.
3939
- Install NVIDIA drivers without the option 'no-cc-version-check', which is now deprecated in the NVIDIA installer.
40+
- Reduce RHEL/Rocky Linux boot time by the following network customization:
41+
- Configuring higher priority to IPv4 than IPv6
42+
- Disabling Internet connectivity check
43+
- Configuring only IPv4 IMDS endpoint to cloud-init
4044

4145
**BUG FIXES**
4246
- Remove usage of cfn-init for compute node bootstrapping to reduce node scale-up time.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
datasource:
2+
Ec2:
3+
metadata_urls: [ 'http://169.254.169.254' ]

cookbooks/aws-parallelcluster-slurm/files/redhat/dns_domain/NetworkManager.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
plugins = ifcfg-rh,
2424
dhcp = dhclient
2525

26+
[connection]
27+
ipv4.route-metric=100
28+
ipv6.route-metric=200
29+
30+
[connectivity]
31+
enabled=false
32+
2633
[logging]
2734
# When debugging NetworkManager, enabling debug logging is of great help.
2835
#
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
datasource:
2+
Ec2:
3+
metadata_urls: [ 'http://169.254.169.254' ]

cookbooks/aws-parallelcluster-slurm/files/rocky/dns_domain/NetworkManager.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
plugins = ifcfg-rh,
2424
dhcp = dhclient
2525

26+
[connection]
27+
ipv4.route-metric=100
28+
ipv6.route-metric=200
29+
30+
[connectivity]
31+
enabled=false
32+
2633
[logging]
2734
# When debugging NetworkManager, enabling debug logging is of great help.
2835
#

cookbooks/aws-parallelcluster-slurm/resources/dns_domain/dns_domain_redhat8.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
mode '0644'
3434
end
3535

36+
# Disable ipv6 IMDS in cloud init to speed up
37+
cookbook_file '99-disable-ipv6-metadata.cfg' do
38+
path '/etc/cloud/cloud.cfg.d/99-disable-ipv6-metadata.cfg'
39+
source 'dns_domain/99-disable-ipv6-metadata.cfg'
40+
cookbook 'aws-parallelcluster-slurm'
41+
user 'root'
42+
group 'root'
43+
mode '0644'
44+
end
45+
3646
action_update_search_domain
3747
network_service 'Restart network service'
3848
end

cookbooks/aws-parallelcluster-slurm/resources/dns_domain/dns_domain_rocky8.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
mode '0644'
3434
end
3535

36+
# Disable ipv6 IMDS in cloud init to speed up
37+
cookbook_file '99-disable-ipv6-metadata.cfg' do
38+
path '/etc/cloud/cloud.cfg.d/99-disable-ipv6-metadata.cfg'
39+
source 'dns_domain/99-disable-ipv6-metadata.cfg'
40+
cookbook 'aws-parallelcluster-slurm'
41+
user 'root'
42+
group 'root'
43+
mode '0644'
44+
end
45+
3646
action_update_search_domain
3747
network_service 'Restart network service'
3848
end

0 commit comments

Comments
 (0)