In AWS environment, Adding multiple elastic network interfaces to the EC2 instance can increase the network bandwidth, is it true?
3 Answers
No this is not, the underlying hardware will not increase when you add a virtual NIC :) to increase bandwith you have to select bigger instance types
-
My tests on some c4 instance show the same, however - the following article mentions increased throughput when more interfaces are added : aerospike.com/blog/…– AbhinavCommented Mar 7, 2017 at 8:57
-
Well this is Aerospike words against AWS ones (AWS doesn't commit for precise metrics about network capabilities). So I would say that if you want to hack something dirty to try to spare a few TPS (and maybe get a surprise if AWS changes anything on hypervisor for example), then give this a try. But if you are looking for an AWS backed/best practices compliant way to increase throughput then you should go for a bigger instance. Also network throughput can vary depending on AWS side factors (hypervisor activity, VM location, etc.) or configuration (# of SG rules, VPC flowlogs, routing...) etc.– TomCommented Mar 13, 2017 at 15:13
It's one of the questions asked in AWS Solution Architect exams and the answer is most definitively "No".
However, there are other factors that can impact network bandwidth. Placement groups and Jambo frames can be an option for cases when you run an ensemble of instances that need an enhanced communication between themselves.
If you want an improved bandwidth overall, check ENA(Enhanced Network Adapter). It can provide up to 25 Gbps for certain connection types.
To increase available bandwidth and PPS within EC2, first create a Placement Group then launch EC2 instance types that support 10Gbps interfaces and SR-IOV (aka. Enhanced Networking).
-
placement group is not for bandwith but for very low latency between instances. Moreover, it comes with some cons (hard to add new instances in a later step, limited capacity, single AZ)– TomCommented Jan 26, 2016 at 17:16
-
-
i don't need tuto but thanks. you say it yourself, you have to put EC2 instance types that support 10Gbps interfaces ==> bigger instance types. Try to put a smaller instance and you would not get this bandwith. Placement group is behind the scene the fact that AWS spawns instances as "grouped" as possible (both from a network and physical state). This is really intended for particular cases where cross instance networking matters (e.g oracle RAC), but is an anti cloud pattern as you loose scalability and high availability– TomCommented Jan 27, 2016 at 13:44