简体   繁体   English

AWS ELB:如何查看启用SSL的ELB生成多少个出站网络流量字节

[英]AWS ELB: How can I see how many bytes of outbound network traffic an SSL-enabled ELB generates

I'm curious to know how much total outbound bytes an ELB generates. 我很想知道ELB产生了多少总出站字节。 As far as I can tell, this will be something like 据我所知,这将是

(size of http responses) + (size of SSL handshake transactions) (http响应的大小)+(SSL握手事务的大小)

I can calculate the former by looking at my web server logs. 我可以通过查看Web服务器日志来计算前者。 However, I'm having a hard time getting to the number of bytes sent out while handling TLS handshakes. 但是,在处理TLS握手时,我很难获取发送的字节数。 Does AWS provide this metric anywhere? AWS是否在任何地方提供此指标?

Details: I'm using a 'classic' ELB and all the request I handle are SSL requests. 详细信息:我使用的是“经典” ELB,我处理的所有请求都是SSL请求。

The handshake of a TLS connection is pretty much constant and do not depend on your application. TLS连接的握手几乎是恒定的,并且与您的应用程序无关。 So your function is really : number of connections * ( size of http responses + constant) 因此,您的功能确实是: number of connections * ( size of http responses + constant)

Here is a good article that estimates the payload to average ~6.5k (depending on your certificate size) : http://netsekure.org/2010/03/tls-overhead/ 这是一篇很好的文章,估计平均有效负载约为6.5k(取决于您的证书大小): http ://netsekure.org/2010/03/tls-overhead/

The list of ELB metrics is available here : https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-cloudwatch-metrics.html This web page has also some good details about how to migrate from ELB to ALB and estimate your cost. 可在此处获得ELB指标列表: https : //docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-cloudwatch-metrics.html此网页还提供了有关如何从ELB迁移到ALB的一些详细信息并估算您的费用。

ALB has that metric exposed EstimatedProcessedBytes ALB的该指标公开了EstimatedProcessedBytes

Depending on your application, the TLS handshake overhead will be negligible compared to the amount of byte going out of your app. 取决于您的应用程序,TLS握手开销与应用程序中流出的字节数相比可以忽略不计。 Unless you have an app with many short lived connections to exchange just a few bytes. 除非您的应用程序具有许多短暂的连接,以仅交换几个字节。 IN that case, a refactoring of the app might help to save on outgoing bandwidth costs. 在这种情况下,对应用程序进行重构可能有助于节省传出的带宽成本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM