Skip to content

Commit 2b73a90

Browse files
authored
Merge pull request #180496 from HeidiSteen/heidist-nov2
[azure search] Updates to plan and manage costs
2 parents 1cae9ad + 0339444 commit 2b73a90

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

articles/search/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@
170170
href: search-sku-tier.md
171171
- name: Create a service
172172
href: search-create-service-portal.md
173-
- name: Plan capacity
174-
href: search-capacity-planning.md
175173
- name: Service limits
176174
href: search-limits-quotas-capacity.md
175+
- name: Plan capacity
176+
href: search-capacity-planning.md
177177
- name: Plan and manage costs
178178
href: search-sku-manage-costs.md
179179
- name: Availability and recovery

articles/search/search-sku-manage-costs.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,86 +8,86 @@ author: HeidiSteen
88
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: conceptual
11-
ms.date: 11/18/2021
11+
ms.date: 11/19/2021
1212
---
1313

1414
# Plan and manage costs of an Azure Cognitive Search service
1515

1616
This article explains the billing model and billable events of Azure Cognitive Search, and provides direction for managing the costs.
1717

18-
As a first step, estimate baseline costs by using the Azure pricing calculator. Alternatively, estimated costs and tier comparisons can also be found in the [Select a pricing tier](search-create-service-portal.md#choose-a-pricing-tier) page when creating a service.
18+
As a first step, estimate your baseline costs by using the Azure pricing calculator. Alternatively, estimated costs and tier comparisons can also be found in the [Select a pricing tier](search-create-service-portal.md#choose-a-pricing-tier) page when creating a service.
1919

2020
Azure provides built-in cost management that cuts across service boundaries to provide inclusive cost monitoring and the ability to set budgets and define alerts. The costs of running a search service will vary depending on capacity and which features you use. After you create your search service, optimize capacity so that you pay only for what you need.
2121

22+
<a name="billable-events"></a>
23+
2224
## Understand the billing model
2325

24-
Capacity is a primary determinant of billing. In Azure Cognitive Search, there is a fixed component, but the scalability architecture is based on flexible combinations of replicas and partitions so that you can vary capacity depending on whether you need more query or indexing power, or less.
26+
Azure Cognitive Search runs on Azure infrastructure that accrues costs when you deploy new resources. It's important to understand that there could be other additional infrastructure costs that might accrue.
2527

26-
The amount of resources used by your search service, multiplied by the billing rate established by the service tier, determines the baseline cost of running the service. For billing purposes, there are two simple formulas to be aware of:
28+
### How you're charged for Azure Cognitive Search
2729

28-
| Formula | Description |
29-
|---------|-------------|
30-
| **R x P = SU** | System capacity, defined as the number of replicas used, multiplied by the number of partitions used, equals the quantity of *search units* (SU) used by a service. An SU is a unit of resource, and it can be either a partition or a replica. |
31-
| **SU * billing rate = monthly spend** | The number of SUs multiplied by the billing rate of the tier at which you provisioned the service is the primary determinant of your overall monthly bill. Some features or workloads have dependencies on other Azure services, which can increase the cost of your solution at the subscription level. The billable events section below identifies features that can add to your bill. |
30+
When you create or use Search resources, you're charged for the following meters:
3231

33-
### SU minimum and maximum values
32+
+ You're charged an hourly rate based on the [pricing tier](search-sku-tier.md) of your search service, prorated to the hour.
3433

35-
Every service starts with one SU (one replica multiplied by one partition) as the minimum, and this is the fixed cost of running the service.
34+
+ The charge is applied per the number of search units (SU) allocated to the service. Search units are [units of capacity](search-capacity-planning.md). Total SU is the product of replicas and partitions (R x P = SU) used by your service.
3635

37-
The maximum capacity for any service is 36 SUs. This maximum can be reached in multiple ways: 6 partitions x 6 replicas, or 3 partitions x 12 replicas, for example. It's common to use less than total capacity (for example, a 3-replica, 3-partition service billed as 9 SUs). See the [Partition and replica combinations](search-capacity-planning.md#chart) chart for valid combinations.
36+
Billing is based on capacity (SUs) and the costs of running premium features, such as [AI enrichment](cognitive-search-concept-intro.md), [Semantic search](semantic-search-overview.md), and [Private endpoints](service-create-private-endpoint.md). Meters associated with premium features are listed in the following table.
3837

39-
### Billing rate
38+
| Meter | Unit |
39+
|-------|------|
40+
| Indexer usage | Per 1000 API calls |
41+
| Image extraction (AI enrichment) <sup>1, 2</sup> | Per 1000 images. See the [pricing page](https://azure.microsoft.com/pricing/details/search/#pricing). |
42+
| Custom Entity extraction (AI enrichment) <sup>1</sup> | Per 1000 text records. See the [pricing page](https://azure.microsoft.com/pricing/details/search/#pricing) |
43+
| Custom Entity Lookup skill (AI enrichment) <sup>1</sup> | Per 1000 text records. See the [pricing page](https://azure.microsoft.com/pricing/details/search/#pricing) |
44+
| Built-in skills (AI enrichment) <sup>1</sup> | Number of transactions, billed at the same rate as if you had performed the task by calling Cognitive Services directly. You can process 20 documents per indexer per day for free. Larger or more frequent workloads require a multi-resource Cognitive Services key. |
45+
| Semantic Search <sup>1</sup> | Number of queries of "queryType=semantic", billed at a progressive rate. See the [pricing page](https://azure.microsoft.com/pricing/details/search/#pricing). |
46+
| Private Endpoints <sup>1</sup> | Billed as long as the endpoint exists, and billed for bandwidth. |
4047

41-
The billing rate is hourly per SU. Each tier has a progressively higher rate. Higher tiers come with larger and faster partitions, and this contributes to an overall higher hourly rate for that tier. You can view the rates for each tier on the [pricing details](https://azure.microsoft.com/pricing/details/search/) page.
48+
<sup>1</sup> Applies only if you use or enable the feature.
4249

43-
Most customers bring just a portion of total capacity online, holding the rest in reserve. For billing, the number of partitions and replicas that you bring online, calculated by the SU formula, determines the hourly rate.
50+
<sup>2</sup> In an [indexer configuration](/rest/api/searchservice/create-indexer#indexer-parameters), "imageAction" is the parameter that triggers image extraction. If "imageAction" is set to "none" (the default), you won't be charged for image extraction.
4451

45-
## Billable events
52+
There is no meter on the number of queries, query responses, or documents ingested, although [service limits](search-limits-quotas-capacity.md) do apply at each tier.
4653

47-
The following table lists the billable events in an Azure Cognitive Search solution.
54+
Data traffic might also incur networking costs. See the [Bandwidth pricing](https://azure.microsoft.com/pricing/details/bandwidth/).
4855

49-
| Event | Description |
50-
|-------|-------------|
51-
| Service creation | The fixed cost of the service itself, running 24x7, at minimum configuration (one partition and replica), at the base rate. |
52-
| [Bandwidth charges](https://azure.microsoft.com/pricing/details/bandwidth/) | Applicable to [indexers](search-indexer-overview.md) and skills that extract content from resources in remote regions. There is no data egress charge for same-region data access, or for pushing data into a search source. Cognitive Search does not have a meter for outbound query responses. |
53-
| Add capacity | Adding either replicas or partitions is an incremental increase at the billable rate. If high availability is a business requirement, you'll need three replicas to meet the Service Level Agreement (SLA) requirement for Azure Cognitive Search.|
54-
| Add premium features | Some features have dependencies on other billable Azure resources, or require additional infrastructure to support larger workloads. The following list identifies premium features. |
56+
Several premium features ([Knowledge store](knowledge-store-concept-intro.md), [Debug Sessions](cognitive-search-debug-session.md), [Enrichment cache (preview)](cognitive-search-incremental-indexing-conceptual.md)) have a dependency on Azure Storage. The meters for Azure Storage apply in this case, and the associated storage costs of using these features will be included in the Azure Storage bill.
5557

56-
### Add-on services required for premium features
58+
[Customer-managed keys](search-security-manage-encryption-keys.md) provide double encryption of sensitive content. This feature requires a billable [Azure Key Vault](https://azure.microsoft.com/pricing/details/key-vault/)).
5759

58-
| Feature | Description |
59-
|---------|-------------|
60-
| [AI enrichment](cognitive-search-concept-intro.md) | Using billable skills (requires [Cognitive Services](https://azure.microsoft.com/pricing/details/cognitive-services/)). Image extraction is also billable. More details are in the following section. |
61-
| [Knowledge store](knowledge-store-concept-intro.md) | Stores output from AI enrichment. It requires a billable [Azure Storage](https://azure.microsoft.com/pricing/details/storage/)) account. |
62-
| [Enrichment cache (preview)](cognitive-search-incremental-indexing-conceptual.md) | Applies to AI enrichment. It requires a billable [Azure Storage](https://azure.microsoft.com/pricing/details/storage/)) account. </br></br>Caching can significantly lower the cost of skillset processing by caching and reusing enrichments that are unaffected by changes made to a skillset. Caching requires a billable Azure Storage, but the cumulative cost of skillset execution is typically lower if existing enrichments can be reused.|
63-
| [Customer-managed keys](search-security-manage-encryption-keys.md)| Provides double encryption of sensitive content. It requires a billable [Azure Key Vault](https://azure.microsoft.com/pricing/details/key-vault/)). |
64-
| [Private endpoints](service-create-private-endpoint.md) | Used for a no-internet data access model. It requires [Azure Private Link](https://azure.microsoft.com/pricing/details/private-link/)). |
65-
| [Semantic search](semantic-search-overview.md) |This is a metered, premium feature on Standard tiers (see the [Cognitive Search pricing page](https://azure.microsoft.com/pricing/details/search/) for costs). You can [disable semantic search](semantic-search-overview.md#disable-semantic-search) to prevent accidental usage.|
60+
Skillsets can include [billable built-in skills](cognitive-search-predefined-skills.md), non-billable built-in utility skills, and custom skills. Non-billable utility skills include Conditional, Shaper, Text Merge, Text Split. There is no billing impact when using them, no Cognitive Services key requirement, and no 20 document limit.
6661

67-
### Drill-down into AI enrichment billing
62+
A custom skill is functionality you provide. The cost of using a custom skill depends entirely on whether custom code is calling other metered services. There is no Cognitive Services key requirement and no 20 document limit on custom skills.
6863

69-
For [AI enrichment](cognitive-search-concept-intro.md) using billable skills, you should plan to [attach a billable Azure Cognitive Services resource](cognitive-search-attach-cognitive-services.md), in the same region as Azure Cognitive Search, at the S0 pricing tier for pay-as-you-go processing. There's no fixed cost associated with attaching Cognitive Services. You pay only for the processing you need.
64+
## Monitor costs
7065

71-
| Operation | Billing impact |
72-
|-----------|----------------|
73-
| Document cracking, text extraction | Free |
74-
| Document cracking, image extraction | Billed according to the number of images extracted from your documents. In an [indexer configuration](/rest/api/searchservice/create-indexer#indexer-parameters), **imageAction** is the parameter that triggers image extraction. If **imageAction** is set to "none" (the default), you won't be charged for image extraction. See the [pricing page](https://azure.microsoft.com/pricing/details/search/) page for image extract charges. |
75-
| [Built-in skills](cognitive-search-predefined-skills.md) based on Cognitive Services | Billed at the same rate as if you had performed the task by using Cognitive Services directly. You can process 20 documents per indexer per day for free. Larger or more frequent workloads require a key. |
76-
| [Built-in skills](cognitive-search-predefined-skills.md) that do not add enrichments | None. Non-billable utility skills include Conditional, Shaper, Text Merge, Text Split. There is no billing impact, no Cognitive Services key requirement, and no 20 document limit. |
77-
| Custom skills | A custom skill is functionality you provide. The cost of using a custom skill depends entirely on whether custom code is calling other metered services. There is no Cognitive Services key requirement and no 20 document limit on custom skills.|
78-
| [Custom Entity Lookup](cognitive-search-skill-custom-entity-lookup.md) | Metered by Azure Cognitive Search. See the [pricing page](https://azure.microsoft.com/pricing/details/search/#pricing) for details. |
66+
Cost management is built into the Azure infrastructure. Review [Billing and cost management](../cost-management-billing/cost-management-billing-overview.md) for more information about tracking costs, tools, and APIs.
7967

80-
## Manage costs
68+
## Minimize costs
8169

82-
Cost management is built into the Azure infrastructure. Review [Billing and cost management](../cost-management-billing/cost-management-billing-overview.md) for more information about tracking costs, tools, and APIs.
70+
Follow these guidelines to minimize costs of an Azure Cognitive Search solution.
8371

84-
1. Create all resources in the same region, or in as few regions as possible, to minimize or eliminate bandwidth charges.
72+
1. If possible, create all resources in the same region, or in as few regions as possible, to minimize or eliminate bandwidth charges.
8573

86-
1. Scale up for resource-intensive operations like indexing, and then readjust downwards for regular query workloads. If there are predictable patterns to your workloads, you might be able to synchronize scale with activity (you would need to write code to automate this).
74+
1. [Scale up](search-capacity-planning.md) for resource-intensive operations like indexing, and then readjust downwards for regular query workloads. If there are predictable patterns to your workloads, you might be able to synchronize scale up to coincide with the expected volume (you would need to write code to automate this).
8775

8876
When estimating the cost of a search solution, keep in mind that pricing and capacity aren't linear (doubling capacity more than doubles the cost on the same tier). Also, at some point, switching up to a higher tier can give you better and faster performance at roughly the same price point. For more information and an example, see [Upgrade to a Standard S2 tier](search-performance-tips.md#tip-upgrade-to-a-standard-s2-tier).
8977

90-
1. Consider Azure Web App for your front-end application so that requests and responses stay within the data center boundary.
78+
1. Consider [Azure Web App](../app-service/overview.md) for your front-end application so that requests and responses stay within the data center boundary.
79+
80+
1. If you're using [AI enrichment](cognitive-search-concept-intro.md), there is an extra charge for blob storage, but the cumulative cost goes down if you enable [enrichment caching](cognitive-search-incremental-indexing-conceptual.md).
81+
82+
## Create budgets
83+
84+
You can create [budgets](../cost-management-billing/costs/tutorial-acm-create-budgets.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn) to manage costs and create [alerts](../cost-management-billing/costs/cost-mgt-alerts-monitor-usage-spending.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn) that automatically notify stakeholders of spending anomalies and overspending risks. Alerts are based on spending compared to budget and cost thresholds. Budgets and alerts are created for Azure subscriptions and resource groups, so they're useful as part of an overall cost monitoring strategy.
85+
86+
Budgets can be created with filters for specific resources or services in Azure if you want more granularity present in your monitoring. Filters help ensure that you don't accidentally create new resources that cost you extra money. For more information about the filter options available when you create a budget, see [Group and filter options](../cost-management-billing/costs/group-filter.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn).
87+
88+
## Export cost data
89+
90+
You can also [export your cost data](../cost-management-billing/costs/tutorial-export-acm-data.md?WT.mc_id=costmanagementcontent_docsacmhorizontal_-inproduct-learn) to a storage account. This is helpful when you need or others to do more data analysis for costs. For example, a finance team can analyze the data using Excel or Power BI. You can export your costs on a daily, weekly, or monthly schedule and set a custom date range. Exporting cost data is the recommended way to retrieve cost datasets.
9191

9292
## FAQ
9393

0 commit comments

Comments
 (0)