aws ec2 enables eno enhanced networking and enables C5 type ec2.

what eno?

AWS official introduction:

Enhanced networking uses Single Root I/O Virtualization (SR-IOV) to provide high-performance networking capabilities on supported instance types. SR-IOV is a device virtualization method that not only improves I/O performance but also reduces CPU usage compared to traditional virtualized network interfaces. Enhanced networking increases bandwidth, improves packets per second (PPS) performance, and continuously reduces latency between instances. use

There is no additional charge for enhanced networking.

Simply put, let your ec2 bandwidth throughput cap reach a terrifying height. How tall is it?

Take the new generation ec2 type C5 as an example (the new generation type must use the AMI with eno enabled to start)

write picture description here

Up to 10Gps!!!

Well, it is indeed much faster than the previous small water pipe! !

Stop talking nonsense and get to the point!

How to turn on the eno enhanced network and create a mirror that supports eno AMI

1. Create a new ec2 as a machine for making ami images (this example uses centos7.4 as the base image)

2. Initialize the machine and download and install the eno installation package

1.yum update
2.下载安装epel源
3.yum install dkms (dkms必须 >= 2.5)
4.git clone https://github.com/amzn/amzn-drivers
5.cd amzn-drivers && depmod
6.dracut -f -v
执行完以上命令后再执行 modinfo 如出现以下提示则为安装成功

filename:       /lib/modules/4.4.11-23.53.amzn1.x86_64/kernel/drivers/amazon/net/ena/ena.ko
version:        0.6.6
license:        GPL
description:    Elastic Network Adapter (ENA)
author:         Amazon.com, Inc. or its affiliates
srcversion:     3141E47566402C79D6B8284
alias:          pci:v00001D0Fd0000EC21sv*sd*bc*sc*i*
alias:          pci:v00001D0Fd0000EC20sv*sd*bc*sc*i*
alias:          pci:v00001D0Fd00001EC2sv*sd*bc*sc*i*
alias:          pci:v00001D0Fd00000EC2sv*sd*bc*sc*i*
depends:
intree:         Y
vermagic:       4.4.11-23.53.amzn1.x86_64 SMP mod_unload modversions
parm:           debug:Debug level (0=none,...,16=all) (int)
parm:           push_mode:Descriptor / header push mode (0=automatic,1=disable,3=enable)
              0 - Automatically choose according to device capability (default)
              1 - Don't push anything to device memory
              3 - Push descriptors and header buffer to device memory (int)
parm:           enable_wd:Enable keepalive watchdog (0=disable,1=enable,default=1) (int)
parm:           enable_missing_tx_detection:Enable missing Tx completions. (default=1) (int)
parm:           numa_node_override_array:Numa node override map
 (array of int)
parm:           numa_node_override:Enable/Disable numa node override (0=disable)
 (int)

4.stop ec2

3. Download and install awscli on another machine and open eno on the command line (it can be an existing ec2 or a new one)

yum install python-pip
pip install awscli
aws configure (根据提示输入AK,SK,region)
aws ec2 modify-instance-attribute --instance-id instance_id(在aws控制台上找到刚才新建的用来制作eno镜像的ec2机器的instance_id并填入) --ena-support

aws ec2 describe-instances --instance-ids instance_id(在aws控制台上找到刚才新建的用来制作eno镜像的ec2机器的instance_id并填入)  --query 'Reservations[].Instances[].EnaSupport' 确认实例是否开启eno

Then you can directly select the EC2 that we have just opened eno on the aws console to make an AMI image.

The created image can be checked by the following command to see if eno is supported

aws ec2 describe-images --image-id ami_id(ami的id) --query 'Images[].EnaSupport'

Returns true for success. At this point, you can use this new ami that supports eno to create c5, m5, ec2 that natively supports eno~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325859544&siteId=291194637