Database Autonomy Service (DAS) tahmine dayalı otomatik ölçeklendirme özelliği, son 10 günlük geçmiş verilere dayanarak önümüzdeki 24 saat için performans ölçümlerini öngörür. Öngörülen bir ölçümün belirttiğiniz eşiğe ulaşması bekleniyorsa DAS proaktif olarak bir ölçeklendirme önerisi sunar.
Önkoşullar
-
DAS aşağıdaki veritabanı motorlarını destekler:
ApsaraDB RDS for MySQL
PolarDB for MySQL
Tair (Redis OSS-compatible)
DAS için bir service-linked role oluşturulmuş olmalıdır.
Yordam
DAS konsoluna giriş yapın.
-
Tahmine dayalı otomatik ölçeklendirme ilkesi ekleyin.
-
Management and Settings sayfasında bir ilke ekleyin.
Sol gezinme bölmesinde Resource Management > Auto Scaling Settings seçeneğini belirleyin.
-
Auto Scaling Policies bölümünde Add Policy seçeneğine tıklayın. Add Policy panelinde aşağıdaki parametreleri yapılandırın:
Tablo 1. Parametreler
Parametre
Açıklama
Policy Name
İlkenin adı.
Mode
İlke modu. Prediction-based Auto Scaling seçeneğini belirleyin.
NotBu mod yalnızca tahmin amaçlıdır. Ölçeklendirme önerileri sunar ancak ölçeklendirme işlemlerini gerçekleştirmez.
Engine Type
Veritabanı motoru türü.
Metric Type
-
ApsaraDB RDS for MySQL ve PolarDB for MySQL için yalnızca CPU Utilization (%) desteklenir.
-
Tair (Redis OSS-compatible) için yalnızca Memory Usage (%) desteklenir.
Destination Value
Öngörülen ölçüm için hedef değer. Öngörülen değer bu hedefe ulaştığında veya bunu aştığında DAS bir ölçeklendirme önerisi sunar.
-
Apply Policies sayfasında ilkeyi uygulamak istediğiniz her veritabanı örneği için onay kutusunu işaretleyin ve ardından
seçeneğine tıklayın.-
Click OK to add the policy to the selected database instances.
You can also apply a policy from the Auto Scaling Policies section. Find the policy and click Apply in the Actions column to apply it to a target database instance.
-
Add a prediction-based auto scaling policy on the Autonomous Function Management page of the instance's Autonomy Service Settings.
In the left-side navigation pane, choose Intelligent O&M Center > Instance Monitoring.
Find the target instance and click its ID to open the instance details page.
In the upper-right corner of the page, click Autonomy Service Settings.
On the tab, click Add Policy. Configure the parameters as described in Parameters.
-
In the Recommended Policies section, find the policy that you want to add and click Apply in the Actions column.
NotTo change a policy, click Modify in the Actions column. Make your changes on the Update Policy tab.
To stop applying a policy, click Cancel in the Actions column of the Applied Policies section.
Click OK.
-
Configure an Alert Template to receive timely notifications of prediction-based auto scaling events for your database instance.
The system recommends an alert template and adds the required alert rules for autonomous events. Follow the prompts to complete the configuration.
NotIf you have already configured an alert template for the instance, follow the prompts to add the required alert rules for autonomous events to the existing template.
To configure an alert template and alert rules yourself, see Configure alert templates and Configure alert rules.
-
Select an Alert Contact Group to receive notifications.
Click Add Contact to add a new alert contact.
Click Add Contact Group to add a new alert contact group.
Click Modify or Remove next to a contact to modify or delete it.
For more information, see Manage alert contacts.
Click Submit Configuration and confirm the alert configuration in the dialog box that appears.
-
Tahmine dayalı otomatik ölçeklendirme sonuçlarını görüntüleme
In the left-side navigation pane, choose Intelligent O&M Center > Instance Monitoring.
Find the target instance and click its ID to open the instance details page.
In the left-side navigation pane, click Autonomy Center.
On the Autonomy Center page, view the Auto Scaling Events that occurred within the selected time range.
-
Click Details for a Database Workload Prediction event to view details about the scaling suggestion.
Bu olayın tam adı Database Workload Prediction (Forecast Only) şeklindedir ve önem düzeyi Notice'tır.
İlgili belgeler
Bir ölçeklendirme önerisi aldıktan sonra motor türünüz için verilen talimatları izleyerek veritabanı örneğinizin kapasitesini artırın:
ApsaraDB RDS for MySQL: Örnek teknik özelliklerini değiştirme.
PolarDB for MySQL: Küme teknik özelliklerini manuel olarak değiştirme.
Tair (Redis OSS-compatible): Örnek yapılandırmalarını değiştirme.