-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from HoussemDellai/backend-pool-load-balancing…
…-terraform added new lab backend-pool-load-balancing-terraform
- Loading branch information
Showing
13 changed files
with
947 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# APIM ❤️ OpenAI | ||
|
||
## [Backend pool Load Balancing lab](backend-circuit-breaking.ipynb) | ||
|
||
[![flow](../../images/backend-pool-load-balancing.gif)](backend-pool-load-balancing.ipynb) | ||
|
||
Playground to try the built-in load balancing [backend pool functionality of APIM](https://learn.microsoft.com/azure/api-management/backends?tabs=bicep) to a list of Azure OpenAI endpoints. | ||
**This is a typical prioritized PTU with fallback consumption scenario**. The lab specifically showcases how a priority 1 (highest) backend is exhausted before gracefully falling back to two equally-weighted priority 2 backends. | ||
|
||
### Result | ||
|
||
![result](result.png) | ||
|
||
### Prerequisites | ||
|
||
- [Python 3.12 or later version](https://www.python.org/) installed | ||
- [VS Code](https://code.visualstudio.com/) installed with the [Jupyter notebook extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) enabled | ||
- [Azure CLI](https://learn.microsoft.com/cli/azure/install-azure-cli) installed | ||
- [An Azure Subscription](https://azure.microsoft.com/free/) with Contributor permissions | ||
- [Access granted to Azure OpenAI](https://aka.ms/oai/access) or just enable the mock service | ||
- [Sign in to Azure with Azure CLI](https://learn.microsoft.com/cli/azure/authenticate-azure-cli-interactively) | ||
|
||
### 🚀 Get started | ||
|
||
Proceed by opening the [Jupyter notebook](backend-pool-load-balancing.ipynb), and follow the steps provided. | ||
|
||
### 🗑️ Clean up resources | ||
|
||
When you're finished with the lab, you should remove all your deployed resources from Azure to avoid extra charges and keep your Azure subscription uncluttered. | ||
Use the [clean-up-resources notebook](clean-up-resources.ipynb) for that. |
Oops, something went wrong.