I am trying to understand Azure Function deployment slot concept
What does the traffic % column represent? Even when my staging slot traffic % is set to 0, it's still getting triggered.
How does the scaling of nodes work for staging slot?
What does the traffic % column represent?
The Traffic % column in the Function App deployment slots
refers to the percentage of traffic
that is routed to that particular slot
.
Traffic %
is set to 0
for the newly created slot
, which means all the traffic is routed to the production slot and no traffic will be routed to the non-production/staging slot.Traffic
setting as 20%
for non-production slot
, the specified %
of clients will be routed to the non-production slot
and the remaining 80%
will be handled by the production slot
.The staging slot(<app-name/slot-name>) can be seen as a separate app with the same designation which works just like any other Function app. Slot's configuration can be changed according to the requirement.
Even when my staging slot traffic % is set to 0, it's still getting triggered.
How does the scaling of nodes work for staging slot?
staging slot/non-production slot
can be scaled independently.staging slot
, it will only affect the instances in that slot
and production slot
instances won't be affected. This helps to test the application with different scaling configurations.References: