Тёмный
No video :(

How to scale in Azure Container Apps 

Will Velida
Подписаться 5 тыс.
Просмотров 3,9 тыс.
50% 1

Azure Container Apps uses KEDA (Kubernetes event-based driven autoscaling) to horizontally scale container apps based on declarative rules. This enables us to scale out our container apps based on CPU, Memory, HTTP/TCP traffic and many kinds of events.
In this video, I explain how scaling works in Azure Container Apps, what KEDA is, and how we can set scaling rules in Container Apps. I then go through two demos showing how Container Apps scale based on HTTP traffic and messages being sent to a Azure Storage Queue.
If you have any questions, let me know in the chat! 👇
GitHub: github.com/wil...
Twitter: / willvelida
Mastodon: mastodon.socia...

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@nchomey
@nchomey Год назад
Thanks very much for the really nice video. It was very clear and thorough. I hope you'll keep making videos about ACA!
@willvelida
@willvelida Год назад
Thanks @nchomey!
@joaodasilva2175
@joaodasilva2175 Год назад
Hi Will. Thanks for the explaination and examples. On the scaling count side of the HTTP example, sounds like you're saying that if you configured min 1, max 10 instances/replicas, if requests exceed 100 then Azure will simply spin up 9 whole new instances, even if the request count is 101? I would sure think that firing up 9 extra instances to handle 1 request is a bit overkill? Or am I mistunderstanding? I would have thought that for every 100 requests above the initial count, Azure will fire up 1 extra instance to try handle the extra workload, so if 301 requests come flooding inbound, then there would be 3 instances having the requests being load-balanced between them?
@willvelida
@willvelida 6 месяцев назад
Hey! If the requests exceed 100, then a new instance will spin up. So if 101 requests come in, and 1 replica is active, another one will spin up and you'll have 2 instances.
@davidrodrigueztoro9270
@davidrodrigueztoro9270 Год назад
Thank you very much for the video, can you show me step by step how to create a CPU based rule?
@willvelida
@willvelida 6 месяцев назад
Let me add it to the backlog! Sorry I've taken a long time to respond, last year was a little crazy (moved to another country), so I'll look to do a step-by-step tutorial on this soon
@andrewSantosMaia
@andrewSantosMaia Месяц назад
Hi Will. Thanks for the video. Using azure service bus is the same way you did with Azure storage queues? I ve tried to do exactley as you do, provideing a connection string but It didn't work out
@Laughbankrip
@Laughbankrip Год назад
Much appreciated
@willvelida
@willvelida 6 месяцев назад
Thanks for watching!
@Fedotenko2
@Fedotenko2 Год назад
If i am hosting a Azure Function in ACA. Can i somehow scale it if it uses a CosmosDBTrigger?
@willvelida
@willvelida 6 месяцев назад
Great question! So for Functions on ACA, you don't need to configure the KEDA scaled objects. It's designed to configure the scale parameters and rules as per event target: learn.microsoft.com/en-us/azure/azure-functions/functions-container-apps-hosting#configure-scale-rules However, for Cosmos DB, it looks like triggers can't dynamically scale yet. From that doc, it looks like it's just HTTP, Queue Storage, Service Bus, Event Hubs and Kafka triggers. Functions on ACA is still in preview, so I'd keep an eye on it.
@user-sz9rt4kg6z
@user-sz9rt4kg6z Год назад
is it possible to scale container app based on memory consumption?
@willvelida
@willvelida 6 месяцев назад
Yes! You can use a custom scaling rule based on any ScaledObject-based KEDA scaler. This article on tech community has a good explanation of it: techcommunity.microsoft.com/t5/apps-on-azure-blog/scaling-options-in-azure-container-apps/ba-p/3878282#:~:text=You%20can%20create%20a%20custom,attention%20to%20detail%20is%20crucial.&text=The%20rules%20will%20scale%20the,the%20amount%20of%20Memory%20consumption.
@anirudhkondapalli8558
@anirudhkondapalli8558 5 месяцев назад
is there any possibility to have 1 on 1 session ? Thanks