-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-configure Network Interface Card (NIC) throughput #3
Comments
jamesbornholt
moved this to Planned for GA
in Mountpoint for Amazon S3 - Public Roadmap
Feb 17, 2023
jamesbornholt
changed the title
Autodiscover target throughput on EC2 instances
Auto-configure target throughput on EC2 instances
Mar 12, 2023
dannycjones
changed the title
Auto-configure target throughput on EC2 instances
Auto-configure Network Interface Card (NIC) throughput
Mar 14, 2023
I wrote a script to auto-detect this based on ec2 metadata & describe instance api. Would love to see this integrated in somehow: #!/bin/bash
# get network throughput from ec2 instance
instance_type=$(curl -s http://169.254.169.254/latest/meta-data/instance-type)
region=$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | grep region|awk -F\" '{print $4}')
network=$(aws ec2 --region ${region} describe-instance-types --instance-types ${instance_type} --query "InstanceTypes[].[NetworkInfo.NetworkPerformance]" --output text | grep -o '[0-9]\+')
# Mount S3 Bucket
mkdir -p ${1}
mount-s3 --throughput-target-gbps ${network} ${2} ${1} |
Hey there, we are implementing this via calling crt imds client. |
Cool - keep in mind you'll likely need to filter down. IMDS returns values like: $ aws ec2 describe-instance-types --filters "Name=instance-type,Values=c5.*" --query "InstanceTypes[].[InstanceType, NetworkInfo.NetworkPerformance]" --output table
-------------------------------------
| DescribeInstanceTypes |
+--------------+--------------------+
| c5.4xlarge | Up to 10 Gigabit |
| c5.xlarge | Up to 10 Gigabit |
| c5.12xlarge | 12 Gigabit |
| c5.24xlarge | 25 Gigabit |
| c5.9xlarge | 10 Gigabit |
| c5.2xlarge | Up to 10 Gigabit |
| c5.large | Up to 10 Gigabit |
| c5.metal | 25 Gigabit |
| c5.18xlarge | 25 Gigabit |
+--------------+--------------------+ I added a regex and filter to get down to just the number. $ instance_type=c5n.18xlarge
$ region=us-east-1
$ aws ec2 --region ${region} describe-instance-types --instance-types ${instance_type} --query "InstanceTypes[].[NetworkInfo.NetworkPerformance]" --output text | grep -o '[0-9]\+'
100 |
eslrahc-swa
moved this from In Progress
to Done
in Mountpoint for Amazon S3 - Public Roadmap
Apr 14, 2023
eslrahc-swa
moved this from Done
to In Progress
in Mountpoint for Amazon S3 - Public Roadmap
Apr 14, 2023
eslrahc-swa
moved this from In Progress
to Done
in Mountpoint for Amazon S3 - Public Roadmap
Apr 14, 2023
eslrahc-swa
added
performance
PRs to run benchmarks on
and removed
good first issue
Good for newcomers
labels
Apr 14, 2023
This was
linked to
pull requests
Apr 14, 2023
Added in #184!
|
Sweeet! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A few of us now have misconfigured the connector by not specifying target throughput on EC2 instances with large NICs. This seems like something we should be able to autodiscover and just set correctly by default.
The CRT S3 client has the beginnings of this interface (awslabs/aws-c-s3#70), but as far as I can tell it needs to be manually invoked and only carries data for
c5n.18xlarge
right now.The text was updated successfully, but these errors were encountered: