Forwarded from Полезняшки от "Разбора Полетов"
Twitter
Liz Fong-Jones (方禮真)
PSA: don't use default distro OpenJDK 11 on #Graviton2 if you have a network-intensive Java app (like Kafka), you are setting yourself up for a lot of futex thrashing. Use AWS Corretto distribution of OpenJDK, compiled with -moutline-atomics intrinsics instead.
Лямбда-
https://aws.amazon.com/blogs/aws/aws-lambda-functions-powered-by-aws-graviton2-processor-run-your-functions-on-arm-and-get-up-to-34-better-price-performance/
Для Лямбд без зависимостей простое переключение на ARM даст неплохую экономию.
🎉 Сразу с поддержкой в CloudFormation и CDK (хотя этого на момент написания поста нет в документации) — просто добавляем параметр
p.s. Отдельно интересно, что архитектура задаётся как
Updated, спасибо за пример @geekexport:
#Lambda #Graviton2
arm64 на Graviton2 — быстрее и дешевле:https://aws.amazon.com/blogs/aws/aws-lambda-functions-powered-by-aws-graviton2-processor-run-your-functions-on-arm-and-get-up-to-34-better-price-performance/
Lambda functions powered by Graviton2 are designed to deliver up to 19 percent better performance at 20 percent lower cost.Для Лямбд без зависимостей простое переключение на ARM даст неплохую экономию.
x86 128 MB $0.0000000021arm64 128 MB $0.0000000017🎉 Сразу с поддержкой в CloudFormation и CDK (хотя этого на момент написания поста нет в документации) — просто добавляем параметр
Architectures: [arm64] в AWS::Lambda::Function.p.s. Отдельно интересно, что архитектура задаётся как
list, a не string, что может указывать на возможность задания сразу нескольких архитектур в будущем.Updated, спасибо за пример @geekexport:
LambdaArmExample: Type: AWS::Serverless::Function Properties: Handler: ./dist/index.handler Timeout: 30 MemorySize: 1024 Architectures: - arm64#Lambda #Graviton2
Amazon
AWS Lambda Functions Powered by AWS Graviton2 Processor – Run Your Functions on Arm and Get Up to 34% Better Price Performance…
December 13, 2022: Post updated to include all the AWS Regions where Lambda Functions can be powered by the Graviton2 Processor. June 19, 2023: List of AWS Regions updated. Many of our customers (such as Formula One, Honeycomb, Intuit, SmugMug, and Snap Inc.)…
💥 Free Trial! 💥
AWS Graviton2
For all AWS accounts: 👍
✅ existing
✅ new customers
https://aws.amazon.com/ec2/faqs/#t4g-instances
👉 How to get access to the
Until
Free Trial vs Free Tier:
🔹 The
🔸 Customers who have exhausted their
#EC2 #Graviton2 #free
AWS Graviton2
t4g.small instance (2 vCPU & 2 GB RAM) is free until 🗓Dec 31st 2023!For all AWS accounts: 👍
✅ existing
✅ new customers
https://aws.amazon.com/ec2/faqs/#t4g-instances
👉 How to get access to the
t4g.small Free Trial?Until
December 31, 2023, all AWS customers will be enrolled automatically in the t4g.small Free Trial as detailed in the AWS Free Tier. During the free-trial period, customers who run a t4g.small instance will automatically get 750 free hours per month deducted from their bill during each month.Free Trial vs Free Tier:
🔹 The
t4g.small Free Trial will be available in addition 💪 to the existing Free Tier on t2.micro/t3.micro.🔸 Customers who have exhausted their
t2.micro/t3.micro Free Tier usage can still benefit from the t4g.small Free Trial.#EC2 #Graviton2 #free
🔥27👍9