Mengkueri daftar tugas uji stres.
Deskripsi operasi
Database Autonomy Service (DAS) menyediakan fitur uji stres cerdas untuk membantu Anda memverifikasi apakah spesifikasi instans perlu ditingkatkan agar dapat menangani puncak lalu lintas layanan secara efektif. Untuk informasi lebih lanjut, lihat Uji stres cerdas.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:DescribeCloudBenchTasks |
get |
*Semua resource.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Status |
string |
No |
Status berjalan tugas. Nilai valid:
|
SUCCESS |
| TaskType |
string |
No |
Jenis tugas uji stres. Nilai valid:
|
pressure test |
| StartTime |
string |
No |
Waktu mulai tugas kueri. Tentukan nilai sebagai Stempel waktu UNIX. Unit: milidetik. |
1596177993000 |
| EndTime |
string |
No |
Waktu akhir tugas kueri. Tentukan nilai sebagai Stempel waktu UNIX. Unit: milidetik. Catatan
Waktu akhir tugas kueri harus lebih lambat daripada waktu mulai. |
1596177993001 |
| PageNo |
string |
No |
Nomor halaman. Nilai harus lebih besar dari 0 dan tidak boleh melebihi nilai maksimum dari Tipe data Integer. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah maksimum rekaman per halaman. Nilai harus lebih besar dari 0 dan tidak boleh melebihi nilai maksimum dari Tipe data Integer. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Kode status yang dikembalikan. |
200 |
| Message |
string |
Paket yang dikembalikan. Catatan
Jika permintaan berhasil, Successful dikembalikan. Jika permintaan gagal, pesan kesalahan seperti kode kesalahan dikembalikan. |
Successful |
| RequestId |
string |
ID permintaan. |
B6D17591-B48B-4D31-9CD6-9B9796B2**** |
| Success |
string |
Apakah permintaan berhasil. Nilai valid:
|
true |
| Data |
object |
Daftar informasi detail, termasuk jumlah total entri dan kode kesalahan. |
|
| PageNo |
integer |
Nomor halaman. |
1 |
| PageSize |
integer |
Jumlah maksimum rekaman per halaman. |
10 |
| Extra |
string |
Parameter yang dicadangkan. |
None |
| Total |
integer |
Jumlah total hasil. |
2 |
| List |
object |
||
| cloudbenchTasks |
array<object> |
Daftar informasi detail tentang tugas uji stres. |
|
|
object |
|||
| DtsJobName |
string |
Nama Tugas DTS (Data Transmission Service). |
Migrasi antara Instans RDS |
| ErrorMessage |
string |
Paket kesalahan yang dikembalikan ketika tugas gagal. |
DTS-070211: Connect Source DB failed. cause by [com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:Could not create connection to database server. Attempted reconnect 3 times. Giving up.][com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.][java.net.ConnectException:Connection timed out (Connection timed out)] About more information in [https://yq.aliyun.com/articles/499178]. |
| External |
string |
Informasi tambahan. |
Null |
| BackupType |
string |
Jenis cadangan. Nilai valid:
|
TIMESTAMP |
| UserId |
string |
ID akun Alibaba Cloud. |
1091411816252**** |
| DstType |
string |
Jenis instans tujuan. Nilai valid:
|
Instance |
| EcsInstanceId |
string |
ID Instance ECS. |
i-bp1ecr5go2go1**** |
| DstInstanceUuid |
string |
Identitas unik instans tujuan. |
hdm_d887b5ccf99fa0dc9a1e5aaac368**** |
| TaskType |
string |
Jenis tugas uji stres. Nilai valid:
|
pressure test |
| BenchStep |
string |
Sublangkah tugas uji stres. Nilai valid:
|
PROCEED |
| Version |
string |
Versi tugas uji stres. Nilai valid:
|
V3.0 |
| EndState |
string |
Status setelah tugas uji stres berakhir. Nilai valid:
Catatan
Setelah tugas uji stres menjalankan status yang ditentukan dalam pengaturan EndState, tugas langsung mencapai status selesai. |
WAIT_TARGET |
| SrcInstanceUuid |
string |
Pengenal unik instans sumber. |
hdm_3063db6792965c080a4bcb6e6304**** |
| ClientType |
string |
Jenis mesin uji stres. Nilai valid:
|
ECS |
| State |
string |
Status saat ini tugas uji stres. Nilai valid:
|
WAIT_TARGET |
| DstIp |
string |
Parameter yang dicadangkan. |
None |
| SrcPublicIp |
string |
Parameter yang dicadangkan. |
None |
| BackupId |
string |
ID set cadangan. Anda dapat memperoleh nilai ini dengan memanggil operasi DescribeBackups. |
229132 |
| SqlCompleteReuse |
string |
Informasi penggunaan ulang SQL penuh. |
{"sqlUuid":"task_a37d2f07-45cb-4413-a2a6-c66c68****","metaUuid":"task_211e2561-5c0c-486b-864c-56b511****","sqlFile":"cl-1620057600000-1800626.sc","metaFile":"cl-1620057600000-1800626.meta"} |
| SmartPressureTime |
integer |
Durasi uji stres yang dihasilkan. Unit: milidetik. |
86400000 |
| ArchiveState |
integer |
Status pengarsipan SQL. Nilai valid:
|
1 |
| Status |
string |
Status berjalan tugas uji stres. Nilai valid:
|
RUNNING |
| WorkDir |
string |
Direktori sementara yang dihasilkan oleh tugas uji stres. |
/tmp/bench/ |
| ArchiveOssTableName |
string |
Nama tabel yang diarsipkan ke OSS. |
custins15546355_161604665**** |
| DtsJobId |
string |
ID Tugas migrasi DTS. |
i03e3zty16i**** |
| DtsJobState |
integer |
Status Tugas DTS. Nilai valid:
|
CHECKING |
| DstPort |
integer |
Port instans tujuan. |
3306 |
| DtsJobClass |
string |
Spesifikasi tautan DTS. Catatan
Untuk informasi lebih lanjut tentang spesifikasi tautan dan hasil tes kinerja, lihat Spesifikasi tautan migrasi data. |
medium |
| ClientGatewayId |
string |
ID Gerbang Basis Data mesin uji stres. |
58598b2af48a0193dfc16fc6964ef**** |
| Description |
string |
Deskripsi tugas uji stres. |
test-das-bench-0501 |
| ErrorCode |
string |
Kode kesalahan yang dikembalikan oleh tugas uji stres internal. |
10109 |
| TableSchema |
string |
Nama tabel yang terlibat dalam uji stres. |
[{"TABLE_NAME":"customer1","TABLE_SCHEMA":"tpcc"}] |
| DtsJobStatus |
string |
Status Tugas DTS. Nilai valid:
|
PRE_CHECK_FAILED |
| SrcInstanceArea |
string |
Jenis database instans sumber. |
RDS |
| BenchStepStatus |
string |
Status sublangkah uji stres. Nilai valid:
|
FINISHED |
| Source |
string |
Sumber tugas. Nilai valid:
|
DAS |
| ArchiveJobId |
string |
ID tugas pengarsipan. |
'202105211430070112231480820340758**** |
| Topic |
string |
Topik konsumsi Kafka. |
das |
| RequestDuration |
integer |
Durasi tugas uji stres. Unit: milidetik. |
86400000 |
| TaskId |
string |
ID tugas. |
e5cec704-0518-430f-8263-76f4dcds**** |
| Rate |
integer |
Kecepatan pemutaran ulang trafik instans sumber pada instans tujuan. Kecepatan pemutaran ulang harus berupa bilangan bulat positif. Nilai valid: 0 hingga 30. Nilai default: 1. |
1 |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true",
"Data": {
"PageNo": 1,
"PageSize": 10,
"Extra": "None",
"Total": 2,
"List": {
"cloudbenchTasks": [
{
"DtsJobName": "RDS间迁移",
"ErrorMessage": "DTS-070211: Connect Source DB failed. cause by [com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:Could not create connection to database server. Attempted reconnect 3 times. Giving up.][com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure\\n\\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.][java.net.ConnectException:Connection timed out (Connection timed out)] About more information in [https://yq.aliyun.com/articles/499178].",
"External": "Null",
"BackupType": "TIMESTAMP",
"UserId": "1091411816252****",
"DstType": "Instance",
"EcsInstanceId": "i-bp1ecr5go2go1****",
"DstInstanceUuid": "hdm_d887b5ccf99fa0dc9a1e5aaac368****",
"TaskType": "pressure test",
"BenchStep": "PROCEED",
"Version": "V3.0",
"EndState": "WAIT_TARGET",
"SrcInstanceUuid": "hdm_3063db6792965c080a4bcb6e6304****",
"ClientType": "ECS",
"State": "WAIT_TARGET",
"DstIp": "None",
"SrcPublicIp": "None",
"BackupId": "229132",
"SqlCompleteReuse": "{\"sqlUuid\":\"task_a37d2f07-45cb-4413-a2a6-c66c68****\",\"metaUuid\":\"task_211e2561-5c0c-486b-864c-56b511****\",\"sqlFile\":\"cl-1620057600000-1800626.sc\",\"metaFile\":\"cl-1620057600000-1800626.meta\"}",
"SmartPressureTime": 86400000,
"ArchiveState": 1,
"Status": "RUNNING",
"WorkDir": "/tmp/bench/",
"ArchiveOssTableName": "custins15546355_161604665****",
"DtsJobId": "i03e3zty16i****",
"DtsJobState": 0,
"DstPort": 3306,
"DtsJobClass": "medium",
"ClientGatewayId": "58598b2af48a0193dfc16fc6964ef****",
"Description": "test-das-bench-0501",
"ErrorCode": "10109",
"TableSchema": "[{\"TABLE_NAME\":\"customer1\",\"TABLE_SCHEMA\":\"tpcc\"}]",
"DtsJobStatus": "PRE_CHECK_FAILED",
"SrcInstanceArea": "RDS",
"BenchStepStatus": "FINISHED",
"Source": "DAS",
"ArchiveJobId": "'202105211430070112231480820340758****",
"Topic": "das",
"RequestDuration": 86400000,
"TaskId": "e5cec704-0518-430f-8263-76f4dcds****",
"Rate": 1
}
]
}
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | Parameter permintaan tidak valid. |
| 403 | NoPermission | You are not authorized to do this action. | Anda tidak memiliki izin untuk melakukan operasi ini. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.